Flasher Archive

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


Subject: FLASH: Help: dynamically using xscale
From: Swain Troy
Date: Sat, 16 Sep 2000 22:10:52 +0100

I have several boxes saved as movie clips.

Each has a seperate instance name.

When the user clicks certain buttons, all of the MCs are supposed to
reorganize themselves (dynamically setting the x and y position) and change
scale (using xscale and yscale).

What I can't figure out is how to have it grow from, say, 100 x 100 to 256 x
34 in a smooth manner.

The MC could start out from any of five different sizes. I want it to grow
from whatever it's current size is until it is, for example, 256 x 34
pixels.

I want smooth movement - similar to Praystation/Kioken's Barney's site
(which moves the MC "section" to a new x position; it starts out moving fast
and then slows down until it reaches the x position of "marker" and stops).
Here's their code (it's public domain):

Set Variable: "marker" = GetProperty ( "/marker", _x )
Set Variable: "sections" = GetProperty("/sections",_x)
Set Variable: "difference" = marker - sections
Set Variable: "move" = difference / 5
Set Property ("/sections", X Position) = sections + move

Argh... I wish I paid attention in my math classes.

troyswainatfunkyafro [dot] com
www.funkyafro.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
  Re: FLASH: Help: dynamically using xscal, Sergio Santos

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