Flasher Archive

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


Subject: Re: FLASH: Re: Help: dynamically using xscale
From: Randy Kato
Date: Tue, 19 Sep 2000 15:17:16 +0100

Swain,

Josh Davis' (Praystation) movement is actually pretty simple. Say you want to
move/scale from A to B. In your loop, instead of moving/scaling it a set amount
each time until it reaches B, do it half-the-distance each time, like (B-A)/2,
with A as your current position/scale that updates itself each time. This will
create the effect of slowly settling into a final state.

When dealing with percentages, like with scale, one easy way is to create your
MCs at 100x100 pixels, then everything you do to it is relative to 100 (no
conversion necessary -- 100 percent = 100 pixels). Otherwise you'll have to do a
little math to figure out the ratio of your MC dimensions relative to 100, and
then use that formula with each conversion.

HTH,
Randy


Swain Troy wrote:

> Thanks Sergio, but I'm still lost.
>
> I have no problem getting a mc to _change_ positions, but I can't get it to
> smoothly and dynamically change scale... I can change it's scale, but I
> don't know how to set up a loop that let's it grow quick, and then slows
> down when it approaches it's final size.
>
> I'm getting lost on how to set up percentages instead of pixels. It will
> start to enlarge the mc and then, all of the sudden, it's snaps to it's
> final position.

--
'''''' ' ' ' ' ' ' ' ' '
Randy Kato - Web Master
Braincraft

627 Broadway, Suite 504, NYC 10012
T 212.539.1680 F 212.539.1741
http://www.braincraft.com
...... . . . . . . . . .



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: Re: Help: dynamically using xscal, Swain Troy

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