Wednesday, 16 November 2011

code to bring object from library to stage

first I created a shape and converted it to symbol with Export for action script ticked. And the deleted shape from stage and used this code

code:
import flash.display.MovieClip;

var ship:MovieClip = new Ship ();

ship.x=275
ship.y=200

addChild(ship);

No comments:

Post a Comment