How to have flash scale canvas to browser size

  • elibol
  • Novice
  • Novice
  • No Avatar
  • Joined: Feb 19, 2004
  • Posts: 29
  • Status: Offline

Post July 18th, 2004, 7:41 pm

example: http://www.milesaldridge.com/

i have done something like this for my html file but still i havent gotten it to work:

Code: [ Select ]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>browserresize</title>
</head>
<body bgcolor="#ffffff">

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

</object>
</body>
</html>
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  4. <title>browserresize</title>
  5. </head>
  6. <body bgcolor="#ffffff">
  7. <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="100%" height="100%" id="browserresize" align="">
  8. <param name="movie" value="browserresize.swf" />
  9. <param name="quality" value="high" />
  10. <param name="menu" value="false" />
  11. <param name="bgcolor" value="#ffffff" />
  12. <embed src="browserresize.swf" quality="high" bgcolor="#ffffff" menu="false" width="100%" height="100%" align="" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
  13. </object>
  14. </body>
  15. </html>


when i test this in IE its fine, but when i test it in Mozilla Firefox it doesn't work :[. the width scales to the browser size, but the height of the file stays the same and the center of the movieclip is aligned with the top of the browser window so only half the flash movie is viewable (the bottom portion). this is pretty odd to me.

the example link i've given works fine in Mozilla Firefox.

all help is thx.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post July 18th, 2004, 7:41 pm

  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post July 18th, 2004, 8:23 pm

The only thing I see that is different than how I would do it is the use of self closing param & embed tags. (that & my version is 6)

Don't know if that's how 7 publishes it, but I would try closing the embed tag as usual instead of self closing it.
Strong with this one, the sudo is.
  • elibol
  • Novice
  • Novice
  • No Avatar
  • Joined: Feb 19, 2004
  • Posts: 29
  • Status: Offline

Post July 20th, 2004, 2:30 pm

well what gets me is there is no noscale paremeter passed in the miles aldridge html... is there a way to set noscale from actionscript?
  • elibol
  • Novice
  • Novice
  • No Avatar
  • Joined: Feb 19, 2004
  • Posts: 29
  • Status: Offline

Post July 20th, 2004, 2:35 pm

by the way thanks, i think it was the self closing tags.

maybe there isnt full xhtml support for firefox? whatever :) thanks.
  • ShawnJC
  • Newbie
  • Newbie
  • User avatar
  • Joined: Sep 12, 2004
  • Posts: 5
  • Status: Offline

Post September 12th, 2004, 2:37 pm

Came across this forum surfing the web...Anyway, yes there is a way to set the Stage scale in Flash. Just put this code in a frame somewhere:

Stage.scaleMode = "noScale"

I have used that on a menu for my site so the menu items don't resize when the browser size is changed....

-Shawn
  • bozboz
  • Novice
  • Novice
  • No Avatar
  • Joined: Mar 13, 2007
  • Posts: 31
  • Loc: Brighton
  • Status: Offline

Post September 6th, 2008, 3:28 pm

ive achieved sone good results with setting scale mode http://www.bozboz.co.uk/examples/liquidFlash/

resize the browser and watch it scale :)
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post September 7th, 2008, 8:04 am

It's a 4 year old post bozboz. These people aren't even around anymore.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • Dale-Murray
  • Born
  • Born
  • No Avatar
  • Joined: Feb 12, 2009
  • Posts: 1
  • Status: Offline

Post February 12th, 2009, 7:30 pm

This thread might be over four years old but I hope it can help me satiate my web gallery desires.

I am a photographer that has a very specific desire for the way my photos are presented and the biggest hitch so far is making the images scale smoothly and loading them into a gallery.

I really like that way this site works: http://ericogden.com/celebrities/index.html

Images scale nicely.

Any assistance would be wildly appreciated.

Post Information

  • Total Posts in this topic: 8 posts
  • Users browsing this forum: No registered users and 44 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.