faqts : Computers : Programming : Languages : Flash

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

19 of 38 people (50%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

Can I call an ActionScript function from JavaScript?

Jul 17th, 2002 09:30
ben g, Keegan Miller, http://www.moock.org/webdesign/flash/fscommand/index.html#javascripttoflash


Turns out there is no way to call an ActionScript function from 
JavaScript.  I did find a workaround though -- create a frame in the 
Flash movie with ActionScript to do whatever you need done.  Then 
JavaScript can tell the movie to go there.  If you need to pass 
parameters, you can have JS set the AS variables using the SetVariable 
method of the Flash movie.
AMEND:
try this url, i have never got it to work on a mac, and i think it generally is only in 
ie.