Hi guys,
i have a very simple air app that launches multiple windows from within a main
application window. This all works fine, however if i want to display an alert
message box in one of the child windows, the alert message does NOT appear in
the window launching the alert. Instead it appears in the main application
window.
If i do:
Alert.show("what ever", "info", 4, this);
it shows the alert message in the child window, however it throws an error
before the alert is shown and after you close it. The error is:
Type Coercion failed: cannot convert mx.managers::WindowedSystemManager to
mx.managers.SystemManager.
To fix this, i have done a monkeypatch. Basically in the AlertACCImpl.as class
i have changed the reference to the class 'SystemManager' to the class
'ISystemManager'. This fixes the problem as long as you use the Alert syntax
above.
If you simple use Alert.show("whatever", "info"); then this will still continue
to show the alert message in the main application window as opposed to the
window requesting the alert.
Is this an actual bug? or is there a proper way of doing this?