Hi, I think your sample is very simple and to make it work you should mimic the way we use RemoteObject in Royale:
https://github.com/apache/royale-asjs/blob/develop/examples/royale/RemoteObjectAMFTest/src/main/royale/App.mxml I update this link to have access to the two project involved Java and Flex: https://github.com/apache/royale-asjs/wiki/Apache-Royale-communication-with-AMF-and-RemoteObject Check that code since it will solve your needs thanks Carlos 2018-08-03 13:19 GMT+02:00 chembali <chemb...@hotmail.com>: > Thank you Carlos for the input. I am trying to migrate a sample BlazeDS > application ( which is working fine in Flex ) to Royale in order to > identify > the steps/changes needed. Here is my orginal mxml that is working in Flex. > > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > layout="absolute"> > <mx:Script> > > </mx:Script> > <mx:RemoteObject id="ro" result="result(event)" > destination="BlazeDsService"/> > <mx:VBox width="100%"> > <mx:BarChart width="100%" id="stockChart"> > <mx:horizontalAxis> > <mx:CategoryAxis categoryField="name"/> > </mx:horizontalAxis> > <mx:series> > <mx:ColumnSeries xField="name" > yField="price"/> > </mx:series> > </mx:BarChart> > <mx:Button label="Retrieve Stocks" > click="retrieveStocks()"/> > </mx:VBox> > </mx:Application> > > I have changed the mx name space to > xmlns:mx="library://ns.apache.org/royale/mx in the above mxml. I want to > use > the Royale JS compiler and compile the above mxml and identify the changes > required to get this sample app working in Royale. I hope you understand > what I am trying to accomplish here. > > > > > > -- > Sent from: http://apache-royale-development.20373.n8.nabble.com/ > -- Carlos Rovira http://about.me/carlosrovira