|
-
dynmic navigation help
ok so I have been working on this site few the last couple of weeks, slowly but surely learning bits and pieces of flash and actionscript 3.0
So here is what I have going on. When the page opens I have 12 circular buttons animate on to the stage, they form a circle around a video of the earth I have spinning in the center of the stage.
So when I click on a button I have all of them animate the rest of they way around the earth and line up evenly across the top of the stage, so I can open new content under the buttons.
I have all of this working right now but the problem I am running into is when I click on one of the buttons again after they have moved to the top of the stage it cues it to replay the animation of the buttons animating up to the top.
Does anybody know how I can get this to work for the first click on any button and then disable it so the buttons stay in place on all subsequent clicks?
I am using actionscript 3.0
and here is the code I have on my buttons:
planet5_btn_mc.addEventListener(MouseEvent.ROLL_OV ER, playMovie5, false, 0, true);
planet5_btn_mc.addEventListener(MouseEvent.ROLL_OU T, stopMovie5, false, 0, true);
planet5_btn_mc.addEventListener(MouseEvent.MOUSE_D OWN, onDown5, false, 0, true);
planet5_btn_mc.addEventListener(MouseEvent.MOUSE_U P, onUp5, false, 0, true);
function playMovie5(e:MouseEvent):void
{
planet5_btn_mc.play();
}
function stopMovie5(e:MouseEvent):void
{
planet5_btn_mc.stop();
}
function onDown5(e:MouseEvent):void
{
this.planet5_btn_mc.planet5_btn_clicked_mc.alpha =.4;
}
function onUp5(e:MouseEvent):void
{
this.planet5_btn_mc.planet5_btn_clicked_mc.alpha =0;
MovieClip(root).gotoAndPlay("btn_click_anim","Scen e 1");
}
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|