Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

centering my movie on my own pc

Status
Not open for further replies.

PantherRun

Technical User
May 18, 2004
100
US
Hey out there;

No doubt this is real basic know-how, but i still need help. When i publish a movie, to look it over on my machine, the movie is always hard left, never centered. So obviously, i went to publish settings and checked under the html tab and found that the flash alignment options are already 'centered'...

... it just doesn't seem to be working.

When you publish, how do you make your movie center?

Thanks
Hoss
 
are you trying to center the file is a browser page....if so you must add the tags yourself to the html page produced by flash
 
Use a table or a layer/division and add all the following margin stuff in your body tag...
The following has always worked fine for me...
Code:
<HTML>
<HEAD>
<TITLE>CENTERED TEMPLATE</TITLE>
</HEAD>
<BODY bgcolor="#999999" MARGINHEIGHT="0" MARGINWIDTH="0" TOPMARGIN="0" 
LEFTMARGIN="0" RIGHTMARGIN="0" BOTTOMMARGIN="0" SCROLL="NO">
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#999999"> 
<td align="center" valign="middle"></td>
<td align="center" valign="middle">
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 codebase="[URL unfurl="true"]http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"[/URL]
 ID="flashfile" WIDTH=400 HEIGHT=300>
 <PARAM NAME=movie VALUE="your.swf"> <PARAM NAME=loop VALUE=false> <PARAM NAME=menu VALUE=false> 
 <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#999999> 
 <EMBED NAME="flashfile" src="your.swf" swLiveConnect =true loop=false 
 menu=false quality=high bgcolor=#999999  WIDTH=400 HEIGHT=300 
 TYPE="application/x-shockwave-flash" PLUGINSPAGE="[URL unfurl="true"]http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">[/URL]
 </EMBED>
</OBJECT>
</td>
</tr>
</table>
</BODY>
</HTML>


Regards. Affiliate Program - Web Hosting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top