Jump to content
Can't remember your login details? Read more... ×
Chaos.Lady

Embedding flash help

Recommended Posts

Hi guys,

 

I've got a squarespace site going. I wanted to set something up which would be easy to manage and give me a custom domain without all the rigmarole, so I went with them.

 

While I can see that they are pretty good if you just want a straight "out of the box" solution, I'm having real trouble with embedding flash.

 

I have a number of flash files that I'm trying to embed, but the coding I'm using seems to do very different things on each of the 3 major browsers I'm trying it with - IE, FF & Chrome.

 

I've tried this code:

* <p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
width="550" height="400" id="FlashID" title="20 Questions">
<param name="movie" value="
https://sites.blahblahblah/20qs_final.swf?attredirects=0"
/>
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="6.0.65.0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and
higher to download the latest version of Flash Player.  -->
<param name="expressinstall" value="
https://sites.blahblahblah/expressInstall.swf?attredirects=0"
/>
<!-- Next object tag is for non-IE browsers.  -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="
https://sites.blahblahblah/20qs_final.swf?attredirects=0"
width="550" height="400">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="6.0.65.0" />
<param name="expressinstall" value="
https://sites.blahblahblah/expressInstall.swf?attredirects=0"
/>
<!-- The browser displays the following alternative content for
users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash
Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="
http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif"
alt="Get Adobe Flash player" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</p>*

 

I've also tried

*<object data="
https://sites.blahblahblah/20qs_final.swf?attredirects=0"
height="400" width="550"/>*

I've also tried

* <embed src="
https://sites.blahblahblah/20qs_final.swf?attredirects=0"
height="400" width="550">*

But it seems to do different things in different browsers.

 

Is there a better way of doing this?

Share this post


Link to post
Share on other sites

different things in different browsers, how, C.L?

 

I would've thought (very dangerous for me without adult supervision), the flash itself should behave identically, regardless of browser - and that perhaps it's the xhtml surrounding it that's causing the cross-browser conflicts... i wonder if squarespace have some coding built into their templates that's inadvertently interfering with your insertion of flash? or vice versa. unfortunately (blissfully?), i'm fairly hazy when it comes to flash. pretty much all i've ever done is inserting stuff from youtube, etc; ie., tailor made solutions that dropped straight in where i wanted them without any grief - which is why i'm wondering about what's immediately surrounding your flash and if it's conflicting with something else on the page.

Edited by GTAV6

Share this post


Link to post
Share on other sites

Is there any reason you aren't using swfObject?

It's a Javascript to help with all of these differences, and also with replacing any content you might want to show should the user not have flash installed.

http://code.google.com/p/swfobject/

 

Also, is that inserting ALL that code in every browser?

Looks like it will insert an object within an object for some reason... but I haven't tested it, so not sure just looking at the code. Can sometimes be a little difficult to read with forum formatting and such! :-P

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×