View Full Version : Another question =)

05-18-2002, 11:08 PM
Okay well I just read The tutorial on doing loops and How you can't use them to make visual stuff... But it doesn't say what command you would use instead...sooo any help here?

Example: I want to make a movie clip fade in when its loaded
I tried using something like this

i = 0
while ( i < 100)
{ _alpha = i, i++}

But obvously its not gonna work correctly.. so what would I use instead?

Thanks in advance.:D

05-18-2002, 11:30 PM
Also I was wondering... Does flash load up everything thats in the library when the movie is played, or do they load up when they are called for?

05-19-2002, 07:48 AM
well, that fading in effct doesn't need looping, u can do it by this way:
// make a movie clip
this._alpha = 0

05-19-2002, 07:52 AM
Yeah I figured this out.. but hey since you must be posting right now I got another quick question
I have a button that on release attaches a movie to a movie clip
but if you keep pressing it it'll just overwrite that movie..
Instead, what kind of If command would I use to make it check if the Movie is already loaded, and if it is.. not overwrite the movie

05-19-2002, 08:09 AM

Check your other post, the code that I've put is your target