Hello, I’ve been searching for a solution for this problem for the best part of this day so I hope someone here can help me.
Here’s my scenario,
I have a swf of class a class i’ve called sceneHolder, it loads up an xml file and uses this to determine which external swfs to load up, the swfs are loaded up and into loader’s then their contentLoaderInfo.content is addChild’ed to a movieclip in sceneHolder called myScene, they are then positioned and so on.
Another item loaded from the sceneHolder library is also loaded into myScene.
Then, on the press of a button I call this
for (var i:uint = 0; i < myScene.numChildren; i++)
{
var myMC=myScene.getChildAt(i)
if(myMC is sceneSprite)//which they are because they trace
{
trace (’ | ’ +i+’. name:’ + myMC.name + ’ type:’ + typeof (myMC)+ ’ ’ + myMC);
myMC.addEventListener(MouseEvent.CLICK,selectSceneObjectForMoving)
myMC.mouseChildren=false
myMC.mouseEnabled =true
myMC.buttonMode=true
myMC.useHandCursor=true
}
}
But for what ever reason, the only clip that gets this MouseEvent applied to it is the one loaded from the local library.
Any ideas? Help me Kirupa forum, you’re my only hope.