PDA

View Full Version : How could I do this?


jaye
02-27-2007, 05:22 AM
I have a simple flash movie that is just 1 frame; a background image with a song, accompanied by a little animated gif on top of the background image. I want to delay the animated .gif from appearing until a certain point in the song (I want to delay the .gif from appearing, and then have it appear and have it's animation loop with the music still playing).

Could I do this with a script or must I produce a couple hundred frames of the same thing to get this desired effect? Perhaps there is a more simpler way? If if this could be done with scripting, could someone provide a short example of a working script? I'd appreciate any help. Thanks.

billstoudt
02-27-2007, 04:05 PM
make a movieclip of the animated gif (f8) give it an instance name (not just the symbol name) of "my_mc"
then use this code


my_mc._visible = false;

delay = 1
mytimer = setTimeout(showAnim, delay*1000);
function showAnim() {
my_mc._visible = true;
}