neurofuzzy, flash game development, rich internet applications, free source code - *alt.neurotica.fuzzy*

neurofuzzy, flash game development, rich internet applications, free source code - *alt.neurotica.fuzzy*

12/4/2004

Flash Satay and Parameters, Flash on Other Domains

Filed under: Flash — geoff @ 1:02 am

I’ve been futzing around trying to get Drew McLellan’s Flash Satay object code to work with my site. The thing is, when I give users code to post slideshows on their own site, they need to have the BASE parameter set so that they can embed the flash movie that resides on my site onto their own.

Since Drew’s code does not use the EMBED tag, there was no way for me to get Netscape/Mozilla to recognize that the player.swf was on a different server. Also, for some reason, Ie wasn’t reading the BASE param either. I found a simple solution. Just add a base attribute to your OBJECT tag, like so:


<object type="application/x-shockwave-flash" data="http://www.slideroll.com/player.swf?s=5rrh2ej8&nocache=1" base=”http://www.slideroll.com” width=”360″ height=”280″>
<param name=”base” value=”http://www.slideroll.com” />
<param name=”movie” value=”http://www.slideroll.com/player.swf?s=5rrh2ej8″ />
<param name=”s” value=”5rrh2ej8″ />
<param name=”wmode” value=”transparent” />
</object>

I kept the BASE param in there just in case. In order to make the movie transparent (borderless), I also had to add wmode=”transparent” to the object tag. Problem is, it no longer validates. But, it is better than having the movie not play at all.

If anyone has found a way to do this and be standards compliant, I’d love to hear about it. Oh, and Javascript tricks don’t count!

 

Powered by WordPress