Passing variable to a graphic symbol instance
Hi there,
New to Adobe Animate. Is there a way to pass variables to instances created via code?
I've created a symbol that moves left 12 frames and then right 12 frames back to the same spot.
When creating an instance using the Linkage property and the code:
var example = new lib.linkageText();
this.addChild(example);is there a way I can pass a variable through to the instance?
For example, is there a way to pass a variable that is the speed for how fast it moves left then right? Something like:
var example = new lib.linkageText(100);
this.addChild(example);
