Copy link to clipboard
Copied
hi i would like to ask how i can call an library item to appear in a allocated space /movie clip with a border around the edge, using a button called get and a bordered movie clip called placeholder.
can someone help me with this please, does the item have to be in the fla library because it is.
Message was edited by: João César de Lima / Reason: title entirely in uppercase
First you need a Movie Clip in the Library set to export for ActionScript.
Then, for example, put this code in the first frame of the main timeline:
var test:Test = new Test();
test.x = stage.stageWidth * 0.5;
test.y = stage.stageHeight * 0.5;
addChild(test); // you could also write something like 'container.addChild(test);' to add the Test instance to a Movie Clip instance called 'container'
I hope this helps.
Regards,
JC
Copy link to clipboard
Copied
Hi.
AS3 or HTML5?
Regards,
JC
Copy link to clipboard
Copied
hi Joåo, as3,
Copy link to clipboard
Copied
First you need a Movie Clip in the Library set to export for ActionScript.
Then, for example, put this code in the first frame of the main timeline:
var test:Test = new Test();
test.x = stage.stageWidth * 0.5;
test.y = stage.stageHeight * 0.5;
addChild(test); // you could also write something like 'container.addChild(test);' to add the Test instance to a Movie Clip instance called 'container'
I hope this helps.
Regards,
JC