Some points to consider: * Any “generic” AS3 code should work with no modifications. This likely includes business logic, plumbing such as PureMVC, etc. * You will need to modify any code which has a flash package dependency. Many classes such as Event and IEventDispatcher have direct counterparts in Royale, so you can simply change your imports to reference the Royale versions. * You will need to make a decision on how to handle Flex code.
As far as Flex code goes, you have options: 1. There are emulation components which give you more-or-less the functionality and look of MX and Spark Flex 4 components. This component set is not complete, but it’s pretty close. You’ll likely need to do some tweaking, but this should give you more-or-less the same UI in HTML with the least effort. 2. You can choose to change the Flex UI for a new more modern one. If you choose to change the UI, it’ll be easiest if you have good separation of model and view. There’s a number of UI opttions: 1. You can use Basic components, but you’ll need to set styling yourself to get the look you want. 2. You can use Jewel, which is a CSS-themed component set designed for Royale. You can pick a color theme with Jewel as well. 3. There’s an MDL component set which uses MDL css. 4. You can use other styling such as Spectrum https://github.com/unhurdle/spectrum-royale https://unhurdle.github.io/spectrum-royale/ 5. If you have your own CSS, you can create your own component set. You can use Spectrum as a model on how to do that. HTH, Harbs > On Jun 24, 2020, at 7:04 AM, Anil Guntur - [email protected] > <[email protected]> wrote: > > Hello, > We have a big Flex project with action script (compiled to a SWF). Looking at > ways to convert to a JS/HTML version. Came across Apache Royale. Could anyone > give me a few pointers on where to look for things like > Flex/ActionScript equivalent To Royale/JavaScript library. > what should we consider before starting the conversion > > I have played with the sample project and configured Visual studio Code with > Royale 0.9.7 SDK. > > Thanks > Anil
