PDA

View Full Version : HTML onload() and passing vars to swf


mmesarina
07-26-2007, 11:58 PM
Hi,

I want to do the following. I want a user to click on a uRL link that opens up the HTML page that has the embedded *.swf file and immediately after it opens, pass the URL to a callback function in the swf .
So I tried using the HTML onload() function to call a javascript function "func()", that I registered as a callback function in the flash *.swf . However, the callback doesn't happen.

To debug the problem, I added an HTML input text that when submitted calls a javascript function "sendForm()" which then makes the call to the callback function in the swf. And this mechanism works.

Can someone suggest what else to do?
Myabe the onloac() function is no the best way.

thanks

-Malena