PDA

View Full Version : need flash object center...but it stays to the right..and its scripted to center


agent8
05-24-2007, 01:21 AM
i am puzzled ..i have embedded a flash and scripted it to middle of page but it stays right....what could be wrong? thanks (im a begginer)

edbr
05-24-2007, 02:29 AM
you have every thing enclosed in <p> </p> tags is this the problem?

chriskq
05-24-2007, 06:59 AM
edbr is right
<p>
<!--url's used in the movie-->
<!--text used in the movie-->
<!--
<p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0">Loading...</font></p>
<p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0">Loading...</font></p>
<p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0">Loading...</font></p>
<p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0">Loading...</font></p>
<p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0">Loading...</font></p>
<p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0">Loading...</font></p>
<p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0">Loading...</font></p>
<p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0">Loading...</font></p>
<p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0">Loading...</font></p>
<p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0">Loading...</font></p>
<p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0">Loading...</font></p>
<p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0">Loading...</font></p>
<p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0">Loading...</font></p>
<p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0">Loading...</font></p>
<p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0">Loading...</font></p>
-->
<!-- saved from url=(0013)about:internet -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="740" height="206" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="header.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#121b2b" />
<embed src="header.swf" quality="high" bgcolor="#121b2b" width="740" height="206" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</p>

delete the opening and closing <p> tag
ie- the one straight after the body, the one straight after </object>


also better to put the swf object inside a div. then you can style/position the div where u want (dont try and position the swf as such because you cannot - unless its saved out from flash in a certain way)

agent8
05-24-2007, 05:25 PM
ok...i got it to center...put it in div tags.....but when i looked at the pages they gave me...i think its screwed up elswhere(i think i bit off more than i could chew)

the site in whole is composed of:index.html.....thats fine
header.html....thats fine (donteven know y this is a page)
linktoprogressive.html--this is the problem i think---the header is overlapping the buttons plus i have a (valadation script is missing pop up) when it loads and u try to press buttons.

i have enclosed the pages so u can get an idea.....sorry im a html begginer...work mostly with actionscript.