onClipEvent (load)
{
xcenter=377;
speed=1/10;
}
onClipEvent (enterFrame)
{
var distance=_root._xmouse-xcenter;
_x+=(distance*speed);
if (_x > 0) _x=-754;
if (_x < -754) _x=0;
}
Ok i did the tutorial but something is wrong cuz when i created my own little sliding thingy and i put my mouse so it slides left or right on the right side it cuts off a bit when going infinite.
I think its something to do with the positioning of my menu because its not on x=0 its on x=120.8 and i was trying to work out how to fix it but i’m stuck…and when i move the menu to x=0 it works nicely…please helP! what values do i need to change?
Fixed it! The numbers were all a bit wrong…
hehe took me about 2min NB! Change the line
var distance = _root._xmouse-xcenter;
to
var distance = (_root._xmouse-xcenter)-1*;
so If you move the cursor to the left the menu moves to the right… more comfortable. If I see “pictures” on the left that I move my cursor to the left to click on it but if you don’t add “*-1” then the button “pictures” moves away from the cursor and that’s annnoying…**
i would love to know how to make it pause slightly after the mouse isn’t over the strip…like on the sony website…where it moves the mouse goes over then it goes somewhere else and the strip is paused and then slowly starts moving again…
do you know what i mean?
I thin what you mean by that 1. question but… maybe explain a bit more…
that second one doesn’t look hard though!
you can detect where the mouse is before moving the slider
if((_root._xmouse>=100) and (_root._xmouse<=300) and(_root._ymouse>=200) and (_root._ymouse<=400)) {
the actions here
}
Ok now here’s what i want to do.
-Firstly i want constant movement to the left or whatver…then when the mouse goes over it moves to relative position (that parts done)
-And THEN i would like it if your cursor goes off the moving menu it pauses slightly then starts rolling again just like in the SONY site. BUT i don’t want arrows…
All i need to work now is that when the Sliding Menu moves by itself it should repeat and appear infinite, because at the moment it passes once…i can’t seem to get it to repeat! aaaaarrgghh…
please read the above points for your reference…