imgPlaceholder_mc is created in the constructor of my main class and then added to the stage...
Hi, I have a problem.
I have a xml slideshow and I have created a new class for the buttons (added directly on the stage) that allow the user to select a picture. All I have to do in this class is to addChild(theLoader) that was passed from the main class.
On the stage I have a mc called: imgPlaceholder_mc in witch I want the picture to be loaded based on what button has been clicked.
My question is how do I target imgPlaceholder_mc from my button class ?
ex :doesn't work ....PHP Code:stage.imgPlaceholder_mc.addChild(myImage);
I have also tryed to pass imgPlaceholder_mc to the class but things got crazy
I am not asking anyone to try to reconstruct my problem, but in case you know the answer, let me know.
Thanx![]()
imgPlaceholder_mc is created in the constructor of my main class and then added to the stage...
Hi,
you can add
at your class andCode:addEventListener(Event.ADDED_TO_STAGE,go);
Code:function go(evt:Event):void { trace(parent. imgPlaceholder_mc); }
Bookmarks