Dojo controls are great but i REALLY like the animation characteristics of Flash... the only true working inter-operability testcases I 've seen working is to write FormBean/QueryString to XML and Post to Flash and send XML

What I've seen work is Flex swf posts to your WebService e.g.
/*********start AMFPHPDrupal.xml**********/
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; layout="absolute" width="430" height="270">

<!-- set up a RemoteObject with which to access the services api -->
<mx:RemoteObject id="node" fault="faultHandler(event)" showBusyCursor="true" source="node" destination="amfphp">
       <mx:method name="load" result="resultHandler(event)" />
   </mx:RemoteObject>

<mx:Script>
    <![CDATA[
     //import the required packages and classes
        import mx.rpc.remoting.RemoteObject;
        import mx.rpc.events.ResultEvent;
        import mx.rpc.events.FaultEvent;

  //declare an object to store the data we retrieve
        [Bindable]
        public var resObject:Object;

  //declare an event handler to deal with the result
        public function resultHandler(event:ResultEvent):void {

         //set the bindable object to the value of the result
         resObject = event.result;

         //set the value of the TextArea to the title of the loaded node
result_text.text = "Success! The title of your node is: " + event.result.title;
        }


  //declare an event handler to deal with a potential fault
        public function faultHandler (event:FaultEvent):void {

//set the value of the TextArea to the fault in the event of failure
            result_text.text = "fault: " + String(event.fault);
        }
    ]]>
</mx:Script>

<!-- note that by naming a RemoteObject the same as the Drupal service, we get a relative mirror of the Services and Drupal api;
  "node" - the service
  "load" - the method
  "node.load" - clear & concise
-->

<!-- set up simple ui elements to invoke the service & display the result --> <mx:Button id="btn" label="Load that node!" click="node.load(1);" width="115" bottom="5" right="15" /> <mx:TextArea width="400" height="200" id="result_text" horizontalCenter="0" verticalCenter="0"/>
<mx:Label left="15" top="10" text="Result:"/>
</mx:Application>

Flex Form and Controls call out to your web service.
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

----- Original Message ----- From: "Mark P Ashworth" <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Friday, June 15, 2007 8:55 AM
Subject: [S2] Has anyone used Open Flash Chart with Struts 2



Good Day,

I am evaluating charting packages and was wondering if anyone has used Open
Flash Chart with Struts or event Struts 2?

Any information would be helpful.

Regards,
Mark P Ashworth
http://www.connext.co.za
--
View this message in context: http://www.nabble.com/-S2--Has-anyone-used-Open-Flash-Chart-with-Struts-2-tf3927713.html#a11138931
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to