Help! I have a dropdown menu I created by animating a tween.
e.g. dropdownmenu ( mc )
so when you click on a button it plays the mc and scrolls it down inside the move clip I have 12 buttons on the menu with rollovers each button then
plays a move clip that is also clickable. to make it dissapear
So When you click on the Staff button
it plays the Dropdownmenu move clip
then clicking the buttons in the menu will open up a Movieclip
that plays and pauses 1/2 way through then it’s a clickable
Movieclip that once you click on it, it then plays and dissapears.
Finally rolling off the drop down menu makes it play that MC and then
dissapear.
Simple?
Problem is I can get the movie clip of the dropdown menu to play.
button1h.addEventListener(MouseEvent.CLICK,clickon1h);
function clickon1h(myEvent:MouseEvent):void
{
dropdownmenu.gotoAndPlay(1);
}
simple. Then when I do
robert.addEventListener(MouseEvent.CLICK,bio1a);
patrick.addEventListener(MouseEvent.CLICK,bio2a);
dennis.addEventListener(MouseEvent.CLICK,bio3a);
function bio1a(myEvent:MouseEvent):void
{
bio1.gotoAndPlay(1);
}
function bio2a(myEvent:MouseEvent):void
{
bio2.gotoAndPlay(1);
}
function bio3a(myEvent:MouseEvent):void
{
bio3.gotoAndPlay(1);
}
for the buttons inside the movie clip. ( All this script is in the same frame )
Failure it doesn’t find the buttons and fails. Firstly I don’t remember how
to point this to the movie clip DROPDOWNMENU ( where the buttons exist )
inside the movie clip.
Now when I try
bio1a.addEventListener(MouseEvent.CLICK,bio1b);
bio2a.addEventListener(MouseEvent.CLICK,bio2b);
bio3a.addEventListener(MouseEvent.CLICK,bio3b);
function bio1b(myEvent:MouseEvent):void
{
bio1.gotoAndPlay(15);
}
function bio2b(myEvent:MouseEvent):void
{
bio2.gotoAndPlay(15);
}
function bio3b(myEvent:MouseEvent):void
{
bio3.gotoAndPlay(15);
}
This is with all the other code it also fails… This is so that when the
bio mc popsup you click on it to play it to a 0% alpha. I wish I could
figure out how to load and unload the mc instead of makeing all 12 MCs
0% aplha…
Sadly I really miss flash 5 those were so simple days…
Anything you can suggest will help me greatly…