package nutrigen {
import flash.display.Sprite;
import flash.events.Event;
public class Frame extends Sprite {
public function Frame ():void {
if (stage) init ();
else addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init (e:Event = null):void {
removeEventListener(Event.ADDED_TO_STAGE, init);
}
}
}
this is how a class look like, and it is sort of the framework code that we need to type in every single ".as" file. thus, a better software, which is specially made for actionscript coding, is used:
the FlashDevelop!
i guess it saved me more than 24 hours throughout this project :D
it generates the framework code, and writing the "import" codes automatically for me, and generates functions whenever i needed.. basically it's a must-have for every actionscript coder..
highly recommended by Darien Toh, a senior actionscript coder in If Interactive, 1 of my sifu xD
No comments:
Post a Comment