Skip to main content
Inspiring
May 29, 2006
Question

Need help creating drop menus - DMennenoh?

  • May 29, 2006
  • 4 replies
  • 463 views
Hi there, I'm pretty new to Action script - I'm trying to build a series
of buttons with drop menus - I've built a movie clip button then within
the movie clip button on the "over" frame I have the menu button which
is also a movieclip button.

So obviously what I want to happen is.... when the main button is rolled
over, the menu buttons appear and rollover effects happen as they should.

I've got the following action script in the first frame of the main timeline

profile_mc.onRollOver=function(){profile_mc.gotoAndStop("over");}
profile_mc.onRollOut=function(){profile_mc.gotoAndStop("up");}

That works fine... it's THAT over state that the menu button appears...
But it doesn't seem to matter what I do how I add the directional script
the actions of the button won't work. Can anyone help me with where I'm
going wrong?

profie_mc is the instance of the button with the menu attached...

Here is the URL for the fla file (FlashMX)
http://artnsoulgraphicdesign.com/testNEW_29-05-06.fla

I want to create something similar to http://www.blurredistinction.com/
I don't necessaruily need the sliding part... just to appear and to
rollover would be great. I've been at this for at least 3 weeks so far
and it's driving me nuts... if I can figure out how to do one then the
rest should just fall in....

Many thanks for any assistance received.

Kind regards
Piers Le Sueur
This topic has been closed for replies.

4 replies

Inspiring
June 7, 2006
Thanks so much for that Adobe Tech note link!!!!!!! I kinda followed it
with my own buttons and what not, and adapted as I went as I could see
exactly what they were doing!!!!.. so it all works now!!! Good thing is
I've come across some other great how tos!! for any thing else should
the need arise!!!

Thank you again!!! ...

Warmest Regards
Piers

Craig Grummitt wrote:
>>>i dunno. maybe is there a website out there that you want your site to
>
> work
> >> similar to?
> >If you check out the link in my previous post... blurredistinction.com -
> >I don't need the sliding action in the menus, just that they appear, if
> >I can learn how to make them slide later - all the better....
>
> Piers - I was joking! you'd already mentioned blurredistinction.com three
> times - now it's four!
>
Craig Grummitt
Inspiring
May 30, 2006
>>i dunno. maybe is there a website out there that you want your site to
work
>> similar to?
>If you check out the link in my previous post... blurredistinction.com -
>I don't need the sliding action in the menus, just that they appear, if
>I can learn how to make them slide later - all the better....

Piers - I was joking! you'd already mentioned blurredistinction.com three times - now it's four!
Inspiring
May 30, 2006
Thank you so much Craig,
The file you gave me back is the same technique I used originally....
however, the problem is that if I butt them up to each other, if you
roll the mouse over them horizontally - they "stick", also the links you
provided 404's on me. Are they still valid?

I guess really at the end of the day I want to achieve something like
this.....

http://www.blurredistinction.com/

Any ideas on how you go about building these, or at least a tutorial
somewhere???...

Thank you so much for your time. Very much appreciated.

Kind Regards
Piers
Craig Grummitt
Inspiring
May 30, 2006
i'm not sure why those links don't work - try searching for "Building submenus/rollout menus" in the Actionscript forum.

since your message i had another quick look at the fla i posted and tidied it up a little - removed some redundant action script at lower levels(some of which you may need to put back in - especially whatever you want to happen on click) etc - you'll see - i've reposted it. i also put some more buttons in to show you it working with several buttons. i'm not sure what your problem is with this technique. or what exactly is 'sticking'?
Craig Grummitt
Inspiring
May 30, 2006
Afraid once a parent(eg profile_mc) has a button event handler (eg onRollOver), any children (eg profile_mc.testplay_mc) don't get notified of any button events.

i briefly explained a possible solution to this problem here and here but to help you out further, i've tweaked your flash file here to demonstrate how this could be done. hopefully this resolves your issue for you.

craig