Welcome to WebmasterWorld Guest from 54.146.221.231

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
posts:125
votes: 0


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)

Full Member

10+ Year Member

joined:Feb 4, 2004
posts:215
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
jezra