Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 11-10-2002, 04:37 AM   #1
alpha100
Registered User
 
alpha100's Avatar
 
Join Date: Nov 2002
Location: Between Venus and Mars.............
Posts: 3
Default sliding menu -

Hello everyone

Just been working on a sliding menu that is assigned this AS:



onClipEvent (load)
{
xcenter=300;
speed=1/5;
}
onClipEvent (enterFrame)
{
var distance=_root._xmouse-xcenter;
_x+=(distance*speed);
}
onClipEvent (enterFrame)
{
var distance=_root._xmouse-xcenter;
_x+=(distance*speed);
if (_x > 0) _x=-600;
if (_x < -600) _x=0;
}



I've place the menu on frame 2. 1 and 2 both have stop() assigned. I've place a static unscripted instance of the menu within a button with a mouse event telling the movie to go to frame two to the onClipEvent(). What I'm trying to work out is how to script this MC on frame 2 so that when the mouse rollsOut the slider menu reverts back to its static impression on frame 1.

I've tried


on (rollOut){
gotoAndStop(1);
}



and using a button with just it's hit state ect.

Thanks for any advice

Last edited by alpha100; 11-10-2002 at 04:40 AM.
alpha100 is offline   Reply With Quote
Old 11-10-2002, 05:10 AM   #2
alpha100
Registered User
 
alpha100's Avatar
 
Join Date: Nov 2002
Location: Between Venus and Mars.............
Posts: 3
Default

here's an example fla.

I really want to work out how to make the slider stop moving once the mouse has left the movie.

Instead of going back to frame 1 is there a way with AS to tell the movie that the mouse has left and that it should stop now, kinda thing, in a more advanced way than I've been trying.

I'm new to all of this. Only 3 months old
alpha100 is offline   Reply With Quote
Old 11-10-2002, 05:12 AM   #3
alpha100
Registered User
 
alpha100's Avatar
 
Join Date: Nov 2002
Location: Between Venus and Mars.............
Posts: 3
Default

I forgot to attatch the fla. sorry peeps
Attached Files
File Type: zip example.zip (4.6 KB, 371 views)
alpha100 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:31 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.