So if i change my window to 1024*768
it will automaticly turn to that size (its vector based, should be
possible)
and if i turn my screen to 800*600, it will change to that size
is there some way to make this possible ?
The parameter you want to add to those tags is SCALE and you want to
set it to "exactfit".
Here is a sample of the code where you place the tag for both the OBJECT
and the EMBED tags.
:
:
:
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"
ID=intro WIDTH=100% HEIGHT=100%>
<PARAM NAME=movie VALUE="your.swf">
<PARAM NAME=loop VALUE=false>
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#000000>
<PARAM NAME=scale VALUE="exactfit">
<SCRIPT LANGUAGE="JavaScript">
<!--
var ShockMode = 0;
if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]
&& navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)
{
if (navigator.plugins && navigator.plugins["Shockwave
Flash"])
ShockMode = 1;
}
if ( ShockMode ) {
document.write('<EMBED name="intro"');
document.write('
SRC="flash.swf"');
document.write(' swLiveConnect=FALSE WIDTH=100%
HEIGHT=100% SCALE="exactfit"');
document.write(' LOOP=false QUALITY=high BGCOLOR=#000000');
:
:
:
If you were to replace exactfit with showall you will get a variation of this effect whereby the movie will be centered in the browser not comprimising its original size. The one thing to note using this parameter is that it will stretch or compress your movie to fit the constraints of the viewer's browser display size so you have to anticipate this deformation of your movie and plan accordingly for it.
Hope that helps.
Later,
Jeff.