Script tag was stripped from the post:
import org.apache.royale.events.MouseEvent;
import org.apache.royale.net.events.FaultEvent;
import org.apache.royale.net.events.ResultEvent;
protected function
textbutton_clickHandler(event:org.apache.royale.events.MouseEvent):void
{
statusLabel.text = "calling.......";
amfTestService.addEventListener("fault", amfTestService_faultHandler);
amfTestService.addEventListener("result", amfTestService_resultHandler);
amfTestService.send("getShippingMethods", []);
}
protected function amfTestService_faultHandler(event:FaultEvent):void
{
statusLabel.text = "error!";
}
protected function amfTestService_resultHandler(event:ResultEvent):void
{
statusLabel.text = "result!";
}
none of the events are triggered ..URL is
http://winkelbeheer.cityfashion.be/amfphp/gateway.php
On Fri, Jan 12, 2018 at 4:55 AM, Carlos Cruz <[email protected]>
wrote:
> I may be blind (and or ignorant as I'm more familiar with Flex) but where
> are you sending an AMF request? I don't see any code that sends a request
> to
> a service and invokes method.
>
> -----Original Message-----
> From: coxfrederic [mailto:[email protected]]
> Sent: Thursday, January 11, 2018 9:09 PM
> To: [email protected]
> Subject: Re: RemoteObject
>
> <?xml version="1.0" encoding="utf-8"?>
>
> <js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
> xmlns:js="library://ns.apache.org/royale/basic" >
> <fx:Script>
>
> </fx:Script>
> <js:valuesImpl>
> <js:SimpleCSSValuesImpl />
> </js:valuesImpl>
>
> <js:beads>
> <js:ClassAliasBead />
> <js:RemoteObject id="amfTestService"
>
> endPoint="http://winkelbeheer.cityfashion.be/amfphp/gateway.php"
> destination="Meta"
> source="Meta" />
> </js:beads>
>
> <js:initialView>
> <js:View>
> <js:VGroup>
> <js:Label id="statusLabel" text="Hello
> World!" />
> <js:TextButton text="Get AMF data"
> click="textbutton_clickHandler(event)" />
> </js:VGroup>
> </js:View>
> </js:initialView>
> </js:Application>
>
>
> Any idea why I'm not getting a fault nor success event on this?
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>
>