Question
Button on Top of Movie Clip producing Strange Results
So, at one time I w s fairly familliar with Flash, but I am
now returning to it and need some help. I have a movie clip that I
am using AS3 to control, basically it slides out when your rollover
it and then slides out when you mouse off it. This is my code:
OPEN:
stop();
import flash.events.MouseEvent;
slider.addEventListener(MouseEvent.MOUSE_OVER, Open);
function Open(event:MouseEvent):void{
gotoAndPlay("start");
}
CLOSE:
stop();
import flash.events.MouseEvent;
slider.addEventListener(MouseEvent.MOUSE_OUT,Close);
function Close(event:MouseEvent):void {
gotoAndPlay("stop");
}
I would like to place a series of button images on top of that sliding panel and add links to them. I started to so this, but when you rollover the button, the movie clip gets really freaky. Code for button:
import flash.events.MouseEvent;
btn1.addEventListener(MouseEvent.CLICK, corinthianCoin);
function corinthianCoin(event:MouseEvent)
{
navigateToURL(new URLRequest(" http://www.si.edu") ("_self"));
}
Here is what I am dealing with. I would like the coin to function as a link.
http://darrenmilligan.com/testflash.html
Any ideas?
Thanks,
Darren
OPEN:
stop();
import flash.events.MouseEvent;
slider.addEventListener(MouseEvent.MOUSE_OVER, Open);
function Open(event:MouseEvent):void{
gotoAndPlay("start");
}
CLOSE:
stop();
import flash.events.MouseEvent;
slider.addEventListener(MouseEvent.MOUSE_OUT,Close);
function Close(event:MouseEvent):void {
gotoAndPlay("stop");
}
I would like to place a series of button images on top of that sliding panel and add links to them. I started to so this, but when you rollover the button, the movie clip gets really freaky. Code for button:
import flash.events.MouseEvent;
btn1.addEventListener(MouseEvent.CLICK, corinthianCoin);
function corinthianCoin(event:MouseEvent)
{
navigateToURL(new URLRequest(" http://www.si.edu") ("_self"));
}
Here is what I am dealing with. I would like the coin to function as a link.
http://darrenmilligan.com/testflash.html
Any ideas?
Thanks,
Darren