1 Reply Latest reply on Oct 10, 2007 11:02 PM by kglad

    Is it necessary to import flash.* packages?

    e-zen Level 1
      If i write this code with or without the import statement it works the same way:

      import flash.text.TextField;
      var mytext=new TextField()
      addChild(mytext)
      mytext.text="Hello World"

      Works the same way as

      var mytext=new TextField()
      addChild(mytext)
      mytext.text="Hello World"

      I know that if I want to create my own package i realy need to import its dependencies, but if i just want to write code at the first keyframe of the timeline, what's the big difference between importing or not the packages?

      Does it make any difference at all?