1 Reply Latest reply on Jan 27, 2009 10:13 AM by whiterrabbit

    PopUpManager to open component Panel

    whiterrabbit
      Trying to popup a panel component
      Error 1067: Implicit coercion of a value of type Class to an unrelated type mx.core:IFlexDisplayObject.

      the errors are on the two statements within the function. Thanks for your help



        • 1. Re: PopUpManager to open component Panel
          whiterrabbit Level 1
          Code should have been as follows

          // ActionScript file
          import components.register;

          import flash.events.MouseEvent;

          import mx.containers.Panel;
          import mx.managers.PopUpManager;

          private var panel:Panel = new components.register;

          private function openregister(event:MouseEvent):void {

          PopUpManager.addPopUp(panel,this,true);
          PopUpManager.centerPopUp(panel);

          }