convert mx:HTTPService to js:HTTPService

classic Classic list List threaded Threaded
26 messages Options
12
Reply | Threaded
Open this post in threaded view
|

convert mx:HTTPService to js:HTTPService

choirul anam
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/
Reply | Threaded
Open this post in threaded view
|

Re: convert mx:HTTPService to js:HTTPService

Carlos Rovira-2
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 (<[hidden email]>) 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/


--
Reply | Threaded
Open this post in threaded view
|

Re: convert mx:HTTPService to js:HTTPService

choirul anam
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/
Reply | Threaded
Open this post in threaded view
|

Re: convert mx:HTTPService to js:HTTPService

Carlos Rovira-2
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 (<[hidden email]>) 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/


--
Reply | Threaded
Open this post in threaded view
|

Re: convert mx:HTTPService to js:HTTPService

choirul anam
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/
Reply | Threaded
Open this post in threaded view
|

Re: convert mx:HTTPService to js:HTTPService

Carlos Rovira-2
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 (<[hidden email]>) 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/


--
Reply | Threaded
Open this post in threaded view
|

Re: convert mx:HTTPService to js:HTTPService

choirul anam
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/
Reply | Threaded
Open this post in threaded view
|

Re: convert mx:HTTPService to js:HTTPService

Carlos Rovira-2
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 (<[hidden email]>) 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/


--
Reply | Threaded
Open this post in threaded view
|

Re: convert mx:HTTPService to js:HTTPService

Carlos Rovira-2
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 (<[hidden email]>) 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 (<[hidden email]>) 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/


--


--
Reply | Threaded
Open this post in threaded view
|

Re: convert mx:HTTPService to js:HTTPService

Alex Harui-2

Do other mx tags work?  You might need to use nightly builds/snapshot builds to get mx:HTTPService.

 

HTH,

-Alex

 

From: Carlos Rovira <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Monday, April 15, 2019 at 2:45 AM
To: "[hidden email]" <[hidden email]>
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 (<[hidden email]>) 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 (<[hidden email]>) 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

 


 

--

Carlos Rovira

 

Reply | Threaded
Open this post in threaded view
|

Re: convert mx:HTTPService to js:HTTPService

choirul anam
This post was updated on .
In reply to this post by Carlos Rovira-2
Yes



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Carlos Rovira-2 wrote
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 (<[hidden email]>)
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
Reply | Threaded
Open this post in threaded view
|

Re: convert mx:HTTPService to js:HTTPService

choirul anam
In reply to this post by Alex Harui-2
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/
Reply | Threaded
Open this post in threaded view
|

Re: convert mx:HTTPService to js:HTTPService

Carlos Rovira-2
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 (<[hidden email]>) 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/


--
Reply | Threaded
Open this post in threaded view
|

Re: convert mx:HTTPService to js:HTTPService

choirul anam
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/
Reply | Threaded
Open this post in threaded view
|

Re: convert mx:HTTPService to js:HTTPService

Carlos Rovira-2
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 (<[hidden email]>) 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/


--
Reply | Threaded
Open this post in threaded view
|

Re: convert mx:HTTPService to js:HTTPService

choirul anam
In reply to this post by choirul anam
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/
Reply | Threaded
Open this post in threaded view
|

Re: convert mx:HTTPService to js:HTTPService

Alex Harui-2
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" <[hidden email]> 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
   

Reply | Threaded
Open this post in threaded view
|

Re: convert mx:HTTPService to js:HTTPService

choirul anam
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/
Reply | Threaded
Open this post in threaded view
|

Re: convert mx:HTTPService to js:HTTPService

Alex Harui-2
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" <[hidden email]> 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
   

Reply | Threaded
Open this post in threaded view
|

Re: convert mx:HTTPService to js:HTTPService

Carlos Rovira-2
Hi Choriul,

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


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 (<[hidden email]>) 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" <[hidden email]> 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




--
12