Is that your actual code?

Because if it is, I think I see the problem.

You can't just write a reference to the constants. You have to actually use them to set the stage's align, quality etc.

public function PbMain() : void
{
        stage.align = StageAlign.TOP_LEFT;
        stage.quality = StageQuality.HIGH;
        stage.scaleMode = StageScaleMode.NO_SCALE;
        stage.addEventListener(Event.RESIZE, initialise);
}

Also, as've been said, be sure stage is accessible.

/ Viktor H

On Thu, 05 Jun 2008 17:16:43 +0200, Patrick J. Jankun <[EMAIL PROTECTED]> wrote:

already done this, before even adding that listener, this is the whole code i want to get working:

public function PbMain() : void
{
        StageAlign.TOP_LEFT;
        StageQuality.HIGH;
        StageScaleMode.NO_SCALE;
        stage.addEventListener(Event.RESIZE, initialise);
}

private function initialise() : void
{                       
        trace( "Initialised" );
        stage.removeEventListener(Event.RESIZE, initialise );
        init();
}

On Jun 5, 2008, at 4:37 PM, Eduardo Omine wrote:

I think you must set stage.scaleMode = StageScaleMode.NO_SCALE.

--Eduardo Omine
http://blog.omine.net/
http://www.omine.net/
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

------------------------------------------
fancy skills to pay the bills
www.jankun.org

Phone:  +43 660 96 969 - 01
web:    jankun.org
mail:   p[at]jankun.org

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to