addActionTarget = "[String] widget name, [Constant] event,[Method] execute method" [String] is the name of the widget [Constant] the event to listen on [Method] the method signature
A documentdone event only occurs after a loadGui invocation and this occurs once the XML document has been downloaded.
To demostrate the documentdone event, we will load the focusgained.xml script into the 'loadhere' panel.
When we start loading the document the status bar
will change its label to "loading", once loaded the documentdone event is received and the status bar will
change its label to "loaded"
The Widget, 'loadhere', will execute the method 'loadGui'
On the documentdone event we execute status.setLabel="loaded"
To handle more than one event, we append them to the addActionTarget, the addActionTarget accepts parameters in tuples (3,6,9,etc...)
Remember to setCache="false" if you wish to download dynamically generated documents instead of static documents.
The documentdone event is NOT thrown for cached panels that get reloaded.