Skip to main content
Participant
October 14, 2015
Answered

how to instantie movie clip

  • October 14, 2015
  • 1 reply
  • 277 views

how to instantiate or appear movie clip from my library to my desire position in stage?

sorry for my bad english

This topic has been closed for replies.
Correct answer nezarov

Link the library item to ActionScript by ( selecting the symbol in the library > right click > Properties > in the symbol properties window select Export for ActionScript check-box > in the Class field type the class name for example myMc or keep it as it's and finally click OK.

To add the item to the stage:

var _mc:MovieClip = new myMc();

_mc.x = 100;

_mc.y = 50;

addChild(_mc);

1 reply

nezarovCorrect answer
Inspiring
October 14, 2015

Link the library item to ActionScript by ( selecting the symbol in the library > right click > Properties > in the symbol properties window select Export for ActionScript check-box > in the Class field type the class name for example myMc or keep it as it's and finally click OK.

To add the item to the stage:

var _mc:MovieClip = new myMc();

_mc.x = 100;

_mc.y = 50;

addChild(_mc);