Frye / Wiles Blog Archive for the ‘Flash’ Category

Just saw this on Adobe’s website:
http://labs.adobe.com/technologies/flashcs5/appsfor_iphone/
This is potentially a game-changer, and we’re really excited! This does not mean that iPhone has started supporting Flash player, but instead that Actionscript applications will compile down to native iPhone apps.
What this means, among other things, is that Frye / Wiles will soon start offering iPhone Application Development as part of our suite of services. If you are interested, please give us a call!
Some time back I wrote a tutorial about doing proportional image scaling in full broswer flash. This post is, by far, the most popular single post on the Frye / Wiles blog, and we have gotten a lot of great feedback about it. Since that time, we have started migrating over to Actionscript 3, and after a recent comment on the original post I decided it was time to update that tutorial. Because the other post ranks really well and seems to be pretty popular, it seems like it would make more sense to update the original tutorial to cover both versions of the language.
Anyway, to see the Proportional Image Scaling tutorial, now in for both AS2 and AS3, click here!

FBF Background Image Resizing that keeps aspect ratio
UPDATE: This post now covers both AS2 and AS3 implemention!
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
(in AS2)
image._width = Stage.width;
image._height = Stage.height;
(in AS3)
image.width = stage.stageWidth;
image.height = stage.stageHeight;
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…)