Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Force mouse to release a movie while dragging...

Status
Not open for further replies.

marble

Programmer
Mar 17, 2001
22
0
0
CA
Hi all,

I have a flash movie that allows a user to drag several movie clips onto drop targets. This works great!

If the user drags a movie to the right (greater than 680) then I would like the movie that is being dragged to be released at that x position.


onClipEvent (mouseMove)
{
if(this._x > 680)
{
// i would like to release the movie clip
// being dragged

}
}


I can then apply this to the left, top and bottom areas of the main movie.

Can someone point me in the right direction.

Thanks in advance

Marble
 
myMovieClip.stopDrag(); ???

Regards,

cubalibre2.gif
 
Hi all,

Yes, that works great, however, the movie clip being dragged is not released from the mouse until the user releases the mouse.

I have a:

on (release, releaseOutside)
{

}

that handles a procedure to drop the movie being dragged to the last product place holder. This works great, but I need to call this above event handler when the mouse x coordinates are greater than 680.

Thanks in advance.

Marble
 
main timeline

clip.onRelease.onReleaseOutside = myhandler;
function myhandler(){
//
}

onClipEvent (mouseMove)
{
if(this._x > 680)
{
_root.myhandler();
}
}


 
Hi all,

IT work great!

Thankyou to all you!

Marble
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top