Flasher Archive

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


Subject: Re: FLASH: Flash 4 Scripting
From: Helen Triolo
Date: Tue, 18 Jul 2000 20:55:01 +0100

Assuming Tree1 is an instance of a movieclip which is sitting on the
main timeline (or on whatever timeline you're executing this code from),
then try:

Set Variable: "TreeAlpha" = GetProperty ( "Tree1",_alpha)
If (TreeAlpha = 100)
Set Property ("Tree1", X Position) = 150 (no quotes)
Set Property ("Tree1", Y Position) = 77
Else
Set Property ("Tree1", X Position) = 70
Set Property ("Tree1", Y Position) = 432
End If

hth,
Helen
---------------------------------------------------
helen triolo � http://i-technica.com � 301-424-6037
Flash Q&A archive � http://i-technica.com/flashlist

Ed Harvey wrote:
>
> I have a Tree1(instance name) sprite that in the color effect, I set alpha
> to 10. Then I have a button the sets the Tree1's alpha to 100. When I select
> the button the Tree1 sprite does changes its alpha to 100, but the sprite
> doesn't move. The movie only contains 1 Frame.
>
> Can anyone tell me why I can't get the Tree1 sprite to x 150 y 77.
>
> Set Variable: GetProperty ( "Tree1",_alpha) = "TreeAlpha"
> If ("TreeAlpha" = 100)
> Set Property ("Tree1", X Position) = "150"
> Set Property ("Tree1", Y Position) = "77"
> Else
> Set Property ("Tree1", X Position) = "70"
> Set Property ("Tree1", Y Position) = "432"
> End If
>

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: Flash 4 Scripting, Ed Harvey

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