Nov
20
2009
0

A few important things about Actionscript 3

I haven’t posted in a while, but in the past 6-9 months I’ve been working on some pretty cool stuff. Stratalogica Check it out. Through it I’ve been learning some really nice perks, especially FP10. That along with Python, which is a pretty sweet language… but this is about AS3… maybe some JAVA.

First off Event Priority, that little number we get use to always setting 0 (if you actually set it, otherwise it’s always 0….

this.addEventListener(Event.COMPLETE, someFunction,false,0,true);
//or just
this.addEventListener(Event.COMPLETE,somefunction) //always  0

Anyways sometimes you want certain components to respond before others do, so bump this number up some, the higher the number the higher the priority.

(more…)

Powered by WordPress | Theme: Aeros 2.0 by TheBuckmaker.com