Flash Web Page Strech to Screen Size?

Zdroyd

New Member
Messages
548
Reaction score
0
Points
0
http://sohailtech.com/

How does the site above ^ do it?

I know how to do it with HTML tables, but how do you do it with Flash?


PS: I would ask the creator of the site, but I forgot his name on the x10 Forums... LOL
 

TechAsh

Retired
Messages
5,853
Reaction score
7
Points
38
I think the person your looking for is sohailamir52.

When I view that website the Flash thing doesn't fill the screen.
 
Last edited:

Smith6612

I ate all of the x10Pizza
Community Support
Messages
6,517
Reaction score
48
Points
48
My guess is if it's opening as JUST an SWF file, it's probably stretching to screen, unless you have a widescreen monitor and it's not in widescreen. Other than that, I'd say it's some ActionScript in there or the HTML in there is not set to use percentages or px for height and adjusts based on the window.
 

marshian

New Member
Messages
526
Reaction score
9
Points
0
If I open that page in IE, the flash movie fits the window perfectly, if I open it in FF, there's a border on the left and right of the flash movie.

this is the source of that page:
HTML:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="verify-v1" content="0YSX5PbesAld83ZnOr1EUJOK+8ar8ZvaFRdu9JS+Gmk=" />
<meta http-equiv="Content-Language" content="en">
<meta name="description" content="S TECH is a community for discussions and tutorials on Adobe Flash/Photoshop. Join the community now!"/>
<meta name="keywords" content="games, sohail, tech, sohailtech, tutorials, guides, photoshop, flash"/>
<title>SohailTech - Flash and Photoshop Tutorials</title>
</head>
<body bgcolor="#2D5B77">
<div align="center">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="100%" height="100%" id="index" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="index.swf" /><param name="quality" value="high" /><param name="scale" value="exactfit" /><param name="bgcolor" value="#2D5B77" /><embed src="index.swf" quality="high" scale="exactfit" bgcolor="#2D5B77" width="75%" height="100%" name="index" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object></div>
</body>

</html>
i suppose the
HTML:
<param name="scale" value="exactfit" />
and / or
HTML:
<embed src="index.swf" quality="high" scale="exactfit" bgcolor="#2D5B77" width="75%" height="100%" name="index" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" 
pluginspage="http://www.macromedia.com/go/getflashplayer" />
will have something to do with it.

escpecially the part width="75%" height="100%" looks promising
 
Last edited:

Smith6612

I ate all of the x10Pizza
Community Support
Messages
6,517
Reaction score
48
Points
48
That's the exact thing to look for :)
 

Zdroyd

New Member
Messages
548
Reaction score
0
Points
0
Hmm I'll try that...

Or I will contact sohailamir52 and ask if I can have a template.

Edit: Never mind I figured it out myself in my Web Page class, I used:

<embed src="home_kr.swf" quality="high" bgcolor="#000000" width="100%" height="100%" name="home_kr" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
 
Last edited:
Top