Actually there is no logic to load one more picture in your code?, always it will utilize
picNum=1 while enters thru ENTER_FRAME event.
Finally you load the image into the movie clip and a loader inside, so every time it focus your loader and not your movie clip.
Check with the below code to load a picture and at the same time your over and out effect will work.
gb1_mc.addEventListener(MouseEvent.MOUSE_OVER, mainLift);
gb1_mc.addEventListener(MouseEvent.MOUSE_OUT,mainDrop);
gb1_mc.buttonMode=true;
function mainLift(event:MouseEvent):void {
var thisOne:Loader = Loader(event.target)
thisOne.y -= 15
thisOne.x -= 10
thisOne.width += 20
}
function mainDrop(event:MouseEvent):void {
var thisOne:Loader = Loader(event.target)
thisOne.y += 15
thisOne.x += 10
thisOne.width -= 20
}
addPicMain();
function addPicMain():void {
var picNum:Number = 1;
var imgRequest:URLRequest = new URLRequest("/galImgs/pic" + picNum + ".jpg");
var imgLoader:Loader = new Loader ();
imgLoader.load(imgRequest);
gb1_mc.addChild(imgLoader);
} rajarajan07
Nearly a Posting Virtuoso
1,447 posts since May 2008
Reputation Points: 167
Solved Threads: 239