Wednesday, February 2, 2011

Software

When typing codes in actionscript using Object-Oriented Programming, you need to declare a "class" for every object that needs scripting, and for every function you use in a single class, you need to write a line that imports that functionality to your class in order to work, and that would be a headache if you're just typing in Adobe Flash itself because it doesn't have any automation, for example, these lines:

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