Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: drag and drop with a PIVOT point
From: Gregg Caines
Date: Sun, 10 Dec 2000 09:16:29 GMT

There might be some kind of way to do it with some crazy algebra
but I think if I were you, I'd do it with minimal actionscript:

Create a movie clip that contains the needle arm in its start position
and tween it until it's at it's last position. Put a stop action in the
first frame and then put that clip on the main stage where you would
want the needle arm to go.

Next create a bunch of invisible buttons along the needle's path. In
the 'on dragover' event of those buttons target the needle MC and tell
it to gotoandstop at the frame that would best show where the needle
should be at that time. The quality of the drag effect will be higher if
you have a high number of frames in your MC and a high number of
invisible buttons on your stage.

If you want, you can even add some actionscript to ensure that the
user goes from the start to the end in the correct sequence (rather than
dragging over an invisible button in the middle and skipping to the
middle of the movie clip).

HTH

---------------------------------------------------
Gregg Caines
n e o m e t r i x systems inc.
http://www.neometrixsystems.com
gcainesatneometrixsystems [dot] com


> how do u do that? i want to create a record player and a user tostart
> spining the the record by presing button and have the user drag the needle
> to
> the record...how do u make it so it only drags part of it?



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: drag and drop with a PIVOT point, MagixFlash3D

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]