Hello everyone,

Question:  (Using actionscript 3) 

How to scale just the background image (photograph) fullscreen in the browser 
but still keep it's aspect ratio.
All the solutions on the internet seem to still be in Actionscript 2.  I'm 
using the code below -
 
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

stage.addEventListener(Event.RESIZE, onStageResize);
 
 function onStageResize(event:Event):void {

picture_mc = ???? 
 
 }
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I've tried stage.stagewidth and scaleX = stage.width; but they all distort the 
image when resized.

Anyone have a clue?

Thanks.



Vlado
 
Please consider the environment before printing this e-mail. 
The contents of this message should be treated as COMMERCIAL IN CONFIDENCE 
unless otherwise specified in the message
and is intended solely for the use of the individual or entity to whom it is 
addressed.
If you have received this email in error please notify the sender. If you are 
not the named addressee you should not disseminate, distribute or copy this 
e-mail. 
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to