Welcome to WebmasterWorld Guest from 23.20.223.88

Forum Moderators: open

Message Too Old, No Replies

Auto javascript script load on movie end

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

10+ Year Member



Hello,

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

Cheers
Dave

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

10+ Year Member




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
jezra

 

Featured Threads

Hot Threads This Week

Hot Threads This Month