-
fading problem!!!
Hi i havent worked with actionscript for awhile and have a little problem !!
I have a picture that i fade with this code:
Actionscript Code:
import mx.transitions.Tween; import mx.transitions.easing.*; new Tween(bg_billede, "_alpha", Strong.easeOut, 0, 100, 18, false);
but i want it to wait 10 frames before it starts to fade! how do i do that?? im using AS2 please help a pretty desperate guy...
-
AKA [ Paul Bainbridge]
Try something like this
Actionscript Code:
import mx.transitions.Tween; import mx.transitions.easing.*; var timed:Number = setTimeout(fader, 2000)//wait 2 seconds before firing function fader(){ new Tween(bg_billede, "_alpha", Strong.easeOut, 0, 100, 18, false); }
Hope it helps
-
Thanks that was just what i was searching for works perfect!!
now im just curious, is it possible to turn the seconds into frames so that it is a number of frames before my fading starts ?
-
AKA [ Paul Bainbridge]
You could bin the timeout and instead on the tenth frame have fader()
-
yes i could im just trying to keep everything in the first frame anywho it works fine thanks very much::!
-
AKA [ Paul Bainbridge]
ok np
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|