Studio moh


CSS selectors for AS3

Traversing the display list in AS3 is so tedious. I wish I could use jQuery/CSS/XSLT style selectors:

$('stage movie button').addChild(child);

jQuery has spoiled me with easy DOM traversal. Instead, we have to do this:

stage.getChildAt(3).getChildAt(12).addChild(child);

Edit: It looks like someone has ported the $-style traversing to AS3. Finally!

Post a Comment

Your email is never shared. Required fields are marked *

*
*