1 Reply Latest reply on Jul 6, 2007 1:56 PM by Flex harUI

    Resize IFlexDisplayObject PopUp Window Bug?

    jfillman Level 1
      The resize event doesn't have the ability to change the properties of a popup window while the creationComplete event can. I would think that if the creationComplete event can access it, the resize event should also be able to. This doesn't work in Flex 2 either, although it doesn't generate an error. Tried it also in Flex 3 without AIR, didn't work.

      <?xml version="1.0" encoding="utf-8"?>
      <mx:WindowedApplication xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="initApp();" resize="resizeApp();">

      import mx.managers.PopUpManager;
      import mx.core.IFlexDisplayObject;
      import MyLoginForm;

      public var winX:int;

      private var helpWindow:IFlexDisplayObject;

      private function initApp():void{

      public function showLogin():void {
      helpWindow = PopUpManager.createPopUp(this, MyLoginForm, false);
      winX = parent.width * .3;
      helpWindow.x = winX;

      private function resizeApp():void{
      //This doesn't work and creates an error.
      helpWindow.x = winX;
      helpWindow.y = parent.width * .7


      <mx:VBox width="300" height="300">
      <mx:Button click="showLogin()" label="Login" x="10" y="10"/>