1 person found this helpful
No, you can not change a constructor arguments in MXML.
But you can use a setter after instanciating your pop up. Or go with AS3, but this seems a little "extreme"...
Do you mind if I ask why the window needs a reference to the parent ?
It is my understanding that a popup must have a reference to it's parent, but perhaps that's a misconception on my part?
You can do this:
DebugPopup = new DebugViewer(); DebugPopup.ParentWindow = MainWindow;
maybe this can do.
public static function createInstance(cla:Class,obj:Object=null):*
var mediator:ClassFactory = new ClassFactory(cla);
mediator.properties = obj