PDA

View Full Version : draggable mov. clips



olmanshado
March 14th, 2002, 08:24 PM
hey all. i have 1 question. ok i know how to create the draggable clips for lets say menus and all that but my question is... how is it that some people make the draggable object seem like its laggaing behind??

upuaut8
March 14th, 2002, 09:15 PM
please post an example site that uses this effect.

olmanshado
March 15th, 2002, 10:26 PM
ok umm. go look at xpressive.com look at the hand clip the way its following the mouse(arrow).

not in the middle but lagging behind

hope this sample gives you an idea

ilyaslamasse
March 16th, 2002, 06:07 AM
WTH is that site ?? I still don't see what you mean.
pom 0]

olmanshado
March 16th, 2002, 09:13 AM
jesuss christ!!! my bad. i made a mistake lol. instead of xpressive.com, put in x-pressive.com

when you move the mouse around a circle thingy follows the mouse but not on the middle, it lags behind

ilyaslamasse
March 16th, 2002, 09:58 AM
onClipEvent (enterFrame) {
_x += (_root._xmouse - _x)/7 ;
_y += (_root._ymouse - _y)/7 ;
}pom 0]

olmanshado
March 23rd, 2002, 12:12 PM
ok 1st i wanna say thanks for the first time ya helped me but now i need more.lol.

i added the code and it worked fine but im looking for a way that when the page loads, it starts the lagging motion right,then when pressed a menu appears with what ever i put in the menu.

my problem is that i want it to stop lagging when the menu is open and to start lagging again when menu closed. ive gotten as far as it
1st getting it to lagg behind and
2nd opening the menu
but after that the menu also drags

hope its not too confusing any help appreciated
thank you

shado

ilyaslamasse
March 23rd, 2002, 08:38 PM
There has to be some sort of button somewhere. Just add
on (press) {lag=0 ;}
on (release) {lag=1;}Then in the clip :
onClipEvent (enterFrame) {if (lag) {same as before}}pom 0]