Create "Hello World" in Class Actionscript 3.0

I want explain about "Create Hello World in Class Actionscript 3.0". Let's see structure writing actionscript :

package
{
     // class
     public class name_class{
          // contructor
           public class name_function(){

            //program
           }
      }



more details :
package
{
    import flash.display.*;
   import flash.text.*;

       public class helloWorld extends MovieClip(){
            var myText : TextField = new TextField();
           myText.text = “Hello World”;
          addChild(myText);
      }
}
next step :
  • Save File with name "HelloWorld.as".
  • Next, create a new document. 
  • On the properties, create class name "HelloWorld".
  • And the last, save file with name HelloWorld.fla.

Share this

Related Posts

:)
:(
hihi
:-)
:D
=D
:-d
;(
;-(
@-)
:P
:o
:>)
(o)
:p
:-?
(p)
:-s
(m)
8-)
:-t
:-b
b-(
:-#
=p~
$-)
(y)
(f)
x-)
(k)
(h)
cheer