Using Weborb Generated Code in Actionscript
January 19th, 2009
WebOrb has an excellent feature built in which allows you to generate Actionscript/Flex code from you deployed Java or .Net objects. The example on their website shows you how to use this code in MXML but not in actionscript. However, it is quite simple. Here is an example function I have used below.
//Dashboard Settings
[Bindable]
private var swooshmodel:swooshModel = new swooshModel();
private var swooshProxy:swoosh;
private function LoadUserSettings () : void
{
// Create a Responder for the call
var responder:mx.rpc.Responder = new mx.rpc.Responder(OnUserSettings,onFault);
this.swooshProxy = new swoosh( swooshmodel );
swooshProxy.getUserSettings(responder);
}
private function OnUserSettings (e:ResultEvent) : void
{ }


