Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mouse over buttons w/slide movement

Status
Not open for further replies.

peter11

Instructor
Mar 16, 2001
334
US
I am trying to create buttons hidden off to the side of the screen but when you mouseover them they slide out. On mouse off they slide back to the side. I do not want to alter the rest of the page, so I cannot use go to frame.

How would I do this?
 
You will need to use a movieClip, with some intelligent scripting. If you're not really big into actionscript, you may want to think about just having the buttons static on the page (less hassle), but if you're happy enough to "appropriate" some actionscript, I can send you a sample FLA with the type of sliding menu you're talking about.
 
rgstewart,
I used a movie clip and it works where the button slides out on a mouseover. But it dissappears when you mouseout. I assume the slide back requires actionscripting. I am somewhat familiar with javascripting and fluent with coldfusion and vb. Is the actionscripting very complex?
 
Not really, but you need to script the movieClip, not the button. It relies on the "onClipEvent(enterFrame)" handler, and basically works by performing a hitTest() on the movieClip once per frame to see if the pointer is over the clip. If it is, it plays one frame forward (provided that it hasn't reached the last frame of the clip) - if not, it plays one frame backward (provided it hasn't reached the first frame of the clip).
 
rgstewart,
Could you send that .fla you mentioned?

okbuhbye@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top