shadkeene
07-01-2008, 09:33 PM
Hi...I'm fairly new to flash, but have been learning steadily.
My project basically involves a lot of shapes...which are symbols...rotating around the page. here's the site...www.mindn2matter.com.
What I'd like to do is allow the user to mouseover one of the "planets" and have the whole animation stop...mouseout and have the animation begin again. I did this successfully, but I wasn't able to get my second goal to work with this.
My second goal was to...once the animation is stopped and the user clicks on the planet...have links spoke out from the planet that the user could click on. I was able to do this...sort of...but not combine both of these goals.
What I did was make one of the planets a button...and I used this code to keep the animation at frame one if not mouseover, etc so there's just the planet, and then begin the button animation(spokes with links) when the user hovers over the planet:
stop();
hope_invis.addEventListener(MouseEvent.ROLL_OVER, buttonClickHandler);
function buttonClickHandler(event:MouseEvent):void {
play();
}
The problem is...I don't know how to write actionscript in the hope button's code that will call the main timeline to stop. I'd like the user to hover over the hope button...while the actionscript keeps the hope button's animation on frame 1 while also stopping the main timeline animation. Then, when the user clicks on the hope button...the button's animation plays and stops on last frame. Thanks for any help!
Shad
My project basically involves a lot of shapes...which are symbols...rotating around the page. here's the site...www.mindn2matter.com.
What I'd like to do is allow the user to mouseover one of the "planets" and have the whole animation stop...mouseout and have the animation begin again. I did this successfully, but I wasn't able to get my second goal to work with this.
My second goal was to...once the animation is stopped and the user clicks on the planet...have links spoke out from the planet that the user could click on. I was able to do this...sort of...but not combine both of these goals.
What I did was make one of the planets a button...and I used this code to keep the animation at frame one if not mouseover, etc so there's just the planet, and then begin the button animation(spokes with links) when the user hovers over the planet:
stop();
hope_invis.addEventListener(MouseEvent.ROLL_OVER, buttonClickHandler);
function buttonClickHandler(event:MouseEvent):void {
play();
}
The problem is...I don't know how to write actionscript in the hope button's code that will call the main timeline to stop. I'd like the user to hover over the hope button...while the actionscript keeps the hope button's animation on frame 1 while also stopping the main timeline animation. Then, when the user clicks on the hope button...the button's animation plays and stops on last frame. Thanks for any help!
Shad