Hi All,
Got this code loading thumbs, and when their clicked loads a
bigger image etc...
function xmlLoaded (e:Event):void {
xml = XML(e.target.data);
images = xml.image;
for(var i:uint=0; i<images.length();i++){
var thumb:MovieClip = new MovieClip();
var thumbLoader:Loader = new Loader();
thumb.x = 65*i + spacing;
thumb.y = 370;
thumb.src = images[counter].@url;
thumb.mouseChildren = false;
thumb.buttonMode = true;
thumbLoader.load(new URLRequest(images[counter].@thumb));
addChild(thumb);
thumb.alpha = 0;
TweenMax.to(thumb, 1, {alpha:1, ease:Sine.easeIn});
thumb.addChild(thumbLoader);
thumbLoader.x = 24;
thumbLoader.y = -14;
thumb.addEventListener(MouseEvent.CLICK, clickedThumb);
counter++;
}
loader.load(new URLRequest(images[0].@url));
}
Problem happens with the following code - I go into
fullScreen and want to either hide the thumb etc... or remove it:
masker.addEventListener(MouseEvent.CLICK, fullScreen);
function fullScreen(MouseEvent):void
{
thumb.visible = false; // do not work
removeChild(thumb); // do not work
stage.displayState = StageDisplayState.FULL_SCREEN;
masker.x=0;
masker.y=0;
masker.width=stage.stageWidth;
masker.height=stage.stageHeight;
StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
}
masker.buttonMode = true;
Hope someone can provide an answer to this, as it's driving
me BONKERS 😉 It's got to be down to how I am referring to it, the
path.
Kind Regards,
Boxing Boom