Bumpslide Libs for AS3
I’ve been slowly building up a toolbox of AS3 libraries, and I’ve decided to move my open-source code from sourceforge to googlecode. The as2 libs have not yet moved, but you can check out my latest work at http://bumpslide.googlecode.com/.
Old favorites including FTween, GridLayout, and “Model” (now BindableModel) have all been refactored and updated for AS3. I’ve been using this code in production for awhile now, and they all warrant separate blog posts. For now, just start digging through the code, and let me know if you have any questions.
April 7th, 2008 at 6:06 pm
Thanks for releasing your library - it looks like there are some handy classes in there.
July 1st, 2008 at 11:47 pm
AS2 code is on googlecode now as well.
http://bumpslide.googlecode.com/svn/trunk/as2/
August 7th, 2008 at 10:16 am
Hello,
Interesting library. I’ve also been working on something similar to your ActivityMonitor. The implementation is very similar: we both use the MouseEvent and KeyboardEvent to keep track of user activity. You know, if you use AIR as your platform, you could also use NativeApplication API, which provides everything we need and it’s much simplier to use.
One comment on your impl: you could use a flag in your ActivityMonitor to store user idle (true/false). Then in the MouseEvent/KeyboardEvent you set the flag. From there, on every tick of the timer, you just need to look at the flag to decide what to do. I originally went with your impl but I think resetting/starting the timer is something expensive specially it gets called almost constantly with each user activity. Just an opinion
August 16th, 2008 at 1:07 pm
Thanks for the code review and tips, doug . I was actually using a swhx/haxe/neko app for the kiosk where I used the activity monitor. The code was a port of an old as2 class I wrote a few years ago. You are probably right about the timer reset.
patches welcome