Groups | Blog | Home
all groups > flash actionscript > january 2005 >

flash actionscript : on rollover play mc and startDrag


Wrinkle
1/1/2005 7:15:23 PM
The following works, but for some reason moving my cursor across the mc it's
attached to causes rollOver and rollOut to flicker off and on despite not
rolling off of the mc. So if I move my cursor over day1 (mc), gotoAndPlay
triggers just as it should, stops at 5, if I then move the mouse again (not
off the mc) it goes to 6 as if I rolled out and starts over again.

Any suggestions?


on(rollOver){
startDrag("/dragLayer/timeBox",true,600,2,-10,-10);
_root.dragLayer.day1.gotoAndPlay(2);
}

on(rollOut){
stopDrag();
_root.dragLayer.day1.gotoAndPlay(6);
}



Thanks

Wrinkle
1/1/2005 7:31:06 PM
Here is an example:

http://66.134.67.155/example.swf


Thanks




[quoted text, click to view]

Wrinkle
1/1/2005 9:06:12 PM


Yes, it is.

Here is my fla if you wanna take a quick look:

http://66.134.67.155/example.fla

Thanks


[quoted text, click to view]

Wrinkle
1/2/2005 2:57:53 AM

Thank you, that was helpful. Everything is working now.


Thanks again


[quoted text, click to view]

kglad
1/2/2005 4:54:14 AM
kglad
1/2/2005 7:27:19 AM
because your startDrag() locks dragger to the mouse position and because
dragger is "above" button, on each rollover dragger is locking to the mouse
position, covering button and initiating a rollout. to remedy either change
that lock flag to false or put dragger on a layer beneath button.
kglad
1/2/2005 5:06:21 PM
AddThis Social Bookmark Button