are some ways new ways to do that...
Create a movieClip in the IDE.. (name: Star)
Open library (ctrl+L)..and click linkage..
Select Export for ActionScript..(Note: We can give Any name in the identifier that is the linkage name)
Open Actions panel
Code follows:
var mc:Star=new Star();
mc.x=100;
mc.y=100;
addChild(mc);
Where Star is the linkage name..and its important to add it in the displaylist
4 comments:
Thanks... I was pulling my hair out but now i am fine
Gracias man, soy nuevo n sto del as3, y ya staba a punto de cortarme las venas...
what if you would add (attach) it to an already existing movieclip?
yeah, they changed it. No fun.
Post a Comment