Frye / Wiles Blog Archive for the ‘Flash’ Category

Rob
50
Posted by Rob
Posted on 07-14-2008 under Design, Development, Flash, Press Release

Full Browser Flash

FBF Background Image Resizing that keeps aspect ratio

Problem: This recently came up in a job, so I thought I would post about it.  Basically, I needed to have a background image in a full browser flash site.  However, just setting

image._width = Stage.width;
image._height = Stage.height;

wasn’t going to cut it - the image would get all distorted unless the user happened to have their browser set at the correct aspect ratio.  I needed the image to resize proportionately.

(more…)