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

Full Browser <not Full screen> 3

Status
Not open for further replies.

Izzo

Technical User
Feb 22, 2001
38
US
How to make a flash movie resize itself in a browser according to the size of the browser?
I want to make a flash movie "full browser" and when it is resized the movie resizes with it, everything..the text and animations get smaller or bigger when browser resized.
Thanks...Izzo
 
Adding the bold to your html should do the trick!

<html>
<head>
<title>GRID TEST</title>
</head>

<body bgcolor=&quot;#000000&quot; MARGINHEIGHT=&quot;0&quot; MARGINWIDTH=&quot;0&quot; TOPMARGIN=&quot;0&quot; LEFTMARGIN=&quot;0&quot;>
<OBJECT classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot;
codebase=&quot; ID=intro WIDTH=100% HEIGHT=100%>
<PARAM NAME=movie VALUE=&quot;your.swf&quot;> <PARAM NAME=quality VALUE=high> <PARAM NAME=menu VALUE=false> <PARAM NAME=bgcolor VALUE=#000000>

<EMBED NAME=&quot;intro&quot; SRC=&quot;your.swf&quot; QUALITY=high SCALE=exactfit BGCOLOR=#000000 WIDTH=100% HEIGHT=100% TYPE=&quot;application/x-shockwave-flash&quot; swLiveConnect=&quot;true&quot; PLUGINSPAGE=&quot;</EMBED>

</OBJECT>
<body>
</html>

Top it off nicely by giving me a star for this help!

s-) &quot;If nothing else, I can always serve as a bad example!”
 
That's exactly what I was looking for.
It worked first time. Thanks...Looked around for the star thing but no instructions how to give you one...or two!

Izzo
 
When in the thread... hit the line: &quot;Let oldnewbie know his post was helpful&quot;.

Simple as that!

;-)

&quot;If nothing else, I can always serve as a bad example!”

 
Well, color me blind but there is no line &quot;Let oldnewbie know his post was helpful&quot; anywhere in the thread or on the entire page for that matter. I'd like to give you your due but it simply is not there.
Izzo
 
Oldnewbie,
Can you explain what each parameter in your first part of bold text does to the actual output?

(For all us non HTML people!!)

Many thanx in advance

John
 
If you're talking about ...<body bgcolor=&quot;#000000&quot; MARGINHEIGHT=&quot;0&quot; MARGINWIDTH=&quot;0&quot; TOPMARGIN=&quot;0&quot; LEFTMARGIN=&quot;0&quot;>, to which by the way, we've since added ...RIGHTMARGIN=&quot;0&quot; BOTTOMMARGIN=&quot;0&quot; SCROLL=&quot;NO&quot;, it's to eliminate a small border surronding the embedded Flash movie itself. If you set a different bgcolor in your body tag than the background color of your movie itself, and don't use the rest, you will be able to see what I'm talking about. The SCROLL=&quot;NO&quot;, was added to get rid of the scrollbar on the right when it's not necessary, to make for a cleaner display.

This is an old thread, and although the above does still work, I now embed my movies in a table so that they are better centered.
This is usually what I now use, as in this example:

Code:
<HTML>
<HEAD>
<TITLE>TABLE CENTERED FOR NS AND IE</TITLE>

</HEAD>
<BODY bgcolor=&quot;#999999&quot; MARGINHEIGHT=&quot;0&quot; MARGINWIDTH=&quot;0&quot; TOPMARGIN=&quot;0&quot; LEFTMARGIN=&quot;10&quot; RIGHTMARGIN=&quot;0&quot; BOTTOMMARGIN=&quot;0&quot; SCROLL=&quot;NO&quot;>
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<LAYER NAME=&quot;TEST&quot; LEFT=&quot;25&quot; TOP=&quot;10&quot;> <!-- CENTERS FOR NS - NO EFFECT ON IE -->
<table width=&quot;100%&quot; height=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
  <tr bgcolor=&quot;#999999&quot;> 
    <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=550 HEIGHT=400>
	 <PARAM NAME=movie VALUE=&quot;goatmain.swf&quot;> <PARAM NAME=menu VALUE=false> <PARAM NAME=loop VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#000000> <EMBED src=&quot;goatmain.swf&quot; quality=high menu=false loop=false bgcolor=#000000  WIDTH=550 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;></EMBED>[/URL]
	</OBJECT>
   </td>
  </tr>
</table>
</LAYER>
</BODY>
</HTML>

Best wishes,
wink4.gif
ldnewbie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top