Forum Moderators: open

Message Too Old, No Replies

Delay Start of flash animation?

         

ratman7

6:30 pm on Nov 25, 2007 (gmt 0)

10+ Year Member



I have two flash animations that I am playing on the same page. I would like the second movie to begin when the first movie ends. I assumed you can do this with actionscript, but I have not been able to find an easy answer. As it is, I have a bunch of blank frames at the beginning of the second movie. It does the job, but I'm thinking there must be a more elegant way. Thanks in advance for any input...

adrianTNT

7:39 pm on Dec 8, 2007 (gmt 0)

10+ Year Member Top Contributors Of The Month



The 2 are 2 external separated swf files?
To make second one load when first one finished loading I think best way is by javascript. I cannot give you exact solution but as an idea...
on your last frame of first animation write a code that will call a javascript from your HTML code.
In flash javascript is called like this:

getURL("javascript:my_function();");

That in flash will call a function named "my_function();" that is written in the HTML code. This function could do a document.write (?!) to set the second swf in the page.

[edited by: adrianTNT at 7:40 pm (utc) on Dec. 8, 2007]

ratman7

6:00 pm on Dec 14, 2007 (gmt 0)

10+ Year Member



Thanks for the response. I ended up using ActionScript to put a delay in the first frame.