How do I set the width and height of my swf in AS3?

Posted by Austin Kelley Way on Stack Overflow See other posts from Stack Overflow or by Austin Kelley Way
Published on 2010-06-15T18:50:41Z Indexed on 2010/06/15 19:22 UTC
Read the original article Hit count: 217

Filed under:
|
|
|

How do I set the width and height of my swf in AS3?

This is my code so far:

package {

    import flash.display.Sprite;
    public class Game extends Sprite {

    }

}

Right now, when loaded it is at some arbitrary default size.

If I can't change the size this way, is there any easy work around that will be consistent?

© Stack Overflow or respective owner

Related posts about flash

Related posts about actionscript-3