homepage Welcome to WebmasterWorld Guest from 54.205.52.110
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

    
Auto javascript script load on movie end
djtaverner




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

Hello,

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

Cheers
Dave

 

jezra




msg:1563195
 8:10 pm on Aug 13, 2004 (gmt 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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved