ActiveDen

AS 3.0 Fullscreen Stage Align and Resize

    This is a very straight forward file intended to help you with aligning elements on stage in AS 3 .0.

The download includes 2 fla’s. One with the movieclips flush to the stage edge, and the other with the movieclips offset. The offset value can be adjusted to any number, right now its set to 25 pixels.
Example: topRight.x = stage.stageWidth-25;
You can manipulate objects around the stage simply by changing the value after stageWidth and stageHeight, it can be – or a + number.
You can use this file to create your fullscreen flash movie or you can use the code and attach it to movieclips on your current flash file.

Update
If you would like the background image to scale proportionally add the following code inside the ENTER _FRAME and RESIZE functions.

backgroundMC.scaleX > backgroundMC.scaleY?
backgroundMC.scaleY = backgroundMC.scaleX: 
backgroundMC.scaleX = backgroundMC.scaleY;

You must sign in or sign up to purchase this item.

$6Regular Licence

$6

Regular Licence a website (commercial, personal, client), free game, e-card, or presentation - Details

202 Purchases 36 Comments

Buyer Rating
12345 ( 31 ratings )
Jerico

Jerico

  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • United States
View Portfolio
Created 9 July 09
ActionScript Version AS3
Documentation Well Documented
Flash Files Included Flash FLA, HTML Files
Opens With Flash CS3 (9+), Flash CS4 (10+), Flash CS5 (10+)
Published Size 278kb
Resolution Resizable
by
by
by
by
by