Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

how to instantie movie clip

New Here ,
Oct 14, 2015 Oct 14, 2015

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

sorry for my bad english

TOPICS
ActionScript
251
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Oct 14, 2015 Oct 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);

Translate
Enthusiast ,
Oct 14, 2015 Oct 14, 2015
LATEST

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);

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines