Use addChild methos to add an element to stage.
sppawner_btn.addEventListener(MouseEvent.CLICK, spawnspinkjewel);
function spawnspinkjewel(event:MouseEvent):void
{
var myChild:MC= new MC();
stage.addChild(myMC)
}
문제
so any help would be appreciated. How would i go about setting up so a movieClip appears on the stage when a button is clicked?
sppawner_btn.addEventListener(MouseEvent.CLICK, spawnspinkjewel);
function spawnspinkjewel(event:MouseEvent):void
{
//------ ummmm
}
thanks, I am new to AS3! :-)
해결책
Use addChild methos to add an element to stage.
sppawner_btn.addEventListener(MouseEvent.CLICK, spawnspinkjewel);
function spawnspinkjewel(event:MouseEvent):void
{
var myChild:MC= new MC();
stage.addChild(myMC)
}