Copy link to clipboard
Copied
Is this possible in this program? Just I can't find something like object spawning in documentation
Hi.
In the HTML5 Canvas document, go to the Library, select the desired symbol and give it a linkage name.
Then add this code at say frame 0 of the main timeline:
var player = new lib.Player(); // Player is the linkage name in the Library
player.x = 275;
player.y = 200;
this.addChild(player);
I hope this helps.
Regards,
JC
Copy link to clipboard
Copied
Hi.
In the HTML5 Canvas document, go to the Library, select the desired symbol and give it a linkage name.
Then add this code at say frame 0 of the main timeline:
var player = new lib.Player(); // Player is the linkage name in the Library
player.x = 275;
player.y = 200;
this.addChild(player);
I hope this helps.
Regards,
JC
Find more inspiration, events, and resources on the new Adobe Community
Explore Now