Mouseover move 1 of 6 buttons to front for simple gallery
OK this is crazy. I have tried so many solutions and nothing seems to work. I have six images on a frame as buttons with rollovers making them expand on the button frames. The issue is when the mouse goes over they only expand over the other buttons they are above stackingwise in that layer. I really was hoping to create just a simple bit of code, but it seems that things like containers and children are all needed?
My code is thus...
dig1.addEventListener(MouseEvent.MOUSE_OVER, over1);
function over1(event:MouseEvent):void
{
addChild(event.currentTarget);
}
dig2.addEventListener(MouseEvent.MOUSE_OVER, over1);
dig3.addEventListener(MouseEvent.MOUSE_OVER, over1);
dig4.addEventListener(MouseEvent.MOUSE_OVER, over1);
dig5.addEventListener(MouseEvent.MOUSE_OVER, over1);
dig6.addEventListener(MouseEvent.MOUSE_OVER, over1);
The little line of code was my most recent attempt but it pulled up an error about things I have no clue on (1118). Is there a simple code to move the current button on top with out having to say "forget AS3!" and just make a 5 frame webpage a 60 frame one?
P.S. what is the best format to import videos into a flash project? I went with a swf version, but I was not sure if the mov or other formats would be better.