Web Hosting Talk







View Full Version : ebeding a swf file in webpage


mjfroggy
04-06-2008, 09:36 AM
Hello all,

I am hoping I could get some feed back on a strange issue I am having

I have a swf file I am trying to embed in a web page. The issue is no matter what size I make the window the file flash seems to align to the right and gets cut off since it loads in the window to the the right. So no no matter what I change the width in the below code to the flash seems to load to far to the right and gets cut off. any suggestions??

here is my code

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"

codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/

swflash.cab#version=7,0,0,0" width="1200" height="500" id="any"

align="center">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="ttintro.swf" />
<param name="loop" value="no" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<embed src="ttintro.swf" quality="high" bgcolor="#000000"

name="width="1200" height="500" any" align="center"

allowscriptaccess="sameDomain" type="application/x-shockwave-flash"

pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed>
</object>

tix3
04-06-2008, 09:53 AM
sloppy solution but i think you can do a <center> </center> around the object

Codebird
04-06-2008, 10:29 AM
put it in a table or a div and align it center

mjfroggy
04-06-2008, 09:29 PM
Well its not the position in the page.

It is like the flash movie itself seems to load all the way to the right so like if I have a table setup in the page and the flash object inside that table the flash seems to load off to the right so then it is cut off where the table ends.

I am not sure if that makes it clearer

CArmstrong
04-06-2008, 09:31 PM
Maybe you can take a screen shot to show us what it's doing?

mjfroggy
04-06-2008, 09:45 PM
yes if you take a look at http://www.sessionmedia.net/screenshot.jpg

you will see its like the flash loads in the back ground of a window that is too small no matter what size I make my flash object

Thanks for any help you could give

foobic
04-06-2008, 10:07 PM
What happens when you point your browser directly at the .swf file? Could the problem be in the Flash rather than in your positioning of the object?

mjfroggy
04-07-2008, 09:03 AM
Ahh

ya I guess it is the swf file itself since when I go to the swf file directly it runs in the browser but off to the right so it is not fully displaying in the browser. So I guess its the swf file

daa thanks all lol