ActionScript 3 FullScreen Object Resize Class
The NpFSObjectResize Class is a fairly simple ActionScript 3 class for displaying any DisplayObject at fullScreen (fullBrowser) screen dimensions. The class gives you the options of resizing to full the entire screen, or to resize to either width or height. You are also able to align your objects anywhere within the stages dimensions. This allows for you control where your objects scale from (via positioning) them. So, you can center your objects, or align them bottom right and so on.
Updates 1 August 2008: Updated with new stage alignment properties, adjustments to constructor.
Class Features
- Min Stage Width – point at which scaling will turn off
- Min Stage Height – point at which scaling will turn off
- Use Stage Min – Controls whether or not objects scale or clip at a the MIN stage points
- Scale Modes – “full”, “height”, “width”
- Align Objects within stage dimensions
- Position Objects within stage dimensions
View Example
http://www.noponies.com/dev/as3_fsresize/
Source Files
Here is the relevant source file: FullScreen Resize Object Files (1705) - 348.14 KB
By downloading, you agree to the terms of use, outlined here: http://www.blog.noponies.com/terms-and-conditions
Dependencies
None
Updates
03 October, 2008: Updated main resize code, as there was a slight bug when resizing
Dependencies
None!
Beta Version
I’ve created a new version of this class, that includes mouse panning for objects along with a panning to a point method
You can get the beta from here. NpFsObjectResize Beta (51) - 482.74 KB
Please let me know of any errors, or issues with the code.
