Skip to main content
Inspiring
March 27, 2016
Answered

declare variable/instance name of flash shape using flash stage like movieclip . is that possible?

  • March 27, 2016
  • 1 reply
  • 431 views

we can get shape variable by this way .  but i want that i will make cirlces (shapes) in flash stage directly and get variables exactly like movieclip instance name

if

/* js

var circle = new createjs.Shape();

circle.graphics.beginStroke('#000');

circle.graphics.beginFill('#FFF000');

circle.graphics.drawCircle(0, 0, 50);

circle.x = 250;

circle.y = 70;

stage.addChild(circle);

*/

This topic has been closed for replies.
Correct answer kglad

you can create a stage-created movieclip and assign an instance name in both actionscript and easeljs, and you cannot assign stage-created shape an instance name in both actionscript and easeljs.

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
March 27, 2016

you can create a stage-created movieclip and assign an instance name in both actionscript and easeljs, and you cannot assign stage-created shape an instance name in both actionscript and easeljs.