Not the “createEmptyMovieclip” you know!
First we load in the class:
1 | import flash.display.MovieClip |
Then we define a new movie-clip:
1 | var newEmptyMovieclip:MovieClip = new MovieClip() |
Alter its properties:
1 | newEmptyMovieclip.name = "box" |
And finally add it to the stage:
1 | addChild(lineOfSight) |
