|
-
Thanks,
Here is the code. I got the clicked state working with the Mouse_Down event. I created a movie clip with just a black circle and placed it over each video, instanced each _mc and then tied them into the code.
So is there any way you can think of to steamline the code at all? I have twelve buttons and alll have this code copied to them in the main timeline.
Thanks!
Chris
planet1_btn_mc.addEventListener(MouseEvent.ROLL_OV ER, playMovie1, false, 0, true);
planet1_btn_mc.addEventListener(MouseEvent.ROLL_OU T, stopMovie1, false, 0, true);
planet1_btn_mc.addEventListener(MouseEvent.MOUSE_D OWN, onDown1, false, 0, true);
planet1_btn_mc.addEventListener(MouseEvent.MOUSE_U P, onUp1, false, 0, true);
function playMovie1(e:MouseEvent):void
{
planet1_btn_mc.play();
}
function stopMovie1(e:MouseEvent):void
{
planet1_btn_mc.stop();
}
function onDown1(e:MouseEvent):void
{
this.planet1_btn_mc.planet1_btn_clicked_mc.alpha =.4;
}
function onUp1(e:MouseEvent):void
{
this.planet1_btn_mc.planet1_btn_clicked_mc.alpha =0;
}
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
|