PDA

View Full Version : JavaScript comunicate with Flash



Fiasst
05 Apr 2007, 01:49 PM
Hello,

I need to send variables to a Flash movie from my html page. I found this example which sends/receives data when you click a button:

http://www.permadi.com/tutorial/flashGetObject/testFlashObject.html

The problem is, I need the variables sent without the user doing anything – as soon as the page loads. So I’ve been trying onLoad in JavaScript. This works in IE but not in FireFox.

Here is my example.. (http://www.realworksmedia.com/ztest/htmlflash)

Can you see a reason for this?

Also is there a better way to pass variables to flash from the head section of my xhtml pages?

Thanks!