Javascript to Flash

I’m creating an image gallery that fits to the size of your screen. It basically passes the screen width variable from the javascript to the swf file. It works in Firefox but not IE. I have seen a ton of different suggestions but none seem to be working.

swLiveConnect=“true”

anyways heres the link:

http://elusiveform.com/gallery/

Check out my source code for the javascript.

I know for a fact its possible because I have seen people do it.

Thanks.

The setVariable() method you’re using won’t be cross-browser compatible. You’d be better off using document.write() and write the width and height of the flash object that way, rather than trying to set it.

Ok, how would document.write pass a variable to my swf? My swf isnt resizing, the rectangle movielcips are just repositioning based on the screensize