You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Sobit Thapa <st...@plslogistics.com> on 2020/06/18 19:23:09 UTC
Need help getting started!
Team, I have a legacy Flex application to transport to Royale/JS as Flash Player is dying soon.
I am following the documentation, but found it is little hard to follow. I have commented out all Flash imports and getting thousands of errors as it seems like my application uses them heavily.
For example, basic imports like
//import flash.utils.Timer;
//import flash.events.TimerEvent;
Are these available as Emulation components in Royale? Any suggestion how can I use them if any (eg: any changes needed in Ant build scripts other than loading royale-js libs and flex-configs?
Also, getting tons of errors related to mx imports.
REALLY APPRECIATE YOUR TIMELEY HELP as we are evaluating different option and if this POC succeeds, we might be able to stay with Flex/Royale.
Thanks,
Sobit
RE: Need help getting started!
Posted by Yishay Weiss <yi...@hotmail.com>.
Another thing that could be useful is to generate an API report [1] for your Flex app and post it here.
The advantage of that over compiling your current code in Royale is that you’ll see a complete picture of the API calls on the first run.
Hope this helps,
Yishay
[1] https://github.com/apache/royale-asjs/wiki/Generating-an-API-Report
From: Harbs<ma...@gmail.com>
Sent: Friday, June 19, 2020 8:53 AM
To: Apache Royale Development<ma...@royale.apache.org>
Subject: Re: Need help getting started!
Here’s the method I used:
1. Use an IDE Like VS Code with Josh’s extension or Moonshine.
2. The “Problems” window will show you your errors. Use that to jump into the location of your errors.
3. For bad imports, just delete them.
4. Trigger code hinting (i.e. Control Space on Mac in VS Code) and select the version provided for you that best matches. This will bring in the correct imports.
5. There will be a certain number of errors which don’t have a clear simple replacement and you’ll need to figure out how to fix those, but the above steps should fix the vast majority of the errors.
I found getting rid of thousands of errors relatively quickly oddly satisfying. ;-)
HTH,
Harbs
> On Jun 18, 2020, at 10:23 PM, Sobit Thapa <st...@plslogistics.com> wrote:
>
> I am following the documentation, but found it is little hard to follow. I have commented out all Flash imports and getting thousands of errors as it seems like my application uses them heavily.
Re: Need help getting started!
Posted by Harbs <ha...@gmail.com>.
Here’s the method I used:
1. Use an IDE Like VS Code with Josh’s extension or Moonshine.
2. The “Problems” window will show you your errors. Use that to jump into the location of your errors.
3. For bad imports, just delete them.
4. Trigger code hinting (i.e. Control Space on Mac in VS Code) and select the version provided for you that best matches. This will bring in the correct imports.
5. There will be a certain number of errors which don’t have a clear simple replacement and you’ll need to figure out how to fix those, but the above steps should fix the vast majority of the errors.
I found getting rid of thousands of errors relatively quickly oddly satisfying. ;-)
HTH,
Harbs
> On Jun 18, 2020, at 10:23 PM, Sobit Thapa <st...@plslogistics.com> wrote:
>
> I am following the documentation, but found it is little hard to follow. I have commented out all Flash imports and getting thousands of errors as it seems like my application uses them heavily.
Re: Need help getting started!
Posted by Alex Harui <ah...@adobe.com.INVALID>.
Hi Sobit,
Many people did use Flash imports in their Flex apps and many are now paying the price for it. It is sort of like writing low-level Windows API calls and then needing the app to work on Mac.
The archives for the mailing lists are here:
https://lists.apache.org/list.html?dev@royale.apache.org
https://lists.apache.org/list.html?users@royale.apache.org
You can sometimes find answers there as well. In the case of TimerEvent, it was discussed here:
https://lists.apache.org/thread.html/a46b1914ff50343dc8ec0b043a94ad4ed0d94b0f4137010ae7b26f0a%40%3Cusers.royale.apache.org%3E
And the answer is:
For flash.events.TimerEvent and flash.utils.Timer, the replacement is:
Replace flash.utils.Timer with org.apache.royale.utils.Timer.
Replace TimerEvent with org.apache.royale.events.Event
Replace TimerEvent.TIMER with org.apache.royale.utils.Timer.TIMER
HTH
-Alex
On 6/18/20, 12:23 PM, "Sobit Thapa" <st...@plslogistics.com> wrote:
Team, I have a legacy Flex application to transport to Royale/JS as Flash Player is dying soon.
I am following the documentation, but found it is little hard to follow. I have commented out all Flash imports and getting thousands of errors as it seems like my application uses them heavily.
For example, basic imports like
//import flash.utils.Timer;
//import flash.events.TimerEvent;
Are these available as Emulation components in Royale? Any suggestion how can I use them if any (eg: any changes needed in Ant build scripts other than loading royale-js libs and flex-configs?
Also, getting tons of errors related to mx imports.
REALLY APPRECIATE YOUR TIMELEY HELP as we are evaluating different option and if this POC succeeds, we might be able to stay with Flex/Royale.
Thanks,
Sobit