Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Auto javascript script load on movie end

8:41 am on Aug 13, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Nov 30, 2003
votes: 0


How would I get a javascript:mailpage() script to start automatically at the end of a flash movie?


8:10 pm on Aug 13, 2004 (gmt 0)

Full Member

10+ Year Member

joined:Feb 4, 2004
votes: 0

On your HTML page you should have some javascript

function mailpage()
//do some mail stuff

in the last frame of your flash movie, you need the actions script

getUrl( "javascript:mailpage();" );

are you collecting variables in your flash movie to pass to the mailpage function? If so and supposing the variable is called mailAddress, the action script would be
mailAddress = "someAddress";
getUrl( "javascript:mailpage('"+mailAddress+"');" );

hope this helps