2009
01.14
01.14
I made a blog post on my own blog about a class that I made some time ago. Today I decided to remake it so that you can work with different positions of scaling and bitmapsmoothing on or off.
In short what this class will bo is take a url for a image, load in interanly, span and algin the image to fill the whole stage and resize if the browser window or stage size changes.
You can read more at http://gfxcomplex.com/actionscript3/as3-full-screen-image-class-with-alignment-scaling-and-smoothing/







Hey,
I just got your class library and I must say the examples look very promising!
However, after doing a quick test with the following code I get an error:
import com.gfxcomplex.display.FullScreenImage;
import com.gfxcomplex.display.FullScreenAlign;
var image:FullScreenImage = new FullScreenImage(url:String = “Assets/Projects00.jpg”, align:String = FullScreenAlign.TOP_LEFT, bitmapSmoothing:Boolean = false);
addChild(image);
The error is: 1084: Syntax error: expecting rightparen before colon.
use this
url:String = “Assets/Projects00.jpg”, align:String = FullScreenAlign.TOP_LEFT