The reason I ask is we have some functionality like this in the existing .as3


var bmpData:BitmapData = ImageSnapshot.captureBitmapData(some obj as 
mx.Containers.ViewStack);



do we have an equivalent class in Royale for this implementation
https://github.com/apache/flex-sdk/blob/master/frameworks/projects/framework/src/mx/graphics/ImageSnapshot.as





Thanks



[blank.gif]

Anil Guntur
Architect, Radiology Workflow
(858) 267-5072
(858) 922-6402
[email protected]<mailto:[email protected]>

[WH_Email_Sig_Logo.png]<https://www.ibm.com/watson/health/>



From: "Anil Guntur - [email protected]" <[email protected]>
Reply-To: "[email protected]" <[email protected]>
Date: Thursday, June 25, 2020 at 8:28 AM
To: "[email protected]" <[email protected]>
Subject: [EXTERNAL] RE: First time using Apache Royale

Thank you very much Piotr.. This is what I was looking for.. will explore and 
post questions as I go through the conversion exercise




From: Piotr Zarzycki <[email protected]>
Reply-To: "[email protected]" <[email protected]>
Date: Thursday, June 25, 2020 at 3:54 AM
To: "[email protected]" <[email protected]>
Subject: [EXTERNAL] Re: First time using Apache Royale

Hi Anil,

To addition of what Harbs provided I would like to answer to your question 
about list of components. We don't have anywhere documented it straightforward. 
However you can look into ASDoc app [1] and search there. Another option is 
just take a look into the Royale code where there is sort of a list what has 
been emulated.

MX components [2]
Spark components [3]

I hope it helps.

[1] 
http://apacheroyaleci2.westus2.cloudapp.azure.com:8080/job/Royale_ASDoc_Example/lastSuccessfulBuild/artifact/examples/royale/ASDoc/bin/js-release/index.html#!mx.collections<https://urldefense.proofpoint.com/v2/url?u=http-3A__apacheroyaleci2.westus2.cloudapp.azure.com-3A8080_job_Royale-5FASDoc-5FExample_lastSuccessfulBuild_artifact_examples_royale_ASDoc_bin_js-2Drelease_index.html-23-21mx.collections&d=DwMGaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=9ECLToI-QOU_Ov6Tjr8kHGQhTDrlB2VQIbfcQxNoCMc&m=j0Bvx3HXfCFK5YPv5jQUwAb-k5WdzGPC0n0uDq2HI7g&s=dREBQ5rf9cm287RnDBvGD6-UmS_s4iQ0GaOnA4VYOfE&e=>
[2] 
https://github.com/apache/royale-asjs/blob/develop/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_apache_royale-2Dasjs_blob_develop_frameworks_projects_MXRoyale_src_main_royale_MXRoyaleClasses.as&d=DwMGaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=9ECLToI-QOU_Ov6Tjr8kHGQhTDrlB2VQIbfcQxNoCMc&m=j0Bvx3HXfCFK5YPv5jQUwAb-k5WdzGPC0n0uDq2HI7g&s=aRP-UAIIU0OqCNNOMvDHmL3_IOLZfoFuCroPi52tzs0&e=>
[3] 
https://github.com/apache/royale-asjs/blob/develop/frameworks/projects/SparkRoyale/src/main/royale/SparkRoyaleClasses.as<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_apache_royale-2Dasjs_blob_develop_frameworks_projects_SparkRoyale_src_main_royale_SparkRoyaleClasses.as&d=DwMGaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=9ECLToI-QOU_Ov6Tjr8kHGQhTDrlB2VQIbfcQxNoCMc&m=j0Bvx3HXfCFK5YPv5jQUwAb-k5WdzGPC0n0uDq2HI7g&s=MWMox-O7vBkmG3xdUWJfaVZADraR49ITAJ_OpRI59_M&e=>

Thanks,
Piotr

śr., 24 cze 2020 o 08:39 Harbs 
<[email protected]<mailto:[email protected]>> napisał(a):
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://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_unhurdle_spectrum-2Droyale&d=DwMGaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=9ECLToI-QOU_Ov6Tjr8kHGQhTDrlB2VQIbfcQxNoCMc&m=j0Bvx3HXfCFK5YPv5jQUwAb-k5WdzGPC0n0uDq2HI7g&s=OgX8elCbS6uLFvJd_6zqPgr1VXKIjXY4vS7vnu9h6VI&e=>
 
https://unhurdle.github.io/spectrum-royale/<https://urldefense.proofpoint.com/v2/url?u=https-3A__unhurdle.github.io_spectrum-2Droyale_&d=DwMGaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=9ECLToI-QOU_Ov6Tjr8kHGQhTDrlB2VQIbfcQxNoCMc&m=j0Bvx3HXfCFK5YPv5jQUwAb-k5WdzGPC0n0uDq2HI7g&s=CbDgFzRa0P5JKz003Y9n_l72MwmBr1bQmVEKwjdwwWQ&e=>
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]<mailto:[email protected]> 
<[email protected]<mailto:[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



--

Piotr Zarzycki

Patreon: 
https://www.patreon.com/piotrzarzycki<https://urldefense.proofpoint.com/v2/url?u=https-3A__www.patreon.com_piotrzarzycki&d=DwMGaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=9ECLToI-QOU_Ov6Tjr8kHGQhTDrlB2VQIbfcQxNoCMc&m=j0Bvx3HXfCFK5YPv5jQUwAb-k5WdzGPC0n0uDq2HI7g&s=zVFMovhtEAMcITwyJDIGBKU_C8CNNbcQe8LFpCDieI0&e=>

Reply via email to