Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | Re: FLASH: fading a target using actionscript |
| From: | Branden Hall |
| Date: | Wed, 12 Jan 2000 13:19:12 GMT |
The reason it is so fast (it is instantaneous)
is because Flash never actually updates the stage until a frame is left...
hence to loop through the property of something you have to have it set up
in a timeline based loop and not an actionscript loop.
-= Branden J. Hall
-= Multimedia Developer/Instructor
-= Fig Leaf Software
----- Original Message -----
From: simon mills <samills
To: <flasher
Sent: Wednesday, January 12, 2000 6:33 AM
Subject: FLASH: fading a target using actionscript
> Hi all,
>
> I'm having a problem trying to use actionscript to fade a target
animations
> alpha.
>
> Basically what I want is when I rollover a button I want an animation (my
> target) to fade. Now the script below, a simple loop, works but works so
> fast that the fade is too quick to see. I've tried making the degree that
> the x variable is diminshed each loop even smaller than 0.05 but this
brings
> up an error.
>
>
>
> On (Roll Over)
> Set Variable: "x" = "100"
> Loop While (x>10)
> Set Variable: "x" = x - 0.05
> Set Property ("/ontv", Alpha) = x
> End Loop
> End On
>
>
> What I would like to know is if this is possible and how. The reason I
> didn't just but the fade out in a button was that I want the target to
fade
> out to work for each of several buttons.
>
> Hope this makes sense,
>
> Simon Mills
>
>
> flasher is generously supported by...
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Streaming Media WEST '99 Conference & Exhibition
> "The Worlds largest Internet Audio & Video Event"
> December 7 - 9, San Jose Convention Center, California
>
> Reserve your space today at http://www.streamingmedia.com
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> To unsubscribe or change your list settings go to
> http://www.chinwag.com/flasher or email help
>
>
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California
Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email help
Replies
Re: FLASH: fading a target using actions, Anil Hamal
Replies
FLASH: fading a target using actionscrip, simon mills
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

