You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@royale.apache.org by choirul anam <ic...@gmail.com> on 2019/04/12 08:18:12 UTC

convert mx:HTTPService to js:HTTPService

How to convert mx:HTTPService to js:HTTPService ?

<mx:HTTPService id="save_data" url="some/php/service.php" useProxy="false"
method="POST" 
  resultFormat="text" result="save_data_resultHandler(event)"
showBusyCursor="true">
	<mx:request xmlns="">
	   <param1>{value1}</param1>
	   <param2>{value2}</param2>
	   <param3>{value3}</param3>
	</mx:request>					
</mx:HTTPService> 

I don't see <js:request> 

Regards,
Choirul




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

Re: convert mx:HTTPService to js:HTTPService

Posted by Piotr Zarzycki <pi...@gmail.com>.
Hi Choirul,

I'm sorry in the delay with response. We are always using the newest
Nightly Build. I'm personally downloading each day new build if something
was committed.
We are using js:HTTPService, some of us are using VSCode, I'm using
Moonshine.

I think it's ready for you. It is just a matter of spending a bit more time
to understand what is happening underneath.

Thanks,
Piotr

wt., 23 kwi 2019 o 03:28 choirul anam <ic...@gmail.com> napisał(a):

> Piotr Zarzycki wrote
> > Hi,
> >
> > In our application we are doing Post, Delete, Get and Put - everything is
> > working like a charm :)
> >
> > Thanks,
> > Piotr
> >
> > On Mon, Apr 22, 2019, 5:59 PM Alex Harui &lt;
>
> > aharui@
>
> > &gt; wrote:
> >
> >> I think Yishay and/or Harbs would know better.
> >>
> >>
> >>
> >> -Alex
> >>
> >>
> >>
> >> *From: *Carlos Rovira &lt;
>
> > carlosrovira@
>
> > &gt;
> >> *Reply-To: *"
>
> > users@.apache
>
> > " &lt;
>
> > users@.apache
>
> > &gt;
> >> *Date: *Monday, April 22, 2019 at 5:47 AM
> >> *To: *"
>
> > users@.apache
>
> > " &lt;
>
> > users@.apache
>
> > &gt;
> >> *Subject: *Re: convert mx:HTTPService to js:HTTPService
> >>
> >>
> >>
> >> Hi Alex,
> >>
> >>
> >>
> >> did you know if  js:HTTPService can be used to send with POST so we can
> >> help choirul?
> >>
> >>
> >>
> >> thanks
> >>
> >>
> >>
> >> El sáb., 20 abr. 2019 a las 15:04, choirul anam (&lt;
>
> > ichsan.anam@
>
> > &gt;)
> >> escribió:
> >>
> >> Yes, I confirm this js:HTTPService is build successfully and running.
> >> This example is for receiving data from the server.
> >>
> >> Very appreciate if there is sample code using js:HTTPService that use to
> >> send some POST data to the server.
> >>
> >> Regards,
> >> Choirul
> >>
> >>
> >>
> >> --
> >> Sent from: http://apache-royale-users.20374.n8.nabble.com/
> >> &lt;
> https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-users.20374.n8.nabble.com%2F&amp;data=02%7C01%7Caharui%40adobe.com%7C9def07176fe6444d6e9408d6c7209eb2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636915340250888548&amp;sdata=cVlp07Kub9AooP%2By9f7Cco4x2CMgf7CpqRQVy%2Bg34Ck%3D&amp;reserved=0&gt
> ;
> >>
> >>
> >>
> >>
> >> --
> >>
> >> Carlos Rovira
> >>
> >> http://about.me/carlosrovira
> >> &lt;
> https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&amp;data=02%7C01%7Caharui%40adobe.com%7C9def07176fe6444d6e9408d6c7209eb2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636915340250888548&amp;sdata=5TaqatOnYopHYYQL1Xp5ly43SqDO7Oa5DQ2yiMQbjLY%3D&amp;reserved=0&gt
> ;
> >>
> >>
> >>
>
> Hi Piotr,
> Which apache royale build number you used?
> Which component you use? js:HTTPService / mx:HTTPService / RemoteObject ?
> Which IDE ? Moonshine or VSCode
>
> Let me know that apache royale ready for me to move on from flex.
>
> Regards,
> Choirul
>
>
>
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 

Piotr Zarzycki

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

Re: convert mx:HTTPService to js:HTTPService

Posted by choirul anam <ic...@gmail.com>.
Piotr Zarzycki wrote
> Hi,
> 
> In our application we are doing Post, Delete, Get and Put - everything is
> working like a charm :)
> 
> Thanks,
> Piotr
> 
> On Mon, Apr 22, 2019, 5:59 PM Alex Harui &lt;

> aharui@

> &gt; wrote:
> 
>> I think Yishay and/or Harbs would know better.
>>
>>
>>
>> -Alex
>>
>>
>>
>> *From: *Carlos Rovira &lt;

> carlosrovira@

> &gt;
>> *Reply-To: *"

> users@.apache

> " &lt;

> users@.apache

> &gt;
>> *Date: *Monday, April 22, 2019 at 5:47 AM
>> *To: *"

> users@.apache

> " &lt;

> users@.apache

> &gt;
>> *Subject: *Re: convert mx:HTTPService to js:HTTPService
>>
>>
>>
>> Hi Alex,
>>
>>
>>
>> did you know if  js:HTTPService can be used to send with POST so we can
>> help choirul?
>>
>>
>>
>> thanks
>>
>>
>>
>> El sáb., 20 abr. 2019 a las 15:04, choirul anam (&lt;

> ichsan.anam@

> &gt;)
>> escribió:
>>
>> Yes, I confirm this js:HTTPService is build successfully and running.
>> This example is for receiving data from the server.
>>
>> Very appreciate if there is sample code using js:HTTPService that use to
>> send some POST data to the server.
>>
>> Regards,
>> Choirul
>>
>>
>>
>> --
>> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>> &lt;https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-users.20374.n8.nabble.com%2F&amp;data=02%7C01%7Caharui%40adobe.com%7C9def07176fe6444d6e9408d6c7209eb2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636915340250888548&amp;sdata=cVlp07Kub9AooP%2By9f7Cco4x2CMgf7CpqRQVy%2Bg34Ck%3D&amp;reserved=0&gt;
>>
>>
>>
>>
>> --
>>
>> Carlos Rovira
>>
>> http://about.me/carlosrovira
>> &lt;https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&amp;data=02%7C01%7Caharui%40adobe.com%7C9def07176fe6444d6e9408d6c7209eb2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636915340250888548&amp;sdata=5TaqatOnYopHYYQL1Xp5ly43SqDO7Oa5DQ2yiMQbjLY%3D&amp;reserved=0&gt;
>>
>>
>>

Hi Piotr,
Which apache royale build number you used?
Which component you use? js:HTTPService / mx:HTTPService / RemoteObject ?
Which IDE ? Moonshine or VSCode

Let me know that apache royale ready for me to move on from flex.

Regards,
Choirul






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

Re: convert mx:HTTPService to js:HTTPService

Posted by Piotr Zarzycki <pi...@gmail.com>.
Hi,

In our application we are doing Post, Delete, Get and Put - everything is
working like a charm :)

Thanks,
Piotr

On Mon, Apr 22, 2019, 5:59 PM Alex Harui <ah...@adobe.com> wrote:

> I think Yishay and/or Harbs would know better.
>
>
>
> -Alex
>
>
>
> *From: *Carlos Rovira <ca...@apache.org>
> *Reply-To: *"users@royale.apache.org" <us...@royale.apache.org>
> *Date: *Monday, April 22, 2019 at 5:47 AM
> *To: *"users@royale.apache.org" <us...@royale.apache.org>
> *Subject: *Re: convert mx:HTTPService to js:HTTPService
>
>
>
> Hi Alex,
>
>
>
> did you know if  js:HTTPService can be used to send with POST so we can
> help choirul?
>
>
>
> thanks
>
>
>
> El sáb., 20 abr. 2019 a las 15:04, choirul anam (<ic...@gmail.com>)
> escribió:
>
> Yes, I confirm this js:HTTPService is build successfully and running.
> This example is for receiving data from the server.
>
> Very appreciate if there is sample code using js:HTTPService that use to
> send some POST data to the server.
>
> Regards,
> Choirul
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
> <https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-users.20374.n8.nabble.com%2F&data=02%7C01%7Caharui%40adobe.com%7C9def07176fe6444d6e9408d6c7209eb2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636915340250888548&sdata=cVlp07Kub9AooP%2By9f7Cco4x2CMgf7CpqRQVy%2Bg34Ck%3D&reserved=0>
>
>
>
>
> --
>
> Carlos Rovira
>
> http://about.me/carlosrovira
> <https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7C9def07176fe6444d6e9408d6c7209eb2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636915340250888548&sdata=5TaqatOnYopHYYQL1Xp5ly43SqDO7Oa5DQ2yiMQbjLY%3D&reserved=0>
>
>
>

Re: convert mx:HTTPService to js:HTTPService

Posted by Alex Harui <ah...@adobe.com>.
I think Yishay and/or Harbs would know better.

-Alex

From: Carlos Rovira <ca...@apache.org>
Reply-To: "users@royale.apache.org" <us...@royale.apache.org>
Date: Monday, April 22, 2019 at 5:47 AM
To: "users@royale.apache.org" <us...@royale.apache.org>
Subject: Re: convert mx:HTTPService to js:HTTPService

Hi Alex,

did you know if  js:HTTPService can be used to send with POST so we can help choirul?

thanks

El sáb., 20 abr. 2019 a las 15:04, choirul anam (<ic...@gmail.com>>) escribió:
Yes, I confirm this js:HTTPService is build successfully and running.
This example is for receiving data from the server.

Very appreciate if there is sample code using js:HTTPService that use to
send some POST data to the server.

Regards,
Choirul



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-users.20374.n8.nabble.com%2F&data=02%7C01%7Caharui%40adobe.com%7C9def07176fe6444d6e9408d6c7209eb2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636915340250888548&sdata=cVlp07Kub9AooP%2By9f7Cco4x2CMgf7CpqRQVy%2Bg34Ck%3D&reserved=0>


--
Carlos Rovira
http://about.me/carlosrovira<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7C9def07176fe6444d6e9408d6c7209eb2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636915340250888548&sdata=5TaqatOnYopHYYQL1Xp5ly43SqDO7Oa5DQ2yiMQbjLY%3D&reserved=0>


Re: convert mx:HTTPService to js:HTTPService

Posted by Carlos Rovira <ca...@apache.org>.
Hi Alex,

did you know if  js:HTTPService can be used to send with POST so we can
help choirul?

thanks

El sáb., 20 abr. 2019 a las 15:04, choirul anam (<ic...@gmail.com>)
escribió:

> Yes, I confirm this js:HTTPService is build successfully and running.
> This example is for receiving data from the server.
>
> Very appreciate if there is sample code using js:HTTPService that use to
> send some POST data to the server.
>
> Regards,
> Choirul
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


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

Re: convert mx:HTTPService to js:HTTPService

Posted by choirul anam <ic...@gmail.com>.
Yes, I confirm this js:HTTPService is build successfully and running.
This example is for receiving data from the server.

Very appreciate if there is sample code using js:HTTPService that use to
send some POST data to the server.

Regards,
Choirul



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

Re: convert mx:HTTPService to js:HTTPService

Posted by Carlos Rovira <ca...@apache.org>.
Hi Choriul,

to start from a safe point. I suppose you started from this project:

https://royale.apache.org/loading-external-data-through-httpservice/

right?

This is using Jewel with HTTPService from Network, not from MXRoyale

Can you confirm this compile and runs from you?

Then we can move to change HTTPService from Network to MXRoyale version ok?

Thanks

Carlos



El jue., 18 abr. 2019 a las 7:00, Alex Harui (<ah...@adobe.com>) escribió:

> I have not used VSCode and asconfig.json.  Check other examples.  Maybe
> some others will help you, but I'm wondering if you have the options in the
> wrong place, maybe they should be fields of "compilerOptions".
>
> HTH,
> -Alex
>
> On 4/17/19, 9:43 PM, "choirul anam" <ic...@gmail.com> wrote:
>
>     Alex,
>
>     Unable to build HelloWorld under examples/mxroyale
>
>     This is link my vscode setting:
>
>
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpastebin.com%2Faeh61zCF&amp;data=02%7C01%7Caharui%40adobe.com%7C3a5e668be9a24147eddb08d6c3b873aa%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636911594315362814&amp;sdata=DGpSHalTyW74XEV%2B9%2BFpMSM9bU6cNewEuyQ1ZqTByug%3D&amp;reserved=0
>
>     I ensure that MXRoyale.swc is exists on my folder:
>
> D:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs\frameworks\js\libs
>
>
>     Regards,
>     Choirul
>
>
>
>     --
>     Sent from:
> https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-users.20374.n8.nabble.com%2F&amp;data=02%7C01%7Caharui%40adobe.com%7C3a5e668be9a24147eddb08d6c3b873aa%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636911594315362814&amp;sdata=hyixlYBfKgbsiF0zPRpB9Sut30SwcgIWL%2BLPSmLeIVM%3D&amp;reserved=0
>
>
>

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

Re: convert mx:HTTPService to js:HTTPService

Posted by Alex Harui <ah...@adobe.com>.
I have not used VSCode and asconfig.json.  Check other examples.  Maybe some others will help you, but I'm wondering if you have the options in the wrong place, maybe they should be fields of "compilerOptions".

HTH,
-Alex

On 4/17/19, 9:43 PM, "choirul anam" <ic...@gmail.com> wrote:

    Alex,
    
    Unable to build HelloWorld under examples/mxroyale 
    
    This is link my vscode setting:
    
    https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpastebin.com%2Faeh61zCF&amp;data=02%7C01%7Caharui%40adobe.com%7C3a5e668be9a24147eddb08d6c3b873aa%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636911594315362814&amp;sdata=DGpSHalTyW74XEV%2B9%2BFpMSM9bU6cNewEuyQ1ZqTByug%3D&amp;reserved=0
    
    I ensure that MXRoyale.swc is exists on my folder:
    D:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs\frameworks\js\libs
    
    
    Regards,
    Choirul
    
    
    
    --
    Sent from: https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-users.20374.n8.nabble.com%2F&amp;data=02%7C01%7Caharui%40adobe.com%7C3a5e668be9a24147eddb08d6c3b873aa%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636911594315362814&amp;sdata=hyixlYBfKgbsiF0zPRpB9Sut30SwcgIWL%2BLPSmLeIVM%3D&amp;reserved=0
    


Re: convert mx:HTTPService to js:HTTPService

Posted by choirul anam <ic...@gmail.com>.
Alex,

Unable to build HelloWorld under examples/mxroyale 

This is link my vscode setting:

https://pastebin.com/aeh61zCF

I ensure that MXRoyale.swc is exists on my folder:
D:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs\frameworks\js\libs


Regards,
Choirul



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

Re: convert mx:HTTPService to js:HTTPService

Posted by Alex Harui <ah...@adobe.com>.
I am unable to follow what has been tested and tried.

First, try to build the HelloWorld.mxml in examples/mxroyale (not the one in examples/royale).  If that doesn't build then we need to verify your settings.  Put all of the console output (if you can get some from VSCode) into pastebin and post the link.

If that builds, but adding the mx:HTTPService tag doesn't then verify that your MXRoyaleJS.swc contains HTTPService.  A swc is a ZIP file.  Unzip it and see if an HTTPService.js file is in there.

HTH,
-Alex

On 4/17/19, 6:25 PM, "choirul anam" <ic...@gmail.com> wrote:

    Hi,
    
    I Already add these lines to asconfig.json:
    
    
        "library-path": [
            "${royalelib}/js/libs/MXRoyaleJS.swc"
        ],
        "js-library-path": [
            "${royalelib}/js/libs/MXRoyaleJS.swc"
        ],
    
    
    But still get the same message:
    Error: This tag could not be resolved to an ActionScript class. It will be
    ignored.
    
    
    
    
    --
    Sent from: https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-users.20374.n8.nabble.com%2F&amp;data=02%7C01%7Caharui%40adobe.com%7C4f56b3a37f0745f71f8a08d6c39ccdfc%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636911475569685639&amp;sdata=9yEo9FZ1MfVc6Vo%2FBNWHZA36bJ1f3DipjyaKpla6SeM%3D&amp;reserved=0
    


Re: convert mx:HTTPService to js:HTTPService

Posted by choirul anam <ic...@gmail.com>.
Hi,

I Already add these lines to asconfig.json:


    "library-path": [
        "${royalelib}/js/libs/MXRoyaleJS.swc"
    ],
    "js-library-path": [
        "${royalelib}/js/libs/MXRoyaleJS.swc"
    ],


But still get the same message:
Error: This tag could not be resolved to an ActionScript class. It will be
ignored.




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

Re: convert mx:HTTPService to js:HTTPService

Posted by Carlos Rovira <ca...@apache.org>.
Hi,

ok so you're using asconfig.json. I only use it for VSCode completion, but
I'm not building with it.

try adding this:

"library-path": [
"${royalelib}/js/libs/MXRoyaleJS.swc"
],
"js-library-path": [
"${royalelib}/js/libs/MXRoyaleJS.swc"
],

El mar., 16 abr. 2019 a las 11:22, choirul anam (<ic...@gmail.com>)
escribió:

> This is my asconfig.json file in visual studio code:
>
> {
>     "config": "royale",
>     "compilerOptions": {
>         "debug": false,
>         "targets": ["JSRoyale"],
>         "source-map": true,
>         "html-template":
> "src/main/resources/jewel-example-index-template.html",
>         "theme":
> "${royalelib}/themes/JewelTheme/src/main/resources/defaults.css"
>     },
>
>     "additionalCompilerOptions": {
>         "js-dynamic-access-unknown-members":true,
>         "js-default-initializers": false,
>         "compiler.exclude-defaults-css-files":
> "MXRoyale-${royale.framework.version}-js.swc:defaults.css"
>     },
>
>     "copySourcePathAssets": true,
>
>     "files":
>     [
>         "src/main/royale/App.mxml"
>     ]
> }
>
> and this is console message log:
>
> > Executing task: C:\ProgramData\Oracle\Java\javapath\java.exe -jar
> >
> c:\Users\Usr\.vscode\extensions\bowlerhatllc.vscode-nextgenas-0.18.0\bin\asconfigc.jar
> > --sdk d:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs
> > --debug=true --project d:\xampp\htdocs\royale\myTourDeJewel\asconfig.json
> > <
>
> MXMLJSC
>
> +royalelib=d:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs\frameworks
> --debug=true
> +configname=royale
> --targets=JSRoyale
> --source-map=true
> --html-template=src/main/resources/jewel-example-index-template.html
> --theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css
> --
> src/main/royale/App.mxml
>
> d:\xampp\htdocs\royale\myTourDeJewel\src\main\royale\components\FormEntryMaster.mxml(118):
> col: 5 Error: This tag could not be resolved to an ActionScript class. It
> will be ignored.
>
>     <mx:HTTPService id="dept_service"
> url="http://localhost/webpc/bin-debug/services/mod_master/master.php"
> method="POST">
>     ^
>
> 4.652820343 seconds
> The terminal process terminated with exit code: 3
>
> Terminal will be reused by tasks, press any key to close it.
>
>
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


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

Re: convert mx:HTTPService to js:HTTPService

Posted by choirul anam <ic...@gmail.com>.
This is my asconfig.json file in visual studio code:

{
    "config": "royale",
    "compilerOptions": {
        "debug": false,
        "targets": ["JSRoyale"],
        "source-map": true,        
        "html-template":
"src/main/resources/jewel-example-index-template.html",
        "theme":
"${royalelib}/themes/JewelTheme/src/main/resources/defaults.css"
    },
    
    "additionalCompilerOptions": {
        "js-dynamic-access-unknown-members":true,
        "js-default-initializers": false,        
        "compiler.exclude-defaults-css-files":
"MXRoyale-${royale.framework.version}-js.swc:defaults.css"
    },

    "copySourcePathAssets": true,
    
    "files":
    [
        "src/main/royale/App.mxml"
    ]
}

and this is console message log:

> Executing task: C:\ProgramData\Oracle\Java\javapath\java.exe -jar
> c:\Users\Usr\.vscode\extensions\bowlerhatllc.vscode-nextgenas-0.18.0\bin\asconfigc.jar
> --sdk d:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs
> --debug=true --project d:\xampp\htdocs\royale\myTourDeJewel\asconfig.json
> <

MXMLJSC
+royalelib=d:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs\frameworks
--debug=true
+configname=royale
--targets=JSRoyale
--source-map=true
--html-template=src/main/resources/jewel-example-index-template.html
--theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css
--
src/main/royale/App.mxml
d:\xampp\htdocs\royale\myTourDeJewel\src\main\royale\components\FormEntryMaster.mxml(118):
col: 5 Error: This tag could not be resolved to an ActionScript class. It
will be ignored.

    <mx:HTTPService id="dept_service"
url="http://localhost/webpc/bin-debug/services/mod_master/master.php"
method="POST">
    ^

4.652820343 seconds
The terminal process terminated with exit code: 3

Terminal will be reused by tasks, press any key to close it.





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

Re: convert mx:HTTPService to js:HTTPService

Posted by Carlos Rovira <ca...@apache.org>.
Hi,

I have that as part of my pom.xml in additionalCompilerOptions

<additionalCompilerOptions>
-js-default-initializers=false;-source-map=true;-compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css
</additionalCompilerOptions>

this is a tag inside configuration in the <artifactId>royale-maven-plugin</
artifactId> plugin

Are you building with maven with command like "mvn clean install" ?



El mar., 16 abr. 2019 a las 6:01, choirul anam (<ic...@gmail.com>)
escribió:

> I Already download and use nightly build, and all mx tag still not working.
> where i should put :
>
>
> -compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css
>
> what file in visual studio code.
>
> Regards,
> Choirul
>
>
> Alex Harui-2 wrote
> > Do other mx tags work?  You might need to use nightly builds/snapshot
> > builds to get mx:HTTPService.
> >
> > HTH,
> > -Alex
> >
> > From: Carlos Rovira &lt;
>
> > carlosrovira@
>
> > &gt;
> > Reply-To: "
>
> > users@.apache
>
> > " &lt;
>
> > users@.apache
>
> > &gt;
> > Date: Monday, April 15, 2019 at 2:45 AM
> > To: "
>
> > users@.apache
>
> > " &lt;
>
> > users@.apache
>
> > &gt;
> > Subject: Re: convert mx:HTTPService to js:HTTPService
> >
> > I was checking my config and don't see other needs
> >
> > just this:
> >
> -compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css
> > but is to avoid
> > css conflicts with MXRoyale until we get break MXRoyale in various SWCs
> >
> >
> >
> >
> >
> > El lun., 15 abr. 2019 a las 11:31, Carlos Rovira (&lt;
>
> > carlosrovira@
>
> > &lt;mailto:
>
> > carlosrovira@
>
> > &gt;>) escribió:
> > Do you have mx namespace added to the MXML file?
> >
> > xmlns:mx="library://
> ns.apache.org/royale/mx&lt;https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fns.apache.org%2Froyale%2Fmx&amp;data=02%7C01%7Caharui%40adobe.com%7C3a667d0de19e4a9d0d2e08d6c1871a16%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636909183339464682&amp;sdata=rNy4rwS%2BZI%2F8m%2F1GhrjoNVur97gMV%2BtzP%2FWTHqCVjPw%3D&amp;reserved=0&gt
> ;"
> >
> > El lun., 15 abr. 2019 a las 11:16, choirul anam (&lt;
>
> > ichsan.anam@
>
> > &lt;mailto:
>
> > ichsan.anam@
>
> > &gt;>) escribió:
> > I am using Visual Studio Code with ActionScript & MXML Extension.
> >
> > Trying to add your code to my pom.xml, but when i declare
> > <mx:HTTPService>
> > compiler said : This tag is unexpected. It will be ignored.(1443)
> > &lt;
> http://apache-royale-users.20374.n8.nabble.com/file/t62/Untitled.png&lt;https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-users.20374.n8.nabble.com%2Ffile%2Ft62%2FUntitled.png&amp;data=02%7C01%7Caharui%40adobe.com%7C3a667d0de19e4a9d0d2e08d6c1871a16%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636909183339464682&amp;sdata=ikdD39K7bC2NQgo54jD1d5surL7HoyDg4wbtUw9MWoE%3D&amp;reserved=0&gt
> ;>
> >
> >
> >
> >
> >
> >
> >
> > --
> > Sent from:
> >
> http://apache-royale-users.20374.n8.nabble.com/&lt;https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-users.20374.n8.nabble.com%2F&amp;data=02%7C01%7Caharui%40adobe.com%7C3a667d0de19e4a9d0d2e08d6c1871a16%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636909183339474687&amp;sdata=Yx87bkTrGx1AyndPXaa702U31KH0ongL3ot9knpk79A%3D&amp;reserved=0&gt
> ;
> >
> >
> > --
> > Carlos Rovira
> >
> http://about.me/carlosrovira&lt;https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&amp;data=02%7C01%7Caharui%40adobe.com%7C3a667d0de19e4a9d0d2e08d6c1871a16%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636909183339474687&amp;sdata=6Bkb9TotOqQAmhjaPZ4v5mE9YpWGKoDgyZURFAK674U%3D&amp;reserved=0&gt
> ;
> >
> >
> >
> > --
> > Carlos Rovira
> >
> http://about.me/carlosrovira&lt;https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&amp;data=02%7C01%7Caharui%40adobe.com%7C3a667d0de19e4a9d0d2e08d6c1871a16%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636909183339484691&amp;sdata=uLyQrH1VU6TYiq7CZQNFd%2BMoaQrarCbnTZUHxbQHA54%3D&amp;reserved=0&gt
> ;
>
>
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


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

Re: convert mx:HTTPService to js:HTTPService

Posted by choirul anam <ic...@gmail.com>.
I Already download and use nightly build, and all mx tag still not working.
where i should put :

-compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css

what file in visual studio code.

Regards,
Choirul


Alex Harui-2 wrote
> Do other mx tags work?  You might need to use nightly builds/snapshot
> builds to get mx:HTTPService.
> 
> HTH,
> -Alex
> 
> From: Carlos Rovira &lt;

> carlosrovira@

> &gt;
> Reply-To: "

> users@.apache

> " &lt;

> users@.apache

> &gt;
> Date: Monday, April 15, 2019 at 2:45 AM
> To: "

> users@.apache

> " &lt;

> users@.apache

> &gt;
> Subject: Re: convert mx:HTTPService to js:HTTPService
> 
> I was checking my config and don't see other needs
> 
> just this:
> -compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css
> but is to avoid
> css conflicts with MXRoyale until we get break MXRoyale in various SWCs
> 
> 
> 
> 
> 
> El lun., 15 abr. 2019 a las 11:31, Carlos Rovira (&lt;

> carlosrovira@

> &lt;mailto:

> carlosrovira@

> &gt;>) escribió:
> Do you have mx namespace added to the MXML file?
> 
> xmlns:mx="library://ns.apache.org/royale/mx&lt;https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fns.apache.org%2Froyale%2Fmx&amp;data=02%7C01%7Caharui%40adobe.com%7C3a667d0de19e4a9d0d2e08d6c1871a16%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636909183339464682&amp;sdata=rNy4rwS%2BZI%2F8m%2F1GhrjoNVur97gMV%2BtzP%2FWTHqCVjPw%3D&amp;reserved=0&gt;"
> 
> El lun., 15 abr. 2019 a las 11:16, choirul anam (&lt;

> ichsan.anam@

> &lt;mailto:

> ichsan.anam@

> &gt;>) escribió:
> I am using Visual Studio Code with ActionScript & MXML Extension.
> 
> Trying to add your code to my pom.xml, but when i declare 
> <mx:HTTPService>
> compiler said : This tag is unexpected. It will be ignored.(1443)
> &lt;http://apache-royale-users.20374.n8.nabble.com/file/t62/Untitled.png&lt;https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-users.20374.n8.nabble.com%2Ffile%2Ft62%2FUntitled.png&amp;data=02%7C01%7Caharui%40adobe.com%7C3a667d0de19e4a9d0d2e08d6c1871a16%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636909183339464682&amp;sdata=ikdD39K7bC2NQgo54jD1d5surL7HoyDg4wbtUw9MWoE%3D&amp;reserved=0&gt;>
> 
> 
> 
> 
> 
> 
> 
> --
> Sent from:
> http://apache-royale-users.20374.n8.nabble.com/&lt;https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-users.20374.n8.nabble.com%2F&amp;data=02%7C01%7Caharui%40adobe.com%7C3a667d0de19e4a9d0d2e08d6c1871a16%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636909183339474687&amp;sdata=Yx87bkTrGx1AyndPXaa702U31KH0ongL3ot9knpk79A%3D&amp;reserved=0&gt;
> 
> 
> --
> Carlos Rovira
> http://about.me/carlosrovira&lt;https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&amp;data=02%7C01%7Caharui%40adobe.com%7C3a667d0de19e4a9d0d2e08d6c1871a16%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636909183339474687&amp;sdata=6Bkb9TotOqQAmhjaPZ4v5mE9YpWGKoDgyZURFAK674U%3D&amp;reserved=0&gt;
> 
> 
> 
> --
> Carlos Rovira
> http://about.me/carlosrovira&lt;https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&amp;data=02%7C01%7Caharui%40adobe.com%7C3a667d0de19e4a9d0d2e08d6c1871a16%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636909183339484691&amp;sdata=uLyQrH1VU6TYiq7CZQNFd%2BMoaQrarCbnTZUHxbQHA54%3D&amp;reserved=0&gt;





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

Re: convert mx:HTTPService to js:HTTPService

Posted by Alex Harui <ah...@adobe.com>.
Do other mx tags work?  You might need to use nightly builds/snapshot builds to get mx:HTTPService.

HTH,
-Alex

From: Carlos Rovira <ca...@apache.org>
Reply-To: "users@royale.apache.org" <us...@royale.apache.org>
Date: Monday, April 15, 2019 at 2:45 AM
To: "users@royale.apache.org" <us...@royale.apache.org>
Subject: Re: convert mx:HTTPService to js:HTTPService

I was checking my config and don't see other needs

just this: -compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css
but is to avoid
css conflicts with MXRoyale until we get break MXRoyale in various SWCs





El lun., 15 abr. 2019 a las 11:31, Carlos Rovira (<ca...@apache.org>>) escribió:
Do you have mx namespace added to the MXML file?

xmlns:mx="library://ns.apache.org/royale/mx<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fns.apache.org%2Froyale%2Fmx&data=02%7C01%7Caharui%40adobe.com%7C3a667d0de19e4a9d0d2e08d6c1871a16%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636909183339464682&sdata=rNy4rwS%2BZI%2F8m%2F1GhrjoNVur97gMV%2BtzP%2FWTHqCVjPw%3D&reserved=0>"

El lun., 15 abr. 2019 a las 11:16, choirul anam (<ic...@gmail.com>>) escribió:
I am using Visual Studio Code with ActionScript & MXML Extension.

Trying to add your code to my pom.xml, but when i declare <mx:HTTPService>
compiler said : This tag is unexpected. It will be ignored.(1443)
<http://apache-royale-users.20374.n8.nabble.com/file/t62/Untitled.png<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-users.20374.n8.nabble.com%2Ffile%2Ft62%2FUntitled.png&data=02%7C01%7Caharui%40adobe.com%7C3a667d0de19e4a9d0d2e08d6c1871a16%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636909183339464682&sdata=ikdD39K7bC2NQgo54jD1d5surL7HoyDg4wbtUw9MWoE%3D&reserved=0>>







--
Sent from: http://apache-royale-users.20374.n8.nabble.com/<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-users.20374.n8.nabble.com%2F&data=02%7C01%7Caharui%40adobe.com%7C3a667d0de19e4a9d0d2e08d6c1871a16%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636909183339474687&sdata=Yx87bkTrGx1AyndPXaa702U31KH0ongL3ot9knpk79A%3D&reserved=0>


--
Carlos Rovira
http://about.me/carlosrovira<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7C3a667d0de19e4a9d0d2e08d6c1871a16%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636909183339474687&sdata=6Bkb9TotOqQAmhjaPZ4v5mE9YpWGKoDgyZURFAK674U%3D&reserved=0>



--
Carlos Rovira
http://about.me/carlosrovira<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7C3a667d0de19e4a9d0d2e08d6c1871a16%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636909183339484691&sdata=uLyQrH1VU6TYiq7CZQNFd%2BMoaQrarCbnTZUHxbQHA54%3D&reserved=0>


Re: convert mx:HTTPService to js:HTTPService

Posted by Carlos Rovira <ca...@apache.org>.
I was checking my config and don't see other needs

just this:
-compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css
but is to avoid css conflicts with MXRoyale until we get break MXRoyale in
various SWCs



El lun., 15 abr. 2019 a las 11:31, Carlos Rovira (<ca...@apache.org>)
escribió:

> Do you have mx namespace added to the MXML file?
>
> xmlns:mx="library://ns.apache.org/royale/mx"
>
> El lun., 15 abr. 2019 a las 11:16, choirul anam (<ic...@gmail.com>)
> escribió:
>
>> I am using Visual Studio Code with ActionScript & MXML Extension.
>>
>> Trying to add your code to my pom.xml, but when i declare <mx:HTTPService>
>> compiler said : This tag is unexpected. It will be ignored.(1443)
>> <http://apache-royale-users.20374.n8.nabble.com/file/t62/Untitled.png>
>>
>>
>>
>>
>>
>>
>>
>> --
>> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>>
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
>

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

Re: convert mx:HTTPService to js:HTTPService

Posted by choirul anam <ic...@gmail.com>.
Yes



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

Re: convert mx:HTTPService to js:HTTPService

Posted by Carlos Rovira <ca...@apache.org>.
Do you have mx namespace added to the MXML file?

xmlns:mx="library://ns.apache.org/royale/mx"

El lun., 15 abr. 2019 a las 11:16, choirul anam (<ic...@gmail.com>)
escribió:

> I am using Visual Studio Code with ActionScript & MXML Extension.
>
> Trying to add your code to my pom.xml, but when i declare <mx:HTTPService>
> compiler said : This tag is unexpected. It will be ignored.(1443)
> <http://apache-royale-users.20374.n8.nabble.com/file/t62/Untitled.png>
>
>
>
>
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


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

Re: convert mx:HTTPService to js:HTTPService

Posted by choirul anam <ic...@gmail.com>.
I am using Visual Studio Code with ActionScript & MXML Extension.

Trying to add your code to my pom.xml, but when i declare <mx:HTTPService>
compiler said : This tag is unexpected. It will be ignored.(1443)
<http://apache-royale-users.20374.n8.nabble.com/file/t62/Untitled.png> 







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

Re: convert mx:HTTPService to js:HTTPService

Posted by Carlos Rovira <ca...@apache.org>.
In my app maven pom I have this:

<dependency>
<groupId>org.apache.royale.framework</groupId>
<artifactId>MXRoyale</artifactId>
<version>${royale.framework.version}</version>
<type>swc</type>
<classifier>swf</classifier>
</dependency>
<dependency>
<groupId>org.apache.royale.framework</groupId>
<artifactId>MXRoyale</artifactId>
<version>${royale.framework.version}</version>
<type>swc</type>
<classifier>js</classifier>
</dependency>

Are you using ANT or other way?

I think others use

"additionalOptions": "+configname=flex"

but I think that option bring other defaults too so I don't use it.
I prefer to stick with Royale default config and just add MXRoyale.swc lib
to the mix to use that classes




El lun., 15 abr. 2019 a las 9:56, choirul anam (<ic...@gmail.com>)
escribió:

> i use royale royale 0.9.6 that already have MXRoyale.swc file in the :
>
> *apache-royale-0.9.6-bin-js-swf\royale-asjs\frameworks\js\libs*
>
> Sholud i add that file to my project folder too (is there any configuration
> file myabe)?
>
> Regards,
> Choirul
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


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

Re: convert mx:HTTPService to js:HTTPService

Posted by choirul anam <ic...@gmail.com>.
i use royale royale 0.9.6 that already have MXRoyale.swc file in the :

*apache-royale-0.9.6-bin-js-swf\royale-asjs\frameworks\js\libs*

Sholud i add that file to my project folder too (is there any configuration
file myabe)? 

Regards,
Choirul



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

Re: convert mx:HTTPService to js:HTTPService

Posted by Carlos Rovira <ca...@apache.org>.
Hi Choriul,

talking from my experience using RemoteObject, HTTPService should be the
same. You add MXRoyale.swc to your project to make the MX HTTPService class
available, then instantiate HTTPService as you use to do in flex, in MXML
or AS3.

Can you try and let us now if that works for you?


El lun., 15 abr. 2019 a las 6:39, choirul anam (<ic...@gmail.com>)
escribió:

> How to use MX Emulation of HTTPService together with jewel?
>
> I can't see in the example folder of royale how to send POST data using
> js:HTTPService
>
> Please help.
> Regards,
> Choirul
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


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

Re: convert mx:HTTPService to js:HTTPService

Posted by choirul anam <ic...@gmail.com>.
How to use MX Emulation of HTTPService together with jewel?

I can't see in the example folder of royale how to send POST data using
js:HTTPService

Please help.
Regards,
Choirul



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

Re: convert mx:HTTPService to js:HTTPService

Posted by Carlos Rovira <ca...@apache.org>.
Hi,

most of the time, Royale classes are not exactly as MX classes, since in
Royale we try to stick with PAYG concepts and could not have APIs that are
for "just in case" scenarios.
Being said that don't know if "request" is something is missing or is
something Alex and others want to implement in the HTTPService royale
version. But if you want 1:1 compatibility maybe is better to use the MX
version.

IMHO, I use to work with new royale UI set concepts (Jewel) but combine
with other "infrastructure" code that is in MX emulation (mostly AMF,
HTTPService, Formatters,...), so migration is more easy, but leverage the
new things we have today in browsers and interfaces.



El vie., 12 abr. 2019 a las 10:18, choirul anam (<ic...@gmail.com>)
escribió:

> How to convert mx:HTTPService to js:HTTPService ?
>
> <mx:HTTPService id="save_data" url="some/php/service.php" useProxy="false"
> method="POST"
>   resultFormat="text" result="save_data_resultHandler(event)"
> showBusyCursor="true">
>         <mx:request xmlns="">
>            <param1>{value1}</param1>
>            <param2>{value2}</param2>
>            <param3>{value3}</param3>
>         </mx:request>
> </mx:HTTPService>
>
> I don't see <js:request>
>
> Regards,
> Choirul
>
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


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