Answered
JavaScript. How to spawn movie clip on a specific spawnpoint?
Is this possible in this program? Just I can't find something like object spawning in documentation
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
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.