How to have flash scale canvas to browser size

  • elibol
  • Novice
  • Novice
  • elibol
  • Posts: 29

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

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.
  • elibol
  • Novice
  • Novice
  • elibol
  • Posts: 29

Post 3+ Months Ago

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
  • elibol
  • Posts: 29

Post 3+ Months Ago

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
  • Posts: 5

Post 3+ Months Ago

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
  • bozboz
  • Posts: 31
  • Loc: Brighton

Post 3+ Months Ago

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
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

It's a 4 year old post bozboz. These people aren't even around anymore.
  • Dale-Murray
  • Born
  • Born
  • Dale-Murray
  • Posts: 1

Post 3+ Months Ago

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 10 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.