Importing a class makes that class available to the code in the file and sets up a shortcut. : Import : Language Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Language » Import »

 

Importing a class makes that class available to the code in the file and sets up a shortcut.


 

package {
    import flash.display.Sprite;
    public class ExampleApplication extends Sprite {
        public function ExampleApplication(  ) {
            graphics.lineStyle(101);
            for(var i:int=0;i<100;i++) {
                graphics.lineTo(Math.random(  ) 400, Math.random(  ) 400);
            }
        }
    }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Language
» Import