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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flash HTML alignment

Status
Not open for further replies.

aph

Technical User
Jul 8, 2000
134
GB
Ok had a problem with Dreamweaver not liking my dinamic text in my swf movie within a DW HTML page. Anyway decided to use the HTML page create by Flash with the publish command.

So now all the dinamic text loads ok the only problem is the swf file in the HTML page generated by the publish command does not align correctly (always to the left in the browser) even when I choose align centre or browser defalt the swf file is always is left of the centre of the web page.

Any idea how to sort this out?
 
Try this as a template...
Of course replace the 2 "your.swf" and your actual movie dimensions in both the object and embed tags.

You might want to change the backgrounds colors also.

Code:
<HTML>
<HEAD>
<TITLE>FLASH TEST!</TITLE>
</HEAD>
<BODY bgcolor=&quot;#999999&quot; MARGINHEIGHT=&quot;0&quot; MARGINWIDTH=&quot;0&quot; TOPMARGIN=&quot;0&quot; 
LEFTMARGIN=&quot;0&quot; RIGHTMARGIN=&quot;0&quot; BOTTOMMARGIN=&quot;0&quot; SCROLL=&quot;NO&quot;>
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<center>
<table width=&quot;100%&quot; height=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;7&quot;>
<tr bgcolor=&quot;#999999&quot;> 
<td align=&quot;center&quot; valign=&quot;middle&quot;></td>
<td align=&quot;center&quot; valign=&quot;middle&quot;>
<OBJECT classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot;
 codebase=&quot;[URL unfurl="true"]http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0&quot;[/URL]
 ID=&quot;flashfile&quot; WIDTH=650 HEIGHT=400>
 <PARAM NAME=movie VALUE=&quot;your.swf&quot;> <PARAM NAME=loop VALUE=false> <PARAM NAME=menu VALUE=false> 
 <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#000000> 
 <EMBED NAME=&quot;flashfile&quot; src=&quot;your.swf&quot; swLiveConnect =true loop=false 
 menu=false quality=high bgcolor=#000000  WIDTH=650 HEIGHT=400 
 TYPE=&quot;application/x-shockwave-flash&quot; PLUGINSPAGE=&quot;[URL unfurl="true"]http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash&quot;>[/URL]
 </EMBED>
</OBJECT>
</td>
</tr>
</table>
</BODY>
</HTML>

Regards,

cubalibre2.gif
 
Thanks for the info works a treat!!
Just one more thing if I have an applet on a layer above the HTML page with the swf file within how would I get the java applet to aline itself with the swf below?

cheers for any help but thew last reply was great, been along time since I was doing HTML stuff! Working in 3D animation these days.

andy
 
a table should scale if you use % for size instead of pixels.

like the template above the size of the table is set to 100% x 100%

so the table will always be as big as the screen.



I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top