options for deriving HTML webpages from Flex app?

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

options for deriving HTML webpages from Flex app?

gkk gb

I have a Flex app 4.12 that does a lot of data crunching. If I want to create an Apache Royale app that is far simpler than the Flex app but relies on the Flex app's code for data crunching, what's options do I have to do this? 


The Royale app (HTML output) would accept some inputs from the user then crunch some data and return the results in a table, for example. Is it possible to have a single code-base that contains both Flex and Royale apps, where the first exports to Air and the second to HTML? Or, should I copy the Flex codebase and hack it to create the Royale app (if so, can the two projects share the same libraries)? etc. 

Reply | Threaded
Open this post in threaded view
|

Re: options for deriving HTML webpages from Flex app?

Carlos Rovira-2
Hi,

there's no one path for any of us migrating. So for example, Alex (Harui) did a great work with emulation components (MXRoyale library) in Royale to make Flex migration as easy as possible. I think the example is in Tour De Flex, he migrated that app with minimum changes. Maybe is not 100% same code as Flex but very close. So you could try that alternative.

In the other hand we have Jewel UI set that are a modern set of components with most of the ones you know from MX/Spark but some new ones for designed to use in mobile devices. We migrate a huge app where all logic was mostly the same but we need to migrate the UI and tweak a little bit to conform with Jewel UI Set. So around 70-80% of code and structure from Flex was valid.

About data crunching, since there's no more info about it I assume AS3 code. All AS3 code can run as is in most cases always not depend in flash player APIs (I-e: PureMVC works the same since is pure AS3 with no Flash Player dependencies). If you use flash apis, then you need to try to change APIs for royale ones (most of the times it will be possible).

HTH

Carlos



El vie., 19 jul. 2019 a las 17:14, gkk gb (<[hidden email]>) escribió:

I have a Flex app 4.12 that does a lot of data crunching. If I want to create an Apache Royale app that is far simpler than the Flex app but relies on the Flex app's code for data crunching, what's options do I have to do this? 


The Royale app (HTML output) would accept some inputs from the user then crunch some data and return the results in a table, for example. Is it possible to have a single code-base that contains both Flex and Royale apps, where the first exports to Air and the second to HTML? Or, should I copy the Flex codebase and hack it to create the Royale app (if so, can the two projects share the same libraries)? etc. 



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

Re: options for deriving HTML webpages from Flex app?

gkk gb

Thanks for that. Yes, all data crunching is in AS3 and minimal Flash API code. I'm mainly worried about MXML and how it connects to the rest of the app. What do you recommend for modifying the code base...


> Is it possible to have a single code-base that contains both Flex and Royale apps, where the first exports to Air and the second to HTML? Or, should I copy the Flex codebase and hack it to create the Royale app (if so, can the two projects share the same libraries)? etc. 


On July 19, 2019 at 2:00 PM Carlos Rovira <[hidden email]> wrote:

Hi,

there's no one path for any of us migrating. So for example, Alex (Harui) did a great work with emulation components (MXRoyale library) in Royale to make Flex migration as easy as possible. I think the example is in Tour De Flex, he migrated that app with minimum changes. Maybe is not 100% same code as Flex but very close. So you could try that alternative.

In the other hand we have Jewel UI set that are a modern set of components with most of the ones you know from MX/Spark but some new ones for designed to use in mobile devices. We migrate a huge app where all logic was mostly the same but we need to migrate the UI and tweak a little bit to conform with Jewel UI Set. So around 70-80% of code and structure from Flex was valid.

About data crunching, since there's no more info about it I assume AS3 code. All AS3 code can run as is in most cases always not depend in flash player APIs (I-e: PureMVC works the same since is pure AS3 with no Flash Player dependencies). If you use flash apis, then you need to try to change APIs for royale ones (most of the times it will be possible).

HTH

Carlos



El vie., 19 jul. 2019 a las 17:14, gkk gb (< [hidden email]>) escribió:

I have a Flex app 4.12 that does a lot of data crunching. If I want to create an Apache Royale app that is far simpler than the Flex app but relies on the Flex app's code for data crunching, what's options do I have to do this? 


The Royale app (HTML output) would accept some inputs from the user then crunch some data and return the results in a table, for example. Is it possible to have a single code-base that contains both Flex and Royale apps, where the first exports to Air and the second to HTML? Or, should I copy the Flex codebase and hack it to create the Royale app (if so, can the two projects share the same libraries)? etc. 



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

Re: options for deriving HTML webpages from Flex app?

Alex Harui-2

We elected to not make Royale 100% source compatible with Flex, so it isn’t truly possible to have one code base be compiled by both the Flex SDK and Royale SDK.  The main reason is that there are Flash APIs that are not available in Royale at this time.

 

It should be possible to have one code base that uses Royale to compile to AIR and to the browser.  TourDeFlex was working.  I haven’t checked the SWF version in a while, and we have not invested energy in making the UI appear as “same as possible” between SWF and Browser, but volunteers are welcome to invest in that.

 

If you have good separation of UI from “business logic”, then any shared code should be managed in a library.  If you used Royale to build a library of shared data crunching code, it should be usable in both Flex and Royale.  I don’t think anyone has tried it, but it would be interesting to see what it would take to make it work if it doesn’t.

 

HTH,

-Alex

 

From: gkk gb <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>, gkk gb <[hidden email]>
Date: Friday, July 19, 2019 at 5:24 PM
To: "[hidden email]" <[hidden email]>, Carlos Rovira <[hidden email]>
Subject: Re: options for deriving HTML webpages from Flex app?

 

Thanks for that. Yes, all data crunching is in AS3 and minimal Flash API code. I'm mainly worried about MXML and how it connects to the rest of the app. What do you recommend for modifying the code base...

 

> Is it possible to have a single code-base that contains both Flex and Royale apps, where the first exports to Air and the second to HTML? Or, should I copy the Flex codebase and hack it to create the Royale app (if so, can the two projects share the same libraries)? etc. 

 

On July 19, 2019 at 2:00 PM Carlos Rovira <[hidden email]> wrote:

Hi,

 

there's no one path for any of us migrating. So for example, Alex (Harui) did a great work with emulation components (MXRoyale library) in Royale to make Flex migration as easy as possible. I think the example is in Tour De Flex, he migrated that app with minimum changes. Maybe is not 100% same code as Flex but very close. So you could try that alternative.

 

In the other hand we have Jewel UI set that are a modern set of components with most of the ones you know from MX/Spark but some new ones for designed to use in mobile devices. We migrate a huge app where all logic was mostly the same but we need to migrate the UI and tweak a little bit to conform with Jewel UI Set. So around 70-80% of code and structure from Flex was valid.

 

About data crunching, since there's no more info about it I assume AS3 code. All AS3 code can run as is in most cases always not depend in flash player APIs (I-e: PureMVC works the same since is pure AS3 with no Flash Player dependencies). If you use flash apis, then you need to try to change APIs for royale ones (most of the times it will be possible).

 

HTH

 

Carlos

 

 

 

El vie., 19 jul. 2019 a las 17:14, gkk gb (< [hidden email]>) escribió:

I have a Flex app 4.12 that does a lot of data crunching. If I want to create an Apache Royale app that is far simpler than the Flex app but relies on the Flex app's code for data crunching, what's options do I have to do this? 

 

The Royale app (HTML output) would accept some inputs from the user then crunch some data and return the results in a table, for example. Is it possible to have a single code-base that contains both Flex and Royale apps, where the first exports to Air and the second to HTML? Or, should I copy the Flex codebase and hack it to create the Royale app (if so, can the two projects share the same libraries)? etc. 


 

--

Carlos Rovira