我想从Main.mxml(主应用程序)更改自定义组件弹出窗口的属性我的自定义组件是 ->
public class PropertyPanel extends Panel
.....
在里面我有
public function minimisePanel(e:MouseEvent):void{
effResize.heightTo = previousHeight;
effResize.widthTo = 200;
this.x = parentApplication.width - 320;
effResize.play([this]);
}
在主应用程序中,我将其称为 -->
private function AddPropertiesPanel():void{
var PropWindow:IFlexDisplayObject;
PropWindow = PopUpManager.createPopUp(this, Property_Panel, false);
/*Property_Panel is Property_Panel.mxml*/
}
在主要应用程序中我想 -->
public function setCurrObj(event:TransformEvent):void{
/*Some Magical Stuff Required Here*/
}