Skip to main content
January 13, 2009
Question

basic AS3 stuff: fade in, hold, fade out, next

  • January 13, 2009
  • 2 replies
  • 376 views
Help. I've been teaching myself AS3 using online tutorials and am at a point similar to understanding the individual words and expressions of a foreign language but not being able to put them into a workable collection of sentences. Used to working on a timeline, working to graduate to working entirely in code. And using external AS files.

I'm supposed to create a simple animation in a hurry. So far it's been 8 hours. Four text movie clips, sentences. One fades in (.5 second), sits (2 seconds), fades out (.5 second), then two does the same, then three, then four. Four says "click to replay" which, on click, starts everything over again.

I figured on giving caurina a try. So far, I can make each movie clip fade in and go to the next movie clip, but I fail when I get to making them sit 2 seconds and fade out.

Would any of you know where online I might go to see a similar example and check the code to find out how it's done. I know it's basic, I'm just not getting it. Sorry and thanks.
This topic has been closed for replies.

2 replies

clbeech
Inspiring
January 13, 2009
since you have a 'series' of items, i would suggest using an array to store them, and index to advance them and a timer system to control them, as well as the tween class to fade them and trigger the next event. something like this:

EDIT: sorry kg - typing as per usual LOL!
kglad
Community Expert
Community Expert
January 13, 2009
i think caurina accepts a delay parameter so you can delay your tweens. so, you can start them at one time and let them run.