Flasher Archive

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


Subject: Re: FLASH: move depending on position
From: Randy Kato
Date: Thu, 13 Jul 2000 21:47:07 +0100

Julie,

You need to swap the two values in your second Set Variable statement. Right now
you're getting the y position into 'threey', but then you're resetting 'threey'
to 'n', rather than setting 'n' to 'threey'. But this step is actually
unnecessary (all it's doing is essentially renaming the variable). You could
boil down the script to:

On (Release)
Set Variable: "threey" = GetProperty ("/3", _y)
Set Property ("/3", Y Position) = threey + 60
End On

HTH,
Randy


julie gargan wrote:

> hello,
>
> I am trying to move something depending on it's own position. Basically I
> have a button that will push it one way and another button that will push it
> another way, so I want to be able to figure out where it is and then have it
> move. This is what I have tried:
>
> On (Release)
> Set Variable: "threey" = GetProperty ("/3", _y)
> Set Variable: "threey" = "n"
> Set Variable: "three" = n + 60
> Set Property ("/3", Y Position) = three
> End On
>
> But it seems to ignore the variable that I thought would determine the
> placement of the object and it just places it at 60y. I think I've tried
> every possible variation of making the values strings or expressions,
> nothing seems to work. Any help would be very much appreciated.
>
> thanks.

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

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



flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
July 24-26, 2000, NEW YORK CITY, Hammerstein Ballroom
www.flashforward2000.com
Produced by United Digital Artists and lynda.com
Sponsored by Macromedia, Adobe Systems, Fusion, Inc, AtomFilms,
shockwave.com and Electric Rain.
1.877.4.FLASH.4 or (1.805.640.6679 outside the US and Canada)
Register before June 30 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: move depending on position, julie gargan

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