Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javascript to call an actionscript function?

Status
Not open for further replies.

albie101

Programmer
Oct 8, 2001
50
NZ
I'm trying to get javascript to call a function within my actionscript, but I can't seem to find anything to tell me how. I can set and get variables and change frames etc but I can't seem to make the javascript call an actual function. Any ideas?

Ta
Emma
 
dont know if that is possible because what you would be doing is handing over flash to javascript

i suppose you could pass as a variable eg "loadmovie". have flash check for the variable value then execute a function depending on that value.
 
Yeah, I pretty much figured that was the only way. I ended up setting a variable and using setInterval to check for it. Do you know how much stress a setInterval will put on memory or anything else if it is continually running?

Ta
 
Just keep it from running when not necessary...



Regards,

cubalibre2.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top