homepage Welcome to WebmasterWorld Guest from 54.197.111.87
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

    
Get flash to push data to javascript
cantona




msg:3939445
 12:18 pm on Jun 24, 2009 (gmt 0)

Hi, I'm a bit of a Flash noob.

I have a flash movie with several buttons. When a button is pressed I want it to send the button ID to a javascript function (outside the flash file).

Any ideas how to do this?

Thanks

 

rocknbil




msg:3939496
 1:58 pm on Jun 24, 2009 (gmt 0)

Check the help files for getURL() and "external data," there are many methods for this.

cantona




msg:3942297
 8:18 am on Jun 29, 2009 (gmt 0)

Thanks for the reply rocknbil.

For anyone else who stumbles on this ticket:

getURL() to execute a javascript function will work - it's no longer officially supported though because these days everything is done through ExternalInterface. So you'd do:

ExternalInterface.call("changeMyDropDownMenu","scotland");

where "changeMyDropDownMenu" is the function and "scotland" is the argument.

That said, getURL should still work, you can do

getURL("javascript:changMyDropDownMenu('scotland'));

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