Hi,

I have a problem with resize event:
My flex application is loaded inside a loader in Flash and when i resize my 
windows, my flash loader resizes (at least i think so) but my application 
doesn't resize. I tried to add listeners for both flash and flex. Here's the 
code:

the loader in Flash:
-----------------------------------------
import flash.events.Event;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
stage.addEventListener(Event.RESIZE, mudaTamanhoListener);
var loader:Loader = new Loader();
loader.load(new URLRequest(Stage.path ? Stage.path : '/swf/meusite.swf'));
this.addChild(loader);
function mudaTamanhoListener(evt:Event):void{
        loader.content.stage.stageWidth = this.stage.stageWidth;
        loader.content.stage.stageHeight = this.stage.stageHeight;
}
stop();
-------------------------------------------------
And inside the flex application, at creationComplete, i have:
-----------------------------
this.addEventListener(Event.RESIZE, changeResize);
------------------------------
public function changeResize(evt:Event):void{   
  this.width = stage.stageWidth;
  this.height= stage.stageHeight;
}

What might be happening?
Where should be the problem?

Thanks,
Carlos


PS: I need to use this container because i'm using SWFAddress and there is a 
bug when you access direct urls (with '#'), if you don't load your main swf 
into a container, it won't show the preloader (which is ok without direct url).

Reply via email to