Flasher Archive

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


Subject: Re: FLASH: Changing variables on the fly...
From: Randy Kato
Date: Wed, 11 Oct 2000 19:34:01 +0100

Ken,

Not sure what exactly you're trying to accomplish but the two examples you gave
are fairly easy.

Change var based on MC coords:

on (press) {
myVar = myMC._x;
}

Change var based on number of clicks:

on (press) {
myVar = myVar++;
}

Why can you only put one action into each button? You should be able to put
pages and pages of script into a button action. Maybe I'm not understanding
correctly.

HTH,
Randy

Ken Grygienc wrote:

> Anyone know how to change a variable assigned in a button based on either
> the coordinates of a movie or the number of mouse clicks a user makes. Or
> any other way you can think of.
>
> Basically I developed a sliding menu where if you click on a button, it runs
> an action script that moves the movie. But my problem is that I only have 2
> buttons which means I can only put 1 action to each button.
>
> The reason I didn't do this the easy way is because the movie has an easing
> in and out effect, which is achieved by dividing the destination coordinates
> and all that happy jazz.

--
'''''' ' ' ' ' ' ' ' ' '
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: Changing variables on the fly..., Ken Grygienc

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