Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: Snap to drag |
From: | Quintin Mills |
Date: | Thu, 23 Mar 2000 18:34:31 GMT |
Fwaaaaaah
Thanks a million.
I will try it out.
Thank you.
Quintin Mills
Kitsch Design
:::::| 011 - 466 0016
:::::| 083 604 0089
:::::| www.kitschdesign.co.za
:::::| THE ART BUYER | The online Advertising and Design resource.
:::::| http://www.theartbuyer.co.za
----- Original Message -----
From: Eric Smollin <esmollinPLANSOFT [dot] com>
To: <flasherchinwag [dot] com>
Sent: Thursday, March 23, 2000 3:49 PM
Subject: RE: FLASH: Snap to drag
> You can accomplish this by first getting the original position of the
> dragged movie, and if the drop conditions are not met, tell the movie to
> snap back to the original position. On the timeline of your dragged movie,
> set two variables:
>
> Set Variable: "orgX" = GetProperty("", _x)
> Set Variable: "orgY" = GetProperty("", _y)
>
> Now in the actions of the dragged button you would have something like
this:
>
> On (Press)
> Start Drag ("")
> End On
> On (Release)
> Stop Drag
> If (_droptarget eq "/Target")
> Set Property ("", X Position) = GetProperty("/Target", _x)
> Set Property ("", Y Position) = GetProperty("/Target", _y)
> Go to Next Frame
> Else
> Set Property ("", X Position) = orgX
> Set Property ("", Y Position) = orgY
> End If
> End On
>
> If the dragged clip meets the conditions (in the example above it would be
> if the dragged movie is dropped on a MC on the main timeline called
> "Target") then stop dragging and snap the dragged MC to the center of the
> droptarget. If the conditions are NOT met (e.g. if the MC is dropped
> somewhere other that the target), snap back to the original position (orgX
> and orgY).
>
> HTH
> -Eric-
>
>
> >What i need to do it drag a movie into the target area.
> >If there is nothing else in that area, release.
> >If there is already something there, position it's x and y exactly where
it
> was first dragged from.
> >Seems simple, but i cannot seem to get it right.
> >I would appreciate it if you could help me out.
>
> flasher is generously supported by...
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> flashforward2000 and The Flash Film Festival
> "The World's Premier Flash Solutions Conference and Expo"
> March 27-29, Nob Hill Masonic Center, San Francisco, California
>
> -Register before Feb 25 and save $200!!-- www.flashforward2000.com
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> To unsubscribe or change your list settings go to
> http://www.chinwag.com/flasher or email helpchinwag [dot] com
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World�s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California
-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
RE: FLASH: Snap to drag, Eric Smollin
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]