Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | RE: FLASH:dragging on a restricted curve? |
| From: | Branden Hall |
| Date: | Wed, 8 Mar 2000 18:36:19 GMT |
To address the person who wanted to know why I used actionscript rather than
fiddling with a tween... the answer is size and granuality. Its always
better size-wise to forgoe tweens if you can do it with actionscript. Also
the tween is limited to the number of steps I could have, my actionscript is
as granular as the mouse.
As for how its done... It is simply 3 movie clips, draggy, which is
draggable but invisible, another named ball that is the ball and finally a
two frame controller movie clip.
At first draggy is over ball, and when you click on draggy it sets a
variable /:drag = true
The controller movie clip is always looking at the /:drag variable, and if
it is true it uses the equation for a line x^2 + y^2 = r^2 to figure out
that for the current Y of draggy, what the cooresponding X should be. It
then places ball on that X and on the Y of draggy. WHen you let go of draggy
it snaps it to the current position of ball so that you can start again.
-= Branden J. Hall
-= Multimedia Developer/Instructor
-= Fig Leaf Software - "We've got you covered!"
-----Original Message-----
From: owner
Ahern
Sent: Wednesday, March 08, 2000 1:55 PM
To: flasher
Subject: Re: FLASH:dragging on a restricted curve?
yes, elaborate!
At 08:59 AM 3/8/00 -0800, you wrote:
>Branden Hall wrote:
>
>> You can also do this matematically using equations for the curve... I
have
>> done such with half a circle... though I am also working with a version
>> which will actually measure angles...
>>
>> http://www.figleaf.com/development/flash4/curve.swf
>>
>> -= Branden J. Hall
>> -= Multimedia Developer/Instructor
>> -= Fig Leaf Software - "We've got you covered!"
>
>Ok, care to elaborate on how exactly you did this? Your SWF gives
absolutely no
>hint whatsoever of how you did this.
>
>Darren.
. . . . . . .
paul ahern | 512.651.1389
web designer person | human code
austin | tx
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 help
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 help
Replies
Re: FLASH:dragging on a restricted curve, Jonathan Kemp
FLASH: question for Branden, John McKenzie
RE: FLASH:dragging on a restricted curve, Radical
Replies
Re: FLASH:dragging on a restricted curve, Paul Ahern
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

