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

Add Symbol in Scene with Actionscript

Explorer ,
Oct 28, 2020 Oct 28, 2020

Copy link to clipboard

Copied

Hi,

I want to add symbol in scene use actionscript. How can i do it? Can you help me? 
Thanks.

Views

180

Translate

Translate

Report

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

Community Expert , Oct 28, 2020 Oct 28, 2020

you can use addChild() to add objects that you create in the ide and were once on stage (so they have an instance name) or that you created with actionscript.

 

if it's a library symbol, you'll need to assign a linkage id and create an instance using that id (using the new constructor) and then apply addChild() to the instance:

 

var mc:MC = new MC();  // where you have a symbol in the library with linkage id = MC

addChild(mc);

Votes

Translate

Translate
Community Expert ,
Oct 28, 2020 Oct 28, 2020

Copy link to clipboard

Copied

LATEST

you can use addChild() to add objects that you create in the ide and were once on stage (so they have an instance name) or that you created with actionscript.

 

if it's a library symbol, you'll need to assign a linkage id and create an instance using that id (using the new constructor) and then apply addChild() to the instance:

 

var mc:MC = new MC();  // where you have a symbol in the library with linkage id = MC

addChild(mc);

Votes

Translate

Translate

Report

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