We use Spring Actionscript to wire ours Views to their Presentation Models. This worked quite fine until we started to remove Components and add them later. This is a problem, because the Presentation Model is prototype scoped and all data in the original presentation model is lost when it is replaced by a new presentation model.

Is there a possibility to prevent Autowireing at all addChild call when the component is already wired?


Example:
SomeUIComponent:
[Bindable]
[Autowired]
public var browserDialogPM:BrowserDialogPM;


Where the SomeUIComponent is used:
_content.addChild(someUIComponent);
--> Autowired ist done the first time in someUIComponent

_content.removeAllChildren();
_content.addChild(someUIComponent);
--> Autowired ist done the second time time in someUIComponent