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

browser size ... 1

Status
Not open for further replies.

chrissi

Technical User
Sep 28, 2002
3
DE
hi there,

...probably frequently asked question, cant seem to find an answer...

i created my flash movie at 800x500 and used movie scale 100% when publishing. as i use pixel fonts, i reworked my html in an editor, to assure noresize (and some other stuff).

the problem now is the size. it seems, with 100% in the html, the text blurrs; if i put in 800x500 the text looks fine. YET, my page is not centered anymore, rather of to the left. why does that happen?... and further more, how can i solve the problem and center the thing?

please, anyone knowledgable, a hint, advice. a simple HELP!!!

thanx in advance.
 
I personally hate 100% scaling. It ruins any site's design, and furthermore it surely is causing your blurry fonts.
You should stick with your actual pixel size, and stick your movie in a table to center it. You can also get rid of the small remainning border and ther right scrollbar (if you don't need it!), by adding a few things in the body tag of your html.

Here's a template I've been using. Just change your movie's name in the object and embed tags, title tag and all the color tags (they should all be the same) to suit your needs, it should work fine.

Code:
<HTML>
<HEAD>
<TITLE>YOUR WINDOW TITLE</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=5,0,0,0&quot;[/URL]
 WIDTH=800 HEIGHT=500>
 <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=#999999> 
 <EMBED  src=&quot;your.swf&quot; loop=false menu=false quality=high bgcolor=#999999  WIDTH=800 HEIGHT=500 
 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,

oldman3.gif
 
WOW ... thanx for your reply, the tip and sharing the template.

it works :) and looks better than i would have imagined.

...just for some understanding, what it does (i hate if i dont know why it works). so actually it creates a one &quot;fake&quot; cell (frame), that you place the swf in? ... cellpadding, what is that? do i need that? cause i took it out!!!

thanx a million.

regards.
 
... hm, cant add a helpful star. so imagine one ... ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top