Mouse Follow that does not start at (0,0)

Based on the tutorial…

Mouse Follow with Easing

[color=black][font=Arial]I created this menu_follow.swf[/font][/color]

[font=‘Times New Roman’][font=Verdana][size=2]I’m using. [/size][/font][/font]
[font=‘Times New Roman’][font=Verdana][size=2]

 [/size][/font]
[font='Times New Roman'][/font] 
onClipEvent (load) {

			_x = 406;

			speed = 5;

}

onClipEvent (enterFrame) {

			endX = _root._xmouse;

			_x += (endX-_x)/speed;

}




When it loads and your mouse in not over the flash, it will start at x=406, but it quickly runs back to 0.

I want each item to be red depending on the page loaded. Is there a way that it can load in a certain position, then have it follow the mouse?

Link to the .fla file[/font]

erm… change the _x = 406 bit??? or have i misunderstood your question??

Prophet.

change your fps to 30

:p:

ok. i fixed it by setting up a variable to determine whether the menu’s been rolled over yet. i gave redbox an instance name. it shouldn’t be too hard to understand w/the comments. look at the AS in the buttons and the redbox MC.

OMG!!!
Dude you are great. Thank you very much for this.
This is something that should be added to the tutorial.

no problem. welcome to the forums by the way.

Hello All,

I am new to this site and its a really cool and informative site.
When I download any .fla file, like the one above. I get an “unexpected file format” error, when trying to open it.
Can some one please tell me what I am doing wrong?
I am using FLASH MX2004 professional.
Thanks in advance!