How to do scalable flash?

I don’t know ANYTHING about flash and I’m just wondering if I want a scalable flash (so it can fit in any screen sizes) …is there a special html code or that has to be done via flash program ??

Hi there, I had the same problem a while back. But this thread should do it for you. http://www.sitepoint.com/forums/showthread.php?t=306042.

Hope it helps. :slight_smile:

ill save him the time, Flash vector is scalable by default and doesnt pixalate, you just need to put 100% dimension in the HTML. Use this for the best 100% flash experienco…

CSS

body,html {
	overflow:hidden;
	background: #FFFFFF;
	margin:0px;
	padding:0px;
	height:100%;
	border-right-width: 0px;
	border-bottom-width: 0px;
	border-left-width: 0px;
}

put this in the body (flash.swf is your flash file)

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,22,0" width="100%" height="100%" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="flash.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="flash.swf" quality="high" bgcolor="#ffffff" width="100%" height="100%" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

thanks for your replies

flashmatrix – i haven’t tried your method yet because I don’t know where to add that Flash script …(i don’t know anything about flash)

full.collapsed – i tried your method and it doesn’t seem to work for me :frowning: :frowning: So you’re saying flash vector is scalable by default and doesnt pixalate ??

I don’t know where to add that Flash script …(i don’t know anything about flash)

So pity :cry: , but anywere, if you want to make the full scalabale swf You have to put this code into the first frame of your movie

Stage.scaleMode = "noScale";
Stage.align = "TL";
resizeObj = new Object();
resizeObj.onResize = function() {
	var width = Stage.width;
	var height = Stage.height;
	_root._width = width;
	_root._height = height;
};
resizeObj.onResize();
Stage.addListener(resizeObj);

…and HTML…