Note that all of this only works when Stage.scaleMode = "noScale"; which
might be problematic in some cases.



On 11/17/06, Julien Vignali <[EMAIL PROTECTED]> wrote:

Julian, what about that:

import mx.events.EventDispatcher;

class StageListener {

public var addEventListener:Function;
public var removeEventListener:Function;
private var dispatchEvent:Function;

function StageListener(){
   EventDispatcher.initialize(this);
   Stage.addListener(this);
}

public function resize():Void {
   onResize();
}

private function onResize():Void {
   dispatchEvent({type:"onResize", target:this});
}
}

var sl:StageListener = new StageListener();
var myClass:SomeClass = new SomeClass();

sl.addEventListener("onResize", myClass);
sl.resize();


Julien.


2006/11/17, bayo <[EMAIL PROTECTED]>:
>
> Hi,
>
> I'd like to manually fire a Stage resize event without the Stage having
> actually been resized.  Anyone know if this is possible?
> Thanks.
>
> Julian
>
>
>
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>



--
Julien Vignali
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to