Adventures in ActionScript 3.0

18.09.07

Alright, I finally got it to work as i wanted it to. I found the AS3 live docs on the Adobe site (very like Sun's Java Docs) and it's proven very insightful. Turns out the Timer class doesnt have a setDelay() method as I thought. Rather instead you simply set the Timer objects "delay" property to whatever you want, in my case:

timer.delay = getSpeed();

I've made a little swf that alters the speed of an animation. Nothing fancy, brutally hacked together, but its honest programming :)



[AS and FLA files for the aboveTimer Class Demo]

4 comments:

Carrigaline said...

I only see two pushable buttons.

Like wtf omgzzzz?!!!!111one

GammaGoblin said...

Come on boy, you need to update that Flash player version 4 you're running.

Carrigaline said...

I'm afraid the lovely people I work for have restrictions on even updating Flash on our browsers.

GammaGoblin said...

You need to be proactive and suggest to your superiors that productivity in your sector could be up 11% with the installation of Flash 9. If you show how much of a team player you are, youre sure to get a bonus this Christmas.

Post a Comment

Related Posts Plugin for WordPress, Blogger...