0 Replies Latest reply on Sep 21, 2009 3:30 AM by leventis123

    Set an object equal to another (ie Panel = Panel)

    leventis123

      It is kind of hard for me to subject this out. What I am trying to do is to set an object o equal to another object, but within components.

       

      panelComponents.mxml

      <mx:Panel ...>
      <mx:Script>
            <![CDATA[
                             public var op:otherPanelComponents;
      
                           public function init():void{
                                      this = op;
                           }
            ]]>
      </mx:Panel>

       

      otherPanelComponent.mxml

      <mx:Panel ...>
      //do stuff
      </mx:Panel>

      So, my programming logic tells me that since both of these are objects and they are panels, they can be equal to each other. How do I do this?

       

      I hope it was clear.