I have this old one from Jason M. Batchelor if you google it perhaps you
find something newer
<script>
function writeFlash() {
// Jason M. Batchelor
// [EMAIL PROTECTED]
// Determine what client we're using...
NS4=(document.layers);
// The only reason we have to do this based on client-type, is
because IE does not
// support the use of the onResize event when there is an ActiveX
control on a page.
// If you want IE to automatically reload on a resize, you'll have
to set up a
// frameset like the one that this is contained within.
if (NS4) onresize = location.reload();
// If it's Netscape, use innerWidth, if IE,
document.body.clientWidth, to ascertain
// the amount of screen space you have available.Do the same to
retrieve the height
// of the page.
var winWid = (NS4) ? innerWidth : document.body.clientWidth;
// -25 takes into account scrollbars. Take this out if you don't
have to worry about
// scrollbars on your page.
winWid = winWid - 25;
var winHgt = (NS4) ? innerHeight : document.body.clientHeight;
winHgt = winHgt - 32;
// Create a string that contains the <OBJECT> and <EMBED> code for
your Flash movie.
// I've omitted the CODEBASE and PLUGINPAGE attributes, as you can
get the latest attributes
// when you first generate your <object> and <embed> code from
within Flash.
var imStr = "<OBJECT
classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0'"
+ " WIDTH='" + winWid + "' HEIGHT='" + winHgt + "' align='left'>" + " <PARAM
NAME=movie VALUE='index.swf?scaleX=" + winWid + "&scaleY=" + winHgt + "'>" +
" <PARAM NAME=quality VALUE=high>" + " <PARAM NAME=bgcolor VALUE=#0699ff>" +
" <param name='SCALE' value='exactfit'>" + " <EMBED src='index.swf?scaleX="
+ winWid + "&scaleY=" + winHgt + "'" + " quality=high bgcolor=#0699ff
WIDTH='" + winWid + "'" + " HEIGHT='" + winHgt + "' pluginspage='
http://www.macromedia.com/go/getflashplayer'
TYPE='application/x-shockwave-flash'" + " align='left' scale='exactfit'>" +
" </EMBED> " + " </OBJECT>";
// Now, with all the above plugged in, tell Javascript to write out
the plugin code.
document.write(imStr);
}
writeFlash(); // Call the routine, above.
</script>
2006/8/10, Aaron Buchanan <[EMAIL PROTECTED]>:
Hi Tony,
I am using it on a site I am doing now, http://build.lab-media.com/mpvs
Cheers!
Aaron
On 8/9/06 9:26 PM, "Anthony Lee" <[EMAIL PROTECTED]> wrote:
>
>> use javascript to resize the swf's object
>> height attribute, so that when your user opens a section that will
increase
>> your stage height beyond the window height,
> Hi Aaron,
>
> I noticed a site doing that just this morning. Switching the swf
> attributes from Javascript doesn't mess with the application's state?
> Does anyone have any sample code they could point at?
>
> Tony
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
--
João Carlos
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com