Re: RemoteObject

2018-01-15 Thread Piotr Zarzycki
Carlos,

No problem. I have also couple of huge things related to Royale to do
before my hand gets dirty with AMF! :) Unless someone urgently will needed.
:)

Thanks, Piotr

2018-01-15 19:27 GMT+01:00 Carlos Rovira :

> Hi Piotr,
> I'll put this on my to do list, but have to do some things first.
> thanks
>
> 2018-01-15 9:26 GMT+01:00 Piotr Zarzycki :
>
>> Hi Carlos,
>>
>> Can you describe more how to setup those examples ? Could you add to
>> RemoteObjectAMFTest README.md file where you describe steps. I would like
>> to have AMF on my list for tests and improvements. Whenever I look into
>> that I don't know how to proceed with it.
>>
>> Thanks, Piotr
>>
>> 2018-01-15 9:21 GMT+01:00 Carlos Rovira :
>>
>>> Hi,
>>>
>>> there's an example that we get it working nicely at:
>>>
>>> https://github.com/apache/royale-asjs/tree/develop/examples/
>>> royale/RemoteObjectAMFTest
>>>
>>> you can use that as a starting point for your test
>>>
>>> As well a java web app that is used along that royale client example is
>>> at:
>>>
>>> https://github.com/apache/royale-asjs/tree/develop/examples/amf
>>>
>>> thanks
>>>
>>>
>>> 2018-01-15 3:56 GMT+01:00 Carlos Cruz :
>>>
 I have a lot of experience with Flex remoting and BlazeDS with Java,
 but with FlexJS and Royale I have none, but extrapolating from some JS
 tests I've done with AMF at this line: amfTestService.send("get
 ShippingMethods", []); you have to call a class in gateway.php and a
 method. Your request needs at least 3 properties.



 I'm also assuming your JS file and gateway.php are in the same domain
 and same port (this gave me problems).



 Take what I said regarding my experience with FlexJS and Royale into
 account.



 Carlos





 *From:* Fréderic Cox [mailto:coxfrede...@gmail.com]
 *Sent:* Sunday, January 14, 2018 4:01 PM

 *To:* users@royale.apache.org
 *Subject:* Re: RemoteObject



 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(ev
 ent:FaultEvent):void

  {

statusLabel.text = "error!";

  }



  protected function amfTestService_resultHandler(e
 vent:ResultEvent):void

  {

statusLabel.text = "result!";

  }



 none of the events are triggered ..URL is http://winkelbeheer.cityfas
 hion.be/amfphp/gateway.php



 On Fri, Jan 12, 2018 at 4:55 AM, Carlos Cruz 
 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:coxfrede...@gmail.com]
 Sent: Thursday, January 11, 2018 9:09 PM
 To: users@royale.apache.org
 Subject: Re: RemoteObject

 

 http://ns.adobe.com/mxml/2009;
xmlns:js="library://ns.apache.org/royale/basic" >
 

 
 
 
 

 
 
 >>>
 endPoint="http://winkelbeheer.cityfashion.be/amfphp/gateway.php;
  destination="Meta"
 source="Meta" />
 

 
 
 
 
 >>> click="textbutton_clickHandler(event)" />
 
 
 
 


 Any idea why I'm not getting a fault nor success event on this?



 --
 Sent from: http://apache-royale-users.20374.n8.nabble.com/



>>>
>>>
>>>
>>> --
>>> Carlos 

Apache Royale Facebook Page

2018-01-15 Thread Carlos Rovira
Hi,

our facebook page is over 30 people so I can select a @username
I selected @ApacheRoyaleSDK, since @apacheroyale was not available, there's
a facebook page for Japanese clothes called "Apache Royale Clothing"

so in facebook links are:


   - @ApacheRoyaleSDK
   

username
   - fb.me/ApacheRoyaleSDK
   

to
   go quickly to our facebook page
   - m.me/ApacheRoyaleSDK to send msgs


Please follow the page and click some likes! :)


-- 
Carlos Rovira
http://about.me/carlosrovira


Re: RemoteObject

2018-01-15 Thread Piotr Zarzycki
Hi Carlos,

Can you describe more how to setup those examples ? Could you add to
RemoteObjectAMFTest README.md file where you describe steps. I would like
to have AMF on my list for tests and improvements. Whenever I look into
that I don't know how to proceed with it.

Thanks, Piotr

2018-01-15 9:21 GMT+01:00 Carlos Rovira :

> Hi,
>
> there's an example that we get it working nicely at:
>
> https://github.com/apache/royale-asjs/tree/develop/examples/royale/
> RemoteObjectAMFTest
>
> you can use that as a starting point for your test
>
> As well a java web app that is used along that royale client example is at:
>
> https://github.com/apache/royale-asjs/tree/develop/examples/amf
>
> thanks
>
>
> 2018-01-15 3:56 GMT+01:00 Carlos Cruz :
>
>> I have a lot of experience with Flex remoting and BlazeDS with Java, but
>> with FlexJS and Royale I have none, but extrapolating from some JS tests
>> I've done with AMF at this line: amfTestService.send("getShippingMethods",
>> []); you have to call a class in gateway.php and a method. Your request
>> needs at least 3 properties.
>>
>>
>>
>> I'm also assuming your JS file and gateway.php are in the same domain and
>> same port (this gave me problems).
>>
>>
>>
>> Take what I said regarding my experience with FlexJS and Royale into
>> account.
>>
>>
>>
>> Carlos
>>
>>
>>
>>
>>
>> *From:* Fréderic Cox [mailto:coxfrede...@gmail.com]
>> *Sent:* Sunday, January 14, 2018 4:01 PM
>>
>> *To:* users@royale.apache.org
>> *Subject:* Re: RemoteObject
>>
>>
>>
>> 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(ev
>> ent:FaultEvent):void
>>
>>  {
>>
>>statusLabel.text = "error!";
>>
>>  }
>>
>>
>>
>>  protected function amfTestService_resultHandler(e
>> vent:ResultEvent):void
>>
>>  {
>>
>>statusLabel.text = "result!";
>>
>>  }
>>
>>
>>
>> none of the events are triggered ..URL is http://winkelbeheer.cityfas
>> hion.be/amfphp/gateway.php
>>
>>
>>
>> On Fri, Jan 12, 2018 at 4:55 AM, Carlos Cruz 
>> 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:coxfrede...@gmail.com]
>> Sent: Thursday, January 11, 2018 9:09 PM
>> To: users@royale.apache.org
>> Subject: Re: RemoteObject
>>
>> 
>>
>> http://ns.adobe.com/mxml/2009;
>>xmlns:js="library://ns.apache.org/royale/basic" >
>> 
>>
>> 
>> 
>> 
>> 
>>
>> 
>> 
>> >
>> endPoint="http://winkelbeheer.cityfashion.be/amfphp/gateway.php;
>>  destination="Meta"
>> source="Meta" />
>> 
>>
>> 
>> 
>> 
>> 
>> > click="textbutton_clickHandler(event)" />
>> 
>> 
>> 
>> 
>>
>>
>> Any idea why I'm not getting a fault nor success event on this?
>>
>>
>>
>> --
>> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>>
>>
>>
>
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
>


-- 

Piotr Zarzycki

Patreon: *https://www.patreon.com/piotrzarzycki
*