Safari not passing parameters to flash object on page load

Hey all!

I’ve a standard page set up with a flash object in the upper right corner. When the page loads, it runs a JS script, which then passes several parameters to the flash object via SetVariable.

In FF and IE, this works perfectly, however, in Safari it doesn’t. It seems like Safari tries to activate the script before the actual flash object has been loaded.

If I place the script initiator on the flash objects onLoad (or actually the DIV layer it’s in), it kills the functions for all 3 browsers…

Does Safari have problems with passing parameters to flash objects? Because it works sometimes on this particular page… like 1 out of every 10 tries.