royale-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: Work on Emulation
Date Tue, 19 Jun 2018 15:55:52 GMT
Hi Alina,

Why did you want see the source?  I don’t think we want to see it.  The actual code that
runs should be based on Royale code.

My 2 cents,
-Alex

From: Harbs <harbs.lists@gmail.com>
Reply-To: "users@royale.apache.org" <users@royale.apache.org>
Date: Tuesday, June 19, 2018 at 6:08 AM
To: "users@royale.apache.org" <users@royale.apache.org>
Subject: Re: Work on Emulation

We cannot use Flash source code. It’s proprietary licensed code.

On Jun 19, 2018, at 2:20 PM, Alina Kazi <alina.kazi@d-bz.com<mailto:alina.kazi@d-bz.com>>
wrote:

Thanks Alex & Harbs
I can’t find Flash Source I searched it on internet a lot.
Could someone please share link for the Flash API’s Source.

-Alina

From: Harbs [mailto:harbs.lists@gmail.com]
Sent: Tuesday, June 19, 2018 12:40 PM
To: users@royale.apache.org<mailto:users@royale.apache.org>
Subject: Re: Work on Emulation

Some more thoughts below.

We have the following:
org.apache.royale.net.URLLoader
org.apache.royale.net.URLRequest
CapsStyle and JointStyle consts are combined into org.apache.royale.graphics.LineStyle

Also check out ObjectMap as a possible replacement for Dictionary. But if the keys are strings,
a simple object is likely best.

There’s no direct equivalent to LineScaleMode in HTML. The closest you have in SVG is vector-effect
which can be set to non-scaling-stroke.[1] Canvas is pretty ugly.[2]

SpreadMethod is another one which doesn’t translate well. You have linear-gradient[3] and
repeating-linear-gradient[4], but I don’t think there’s anything like REFLECT.

Harbs

[1]https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/vector-effect<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FWeb%2FSVG%2FAttribute%2Fvector-effect&data=02%7C01%7Caharui%40adobe.com%7Cd534de5e4da040ddd4df08d5d5e5b7e7%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636650104981721172&sdata=4bjtyyvTLdiLIcJIIYgm5ncV8tnZR9OmvHoFCxXooDk%3D&reserved=0>
[2]https://stackoverflow.com/questions/3794354/html5-canvas-prevent-linewidth-scaling<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F3794354%2Fhtml5-canvas-prevent-linewidth-scaling&data=02%7C01%7Caharui%40adobe.com%7Cd534de5e4da040ddd4df08d5d5e5b7e7%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636650104981721172&sdata=VobQCwES4TtQz4S58MeU4mDLJPHFFBKUOE%2FXXIMn834%3D&reserved=0>
[3]https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FWeb%2FCSS%2Flinear-gradient&data=02%7C01%7Caharui%40adobe.com%7Cd534de5e4da040ddd4df08d5d5e5b7e7%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636650104981721172&sdata=%2BnP0eXNuea5evG7riP38Rb1k2fpZjW8Sz8wNxPq4A1c%3D&reserved=0>
[4]https://developer.mozilla.org/en-US/docs/Web/CSS/repeating-linear-gradient<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FWeb%2FCSS%2Frepeating-linear-gradient&data=02%7C01%7Caharui%40adobe.com%7Cd534de5e4da040ddd4df08d5d5e5b7e7%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636650104981721172&sdata=0NXr83vkIG8rsbds7OMnuWl5OhRkfgiHXF1jFFxLx48%3D&reserved=0>

On Jun 19, 2018, at 10:12 AM, Alex Harui <aharui@adobe.com<mailto:aharui@adobe.com>>
wrote:

Hi Alina,

What to do about the flash classes depends a bit on how they are used.  If they are not used
often, I would try to replace their use with something else.  I’ve grouped the list of Flash
APIs into rough categories:

Do you really need these? What is it used for?
flash.utils.Dictionary;
flash.display.CapsStyle;
flash.display.JointStyle;
flash.display.InterpolationMethod;
flash.display.LineScaleMode;
flash.display.SpreadMethod;
flash.filters.*;
flash.filters.DropShadowFilter;
flash.geom.Matrix;(3)
flash.net<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fflash.net%2F&data=02%7C01%7Caharui%40adobe.com%7Cd534de5e4da040ddd4df08d5d5e5b7e7%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636650104981721172&sdata=CDIAyNjTEr1c6WhiW6%2FKg4h6WG%2BDaY%2BuwvZ3RfLDY%2Bc%3D&reserved=0>.*;
flash.net.URLRequest;
flash.net.URLLoader
flash.profiler.showRedrawRegions;
flash.utils.getTimer;
flash.net.SharedObject;
flash.ui.Keyboard;

These might be replaced by UIComponent:
flash.display.DisplayObject;
flash.display.DisplayObjectContainer;
flash.display.Sprite;

These might be replaced by APIs in Graphics.swc:
flash.display.GradientType;(2)
flash.display.Graphics;(7)
flash.display.Shape;

What are you loading with Loader?
flash.display.Loader;

You can replace these or make mx emulations:
flash.system.ApplicationDomain; --> mx.system.ApplicationDomain
flash.events.Event;(20) --> org.apache.royale.events.Event
flash.events.EventDispatcher;(5) --> org.apache.royale.events.EventDispatcher
flash.events.KeyboardEvent;  --> org.apache.royale.events.KeyboardEvent
flash.events.MouseEvent;(15) --> org.apache.royale.events.MouseEvent
flash.geom.Point;(16)  --> org.apache.royale.geom.Point
flash.geom.Rectangle;(14)  --> org.apache.royale.geom.Rectangle
flash.utils.Timer;  --> org.apache.royale.utils.Timer
flash.utils.Proxy;  --> org.apache.royale.utils.Proxy
flash.utils.flash_proxy;
flash.net.navigateToURL;  --> org.apache.royale.core.BrowserWindow
flash.utils.ByteArray;(2) --> org.apache.royale.utils.BinaryData
flash.utils.getQualifiedClassName --> org.apache.royale.reflection.getQualifiedClassName


I think these 3 exist in the develop branch:

flash.utils.IDataInput; --> org.apache.royale.net.utils.IDataInput
flash.utils.IDataOutput; --> org.apache.royale.net.utils.IDataOutput
flash.utils.IExternalizable;  --> org.apache.royale.net.utils.IExternalizable


It might be best to create mx emulations like you did for ApplicationDomain

flash.events.FocusEvent;
flash.events.IOErrorEvent;
flash.events.TextEvent;(3)
flash.display.Bitmap;
flash.errors.EOFError;
flash.external.ExternalInterface;

Can you use E4x?

flash.xml.*;
flash.xml.XMLNode;

Can you use Label?

flash.text.FontStyle;
flash.text.TextField;
flash.text.TextFormat;

HTH,
-Alex

From: Alina Kazi <alina.kazi@d-bz.com<mailto:alina.kazi@d-bz.com>>
Reply-To: "users@royale.apache.org<mailto:users@royale.apache.org>" <users@royale.apache.org<mailto:users@royale.apache.org>>
Date: Monday, June 18, 2018 at 10:07 PM
To: "users@royale.apache.org<mailto:users@royale.apache.org>" <users@royale.apache.org<mailto:users@royale.apache.org>>
Subject: RE: Work on Emulation

Hi Alex,
Below given flash API’s are used by D-Biz Library Project and Main Application Project.
Do I also need to emulate all these API’s ?
flash.utils.Dictionary;
flash.utils.IExternalizable;
flash.display.DisplayObject;
flash.display.Bitmap;
flash.display.CapsStyle;
flash.display.DisplayObject;(12)
flash.display.DisplayObjectContainer;
flash.display.GradientType;(2)
flash.display.Graphics;(7)
flash.display.InterpolationMethod;
flash.display.JointStyle;
flash.display.LineScaleMode;
flash.display.Loader;
flash.display.Shape;
flash.display.SpreadMethod;
flash.display.Sprite;
flash.errors.EOFError;
flash.events.*;(3)
flash.events.Event;(20)
flash.events.EventDispatcher;(5)
flash.events.FocusEvent;
flash.events.IOErrorEvent;
flash.events.KeyboardEvent;
flash.events.MouseEvent;(15)
flash.events.TextEvent;(3)
flash.external.ExternalInterface;
flash.filters.*;
flash.filters.DropShadowFilter;
flash.geom.Matrix;(3)
flash.geom.Point;(16)
flash.geom.Rectangle;(14)
flash.net<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fflash.net%2F&data=02%7C01%7Caharui%40adobe.com%7Cd534de5e4da040ddd4df08d5d5e5b7e7%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636650104981721172&sdata=CDIAyNjTEr1c6WhiW6%2FKg4h6WG%2BDaY%2BuwvZ3RfLDY%2Bc%3D&reserved=0>.*;
flash.net.URLRequest;
flash.net.URLLoader
flash.net.navigateToURL;
flash.profiler.showRedrawRegions;
flash.system.ApplicationDomain;
flash.text.FontStyle;
flash.text.TextField;
flash.text.TextFormat;
flash.ui.Keyboard;
flash.utils.ByteArray;(2)
flash.utils.IDataInput;
flash.utils.IDataOutput;
flash.utils.Proxy;
flash.utils.Timer;
flash.utils.flash_proxy;
flash.utils.getTimer;
flash.xml.*;
flash.display.DisplayObject;
flash.display.DisplayObjectContainer;
flash.net.SharedObject;
flash.xml.XMLNode;
flash.utils.getQualifiedClassName;

Thanks,
Alina Kazi

From: Alex Harui [mailto:aharui@adobe.com]
Sent: Tuesday, June 19, 2018 3:36 AM
To: users@royale.apache.org<mailto:users@royale.apache.org>
Subject: Re: Work on Emulation

Hi Serkan,

You can look at the mx-manifest.xml and spark-manifest.xml in the frameworks folder of a Flex
SDK to determine which emulation classes go in those manifests or in MXRoyaleClasses.as or
SparkRoyaleClasses.as

HTH,
-Alex


From: Serkan Taş <serkan.tas@likyateknoloji.com<mailto:serkan.tas@likyateknoloji.com>>
Reply-To: "users@royale.apache.org<mailto:users@royale.apache.org>" <users@royale.apache.org<mailto:users@royale.apache.org>>
Date: Monday, June 18, 2018 at 1:57 PM
To: "users@royale.apache.org<mailto:users@royale.apache.org>" <users@royale.apache.org<mailto:users@royale.apache.org>>
Subject: Re: Work on Emulation

Thank you Alex,
I think i missed this detail. Maybe someone has already answered the question but i need to
ask again.

How may I decide which classes are for MXML which are not ?

thanx,
serkan
11.06.2018 08:43 tarihinde Alex Harui yazdı:
Hi Serkan,

Yes, it looks like those classes were not used in Alina’s app, so if you can, please provide
the emulations for those classes.

In MXRoyale, some classes are listed in the mx-royale-manifest.xml file and not the MXRoyaleClasses.as
file.  Classes that are intended for use in MXML go in the manifest file.  This is true for
all SWC projects in Flex and Royale.

Thanks,
-Alex

From: Serkan Taş <serkan.tas@likyateknoloji.com><mailto:serkan.tas@likyateknoloji.com>
Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <users@royale.apache.org><mailto:users@royale.apache.org>
Date: Sunday, June 10, 2018 at 1:33 AM
To: "users@royale.apache.org"<mailto:users@royale.apache.org> <users@royale.apache.org><mailto:users@royale.apache.org>
Subject: Re: Work on Emulation

Hi all,
After comparing my api-usage-list with files in the MXRoyale folder, i came up with these
14 classes :
mx.binding.utils.ChangeWatcher
mx.containers.Form
mx.containers.FormItem
mx.controls.Menu
mx.events.TreeEvent
mx.preloaders.DownloadProgressBar
mx.resources.IResourceManager
mx.resources.ResourceBundle
mx.resources.ResourceManager
mx.rpc.AbstractOperation
mx.rpc.CallResponder
mx.rpc.http.HTTPMultiService
mx.rpc.http.Operation
mx.states.Transition
I may create an issue and begin working after you confirm.
Note : I filtered only the class with mx package, spark.*, com.adobe.*, flash.*,flashx.* are
all discarded.
Repo for the compare util : https://github.com/nihavend/sharedprojects/tree/master/MXRoyaleUtils<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnihavend%2Fsharedprojects%2Ftree%2Fmaster%2FMXRoyaleUtils&data=02%7C01%7Caharui%40adobe.com%7C83cf1b1f93a948c097c608d5ceace2a2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636642164299242773&sdata=iMOGSNLKvKvSnnTMJ5LNetsUMRT82966E13NPQ0lmeU%3D&reserved=0>

09.06.2018 18:14 tarihinde Serkan Taş yazdı:
Ok Alex i got it.
Good news Piotr :)

And my question :

When i was working on to discover which of my classes emulated by comparing my api-usage list
and the emulated files, i started from first following :

I am comparing the files in the folder MXRoyale with the content of MXRoyaleClasses.
Some files in the folders are missing in file MXRoyaleClasses.

I tought that they should be identical. Right ?
09.06.2018 10:12 tarihinde Piotr Zarzycki yazdı:
Hi Alex,

I was going to ask you for that! I will need it soon! I hope to join next week with the effort
with some project to Port! :)

Thanks,
Piotr
On Sat, Jun 9, 2018, 8:14 AM Alex Harui <aharui@adobe.com<mailto:aharui@adobe.com>>
wrote:
Hi Alina,  Shahid,  Serkan, and others.

I think I have nightly builds working for the MXRoyale branch.  You try them out by going
here:
http://apacheroyaleci.westus2.cloudapp.azure.com:8080/job/Royale-asjs_MXRoyale/lastSuccessfulBuild/artifact/<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapacheroyaleci.westus2.cloudapp.azure.com%3A8080%2Fjob%2FRoyale-asjs_MXRoyale%2FlastSuccessfulBuild%2Fartifact%2F&data=02%7C01%7Caharui%40adobe.com%7C83cf1b1f93a948c097c608d5ceace2a2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636642164299242773&sdata=sBt2t6Rga567snFu8yBY9TpjHmtMCA9H5xVL9mxGrtU%3D&reserved=0>

Nightly builds are not official releases.  Please watch email on dev@royale.apache.org<mailto:dev@royale.apache.org>
for build failure messages with “Royale-asjs_MXRoyale” in the subject.  As code gets committed,
one of our CI servers will build it and report an errors.

Thanks,
-Alex

From: Alex Harui <aharui@adobe.com<mailto:aharui@adobe.com>>
Reply-To: "users@royale.apache.org<mailto:users@royale.apache.org>" <users@royale.apache.org<mailto:users@royale.apache.org>>
Date: Friday, June 8, 2018 at 4:22 PM
To: "users@royale.apache.org<mailto:users@royale.apache.org>" <users@royale.apache.org<mailto:users@royale.apache.org>>

Subject: Re: Work on Emulation

Hi Alina,

Yes, the API report lists x,y and some other properties on spark.primitives.Line.  We shouldn’t
need to emulate their base classes right now.

-Alex

From: Alina Kazi <alina.kazi@d-bz.com<mailto:alina.kazi@d-bz.com>>
Reply-To: "users@royale.apache.org<mailto:users@royale.apache.org>" <users@royale.apache.org<mailto:users@royale.apache.org>>
Date: Thursday, June 7, 2018 at 11:19 PM
To: "users@royale.apache.org<mailto:users@royale.apache.org>" <users@royale.apache.org<mailto:users@royale.apache.org>>
Subject: RE: Work on Emulation

Hi Alex,
Spark.primitives.Line class extends StrokedElement<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fhelp.adobe.com%2Fen_US%2FFlashPlatform%2Freference%2Factionscript%2F3%2Fspark%2Fprimitives%2FsupportClasses%2FStrokedElement.html&data=02%7C01%7Caharui%40adobe.com%7Cae8f14fa0081408e863308d5cd07cb30%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636640355740748743&sdata=6onZ98eOPaUn8AJFUYF%2FshzhxBAIxxE2n0n7a1pf1Ak%3D&reserved=0>
<image001.gif> GraphicElement<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fhelp.adobe.com%2Fen_US%2FFlashPlatform%2Freference%2Factionscript%2F3%2Fspark%2Fprimitives%2FsupportClasses%2FGraphicElement.html&data=02%7C01%7Caharui%40adobe.com%7Cae8f14fa0081408e863308d5cd07cb30%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636640355740748743&sdata=FbKZCEeaj%2BUNTz%2Be4JFgc2UYGSI16DbO%2F9%2F3xpCBOfw%3D&reserved=0>
<image001.gif> EventDispatcher<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fhelp.adobe.com%2Fen_US%2FFlashPlatform%2Freference%2Factionscript%2F3%2Fflash%2Fevents%2FEventDispatcher.html&data=02%7C01%7Caharui%40adobe.com%7Cae8f14fa0081408e863308d5cd07cb30%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636640355740748743&sdata=MjPhmmfbXUaQYck%2BYA%2B13N7%2F6QzbAXLPrMGgJp9JZYg%3D&reserved=0>
in Flex SDK.

In Line Class X,Y Properties are extended from GraphicElement<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fhelp.adobe.com%2Fen_US%2FFlashPlatform%2Freference%2Factionscript%2F3%2Fspark%2Fprimitives%2FsupportClasses%2FGraphicElement.html&data=02%7C01%7Caharui%40adobe.com%7Cae8f14fa0081408e863308d5cd07cb30%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636640355740748743&sdata=FbKZCEeaj%2BUNTz%2Be4JFgc2UYGSI16DbO%2F9%2F3xpCBOfw%3D&reserved=0>.StrokedElement
& GraphicElement both are not in Emulation Components list.
Currently Emulated Line Class extends EventDispatcher.
should I add these properties to Line Class ?

Thanks,
Alina

From: Alex Harui [mailto:aharui@adobe.com<mailto:aharui@adobe.com>]
Sent: Thursday, June 07, 2018 11:21 PM
To: users@royale.apache.org<mailto:users@royale.apache.org>
Subject: Re: Work on Emulation

Hi Alina,

Congratulations on that achievement.  Keep up the great work.

-Alex

From: Alina Kazi <alina.kazi@d-bz.com<mailto:alina.kazi@d-bz.com>>
Reply-To: "users@royale.apache.org<mailto:users@royale.apache.org>" <users@royale.apache.org<mailto:users@royale.apache.org>>
Date: Thursday, June 7, 2018 at 1:46 AM
To: "users@royale.apache.org<mailto:users@royale.apache.org>" <users@royale.apache.org<mailto:users@royale.apache.org>>
Subject: RE: Work on Emulation

Thanks Alex.
One of the file from D-Bz Library Project is compiled Successfully.
It contains API’s : Group,SparkSkin,Scroller,Rect,Stroke,SolidColor,SolidColorStroke,Fill,State

-Alina Kazi

From: Alex Harui [mailto:aharui@adobe.com<mailto:aharui@adobe.com>]
Sent: Thursday, June 07, 2018 1:20 PM
To: users@royale.apache.org<mailto:users@royale.apache.org>
Subject: Re: Work on Emulation

Hi Alina,

I think you should add static constants to mx.events.MouseEvent.  It should  look something
like:


public static const MOUSE_DOWN:String = org.apache.royale.events.MouseEvent.MOUSE_DOWN;




For Graphics, look at org.apache.royale.svg.CompoundGraphic


HTH,
-Alex

From: Alina Kazi <alina.kazi@d-bz.com<mailto:alina.kazi@d-bz.com>>
Reply-To: "users@royale.apache.org<mailto:users@royale.apache.org>" <users@royale.apache.org<mailto:users@royale.apache.org>>
Date: Wednesday, June 6, 2018 at 11:24 PM
To: "users@royale.apache.org<mailto:users@royale.apache.org>" <users@royale.apache.org<mailto:users@royale.apache.org>>
Subject: RE: Work on Emulation

Hi Alex,
Thanks for the help. It worked.
I have emulated a flash API MouseEvent exends org.apache.royale.events.MouseEvent
Properties like MouseEvent.MOUSE_DOWN , MouseEvent.MOUSE_UP , MouseEvent.CLICK etc are not
accessible when I am using emulated mx.events.MouseEvent in an Example.
flash.display.Graphics is used at many places in our D-Biz Library Project. Graphics API is
not present in any project of Royale SDK .
So, Should I emulate Graphics extends Object ? OR Emulated Graphics API should extend any
API from Royale SDK ?

Thanks,
Alina


From: Alex Harui [mailto:aharui@adobe.com<mailto:aharui@adobe.com>]
Sent: Wednesday, June 06, 2018 8:15 PM
To: users@royale.apache.org<mailto:users@royale.apache.org>
Subject: Re: Work on Emulation

Hi Alina,

“lookupOnly=true” is used when a class is in a different SWC.  In Flex, AdvancedDataGrid
is in the advancedgrids.swc.  In the emulation components they are in MXRoyale, so I think
you can just remove the lookupOnly=”true” and it should work.

HTH,
-Alex

From: Alina Kazi <alina.kazi@d-bz.com<mailto:alina.kazi@d-bz.com>>
Reply-To: "users@royale.apache.org<mailto:users@royale.apache.org>" <users@royale.apache.org<mailto:users@royale.apache.org>>
Date: Wednesday, June 6, 2018 at 1:45 AM
To: "users@royale.apache.org<mailto:users@royale.apache.org>" <users@royale.apache.org<mailto:users@royale.apache.org>>
Subject: RE: Work on Emulation

mx.controls.AdvancedDataGrid is present in AdvancedDataGridClasses.as  &   <component
id="AdvancedDataGrid" class="mx.controls.AdvancedDataGrid" lookupOnly="true"/> in mx-manifest.xml
in Flex SDK
In Apache Royale should I add AdvancedDataGrid in both classes (mx-royale-manifest.xml &
mxRoyaleClasses.xml)?
Currently I have added it in mx-royale-manifest.xml only & MXRoyale Lib is Compiled Successfully.
Bu,t when I am compiling <mx:AdvancedDataGrid> in an Example like other components I
am getting Error on it.

Thanks,
Alina Kazi

From: Alina Kazi [mailto:alina.kazi@d-bz.com<mailto:alina.kazi@d-bz.com>]
Sent: Wednesday, June 06, 2018 9:49 AM
To: 'users@royale.apache.org<mailto:users@royale.apache.org>'
Subject: RE: Work on Emulation

Hi Alex,

These were two different API’s list I shared.

1.       API report for Library Project:https://www.dropbox.com/s/77wkgrm74upkg0j/SHMALib%20Report.txt?dl=0<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.dropbox.com%2Fs%2F77wkgrm74upkg0j%2FSHMALib%2520Report.txt%3Fdl%3D0&data=02%7C01%7Caharui%40adobe.com%7Ceefa7badcead442286a308d5cb89d1f7%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636638715193949180&sdata=TQ%2B09FVcV9v8RCDhj87be%2BNZAcir4bipWAPErpxynPE%3D&reserved=0>

2.       API report for Application Project :https://www.dropbox.com/s/swvqhly6wa0jrc5/API-Reports.rar?dl=0<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.dropbox.com%2Fs%2Fswvqhly6wa0jrc5%2FAPI-Reports.rar%3Fdl%3D0&data=02%7C01%7Caharui%40adobe.com%7Ceefa7badcead442286a308d5cb89d1f7%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636638715193959185&sdata=cRIDmNW2ZqhsBId5D8O2%2FZUiaWd7FXWTxYi2QitD%2FNU%3D&reserved=0>
I think https://github.com/apache/royale-asjs/wiki/Emulation-Components<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Froyale-asjs%2Fwiki%2FEmulation-Components&data=02%7C01%7Caharui%40adobe.com%7Ceefa7badcead442286a308d5cb89d1f7%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636638715193969194&sdata=TupgS8mF8Q4d1X2pZ3wX%2F6YKOjHTdtNOvTLxLOGpWMQ%3D&reserved=0>
includes Application Project API’s only.

I am adding missing APIs.
Thanks for your Help.
-Alina

From: Alex Harui [mailto:aharui@adobe.com<mailto:aharui@adobe.com>]
Sent: Tuesday, June 05, 2018 9:51 PM
To: users@royale.apache.org<mailto:users@royale.apache.org>
Subject: Re: Work on Emulation

Hi Alina,

Is your app using Sandboxes?  Is it loading SWFs from other security domains or SWFs compiled
against different Flex versions?  Hopefully not, as that will greatly simplify things, and
in that case I would add getSandboxRoot() to systemManager and have it “return this”.
 Not sure why it wasn’t in the API report.  It will be interesting to see what else the
API report missed as you try to get your app to compile.

The other APIs are Flash APIs, in this case on flash.events.MouseEvent.  We have not and will
not try to emulate the flash classes.  There will often be an equivalent Royale class, in
this case org.apache.royale.events.MouseEvent.  You may need to “import org.apache.royale.events.MouseEvent”
and not import flash.events.MouseEvent.  However, if an API still doesn’t exist on the Royale
version (and stageX/Y and updateAfterEvent do not), then the next step is to create an emulation
class, maybe name this one mx.events.MouseEvent, extend org.apache.royale.events.MouseEvent,
 and add the missing APIs.  stageX/Y should map to screenX/Y and updateAfterEvent can simply
do nothing on the JS side.

It will require judgement in each situation, so feel free to ask like you did.

Thanks,
-Alex



From: Alina Kazi <alina.kazi@d-bz.com<mailto:alina.kazi@d-bz.com>>
Reply-To: "users@royale.apache.org<mailto:users@royale.apache.org>" <users@royale.apache.org<mailto:users@royale.apache.org>>
Date: Tuesday, June 5, 2018 at 2:06 AM
To: "users@royale.apache.org<mailto:users@royale.apache.org>" <users@royale.apache.org<mailto:users@royale.apache.org>>
Subject: RE: Work on Emulation

As components are emulated. Now, I am compiling D-Biz Library Project.
Compiling file by file . So, I can add things that I missed to add in MXRoyale and SparkRoyale
while emulation.

event.updateAfterEvent()
event.stageX
event.stageY
systemManager.getSandboxRoot()
are the properties/methods that are used by my first file in D-Biz Library and these properties/methods
were not inhttps://github.com/apache/royale-asjs/wiki/Emulation-Components<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Froyale-asjs%2Fwiki%2FEmulation-Components&data=02%7C01%7Caharui%40adobe.com%7Ccf498a86b3954798ffe208d5cac3980c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636637863775991352&sdata=tz%2Bagtmdw%2BEWmFpO%2F4HAzBcQ8aQpM4OLm9Pu6vvp65k%3D&reserved=0>
Do I need to add these properties and methods to Apache Royale SDK ?

Thanks,
Alina Kazi

From: Alex Harui [mailto:aharui@adobe.com<mailto:aharui@adobe.com>]
Sent: Monday, June 04, 2018 8:43 PM
To: users@royale.apache.org<mailto:users@royale.apache.org>
Subject: Re: Work on Emulation

Hi Alina,

I did not look too closely, but the list of files on the commit emails looked reasonable.
 AIUI, if there were multiple commits to a PR to adjust the code before merging then yes,
you might see a lot of commits in the merge history.

As long as you pull changes into your local repo before doing modifications in your local
repo, I think you will be ok.

Thanks,
-Alex

From: Alina Kazi <alina.kazi@d-bz.com<mailto:alina.kazi@d-bz.com>>
Reply-To: "users@royale.apache.org<mailto:users@royale.apache.org>" <users@royale.apache.org<mailto:users@royale.apache.org>>
Date: Monday, June 4, 2018 at 12:29 AM
To: "users@royale.apache.org<mailto:users@royale.apache.org>" <users@royale.apache.org<mailto:users@royale.apache.org>>
Subject: RE: Work on Emulation

Hi,

When I was committing the merge for some PR’s today. There were maximum 10 commits that
were shown per PR while merging.
After Merging when I see PR from history in MXRoyale Branch. It shows changes in many files.
But MXRoyale Source is also compiled Successfully.
Could someone please check?

Thanks,
Alina Kazi

From: Alina Kazi [mailto:alina.kazi@d-bz.com<mailto:alina.kazi@d-bz.com>]
Sent: Thursday, May 31, 2018 12:59 PM
To: users@royale.apache.org<mailto:users@royale.apache.org>
Subject: RE: Work on Emulation

Thank you so much Alex.
I didn’t noticed that while merging PR for SparkSkin.
I will re-check spark-royale-manifest.xml , SparkRoyaleClasses.as ,mx-royale-manifest.xml
and MXRoyaleClases.as  for all emulated components.

Thanks,
Alina Kazi

From: Alex Harui [mailto:aharui@adobe.com<mailto:aharui@adobe.com>]
Sent: Thursday, May 31, 2018 12:31 PM
To: users@royale.apache.org<mailto:users@royale.apache.org>
Subject: Re: Work on Emulation

Hi Alina,

It looks like there was some confusion around step #8 in the wiki article.  Classes like SparkSkin
are used in MXML and thus should be added to src/main/resources/spark-royale-manifest.xml
instead of SparkRoyaleClasses.as.  The same may be true for the MXRoyale project and mx-royale-manifest.xml.
 If you look at the actual Flex spark-manifest.xml and mx-manifest.xml, I think you can copy
the lines for classes you have emulated.

HTH,
-Alex

From: Alina Kazi <alina.kazi@d-bz.com<mailto:alina.kazi@d-bz.com>>
Reply-To: "users@royale.apache.org<mailto:users@royale.apache.org>" <users@royale.apache.org<mailto:users@royale.apache.org>>
Date: Wednesday, May 30, 2018 at 11:29 PM
To: "users@royale.apache.org<mailto:users@royale.apache.org>" <users@royale.apache.org<mailto:users@royale.apache.org>>
Subject: RE: Work on Emulation

Hi Alex
Thanks for updating https://github.com/apache/royale-asjs/wiki/Emulation-Components<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Froyale-asjs%2Fwiki%2FEmulation-Components&data=02%7C01%7Caharui%40adobe.com%7Cb565c8ffb38c412e9d1608d5c6bfd11d%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636633449512700855&sdata=BexLZDCyeO7wvg4WPr5p%2BFGrH3fZvfE5sG4JKZh7x5k%3D&reserved=0>
for further explanation.
I am trying to Compile mxml Components in SparkRoyale , Getting this Error :https://www.dropbox.com/s/0mfdivdpavtzlbi/Errorcompiling-mxml.txt?dl=0<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.dropbox.com%2Fs%2F0mfdivdpavtzlbi%2FErrorcompiling-mxml.txt%3Fdl%3D0&data=02%7C01%7Caharui%40adobe.com%7Cb565c8ffb38c412e9d1608d5c6bfd11d%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636633449512710864&sdata=iAMLRkEEs7dPdpyI70iE%2F%2F%2B8v4swhuYk9RVZvw5NkgY%3D&reserved=0>

Do I need to add/change something to refer existing library in configuration files.

Thanks,
Alina Kazi

From: Alex Harui [mailto:aharui@adobe.com<mailto:aharui@adobe.com>]
Sent: Tuesday, May 29, 2018 9:29 PM
To: users@royale.apache.org<mailto:users@royale.apache.org>
Subject: Re: Work on Emulation

Hi Alina,

That is awesome.  Once the PR’s have been merged, the next test is to compile your existing
app against the feature/MXRoyale branch.  It should compile without errors (of course, it
probably won’t run).  If you do get errors, then we need to figure out why.

The next step will be to actually make the emulated components draw something on the screen
even if it is “ugly”.  I’ve done that for several components already.  I will try to
write up a better explanation of how I do that.
Then the next step is to make the emulated components have the right size and appearance.
The final step is to fix bugs so your app runs properly.

Thanks,
-Alex

From: Alina Kazi <alina.kazi@d-bz.com<mailto:alina.kazi@d-bz.com>>
Reply-To: "users@royale.apache.org<mailto:users@royale.apache.org>" <users@royale.apache.org<mailto:users@royale.apache.org>>
Date: Tuesday, May 29, 2018 at 2:36 AM
To: "users@royale.apache.org<mailto:users@royale.apache.org>" <users@royale.apache.org<mailto:users@royale.apache.org>>
Subject: RE: Work on Emulation

Thanks Alex.
All mx and spark Components are emulated except 1 that is in Progress.
Hopefully tomorrow I will merge PR’s.
Feature/MXRoyale branch is 331 commits ahead, 108 commits behind develop.
I just wanted to know when you are going to merge that branch with develop branch, do you
merge these components will be functional ?
What should I do next to make them functional ?

Also , Thanks for providing a very helpful guide for the creation of the emulation:
https://github.com/apache/royale-asjs/wiki/Emulation-Components<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Froyale-asjs%2Fwiki%2FEmulation-Components&data=02%7C01%7Caharui%40adobe.com%7C1f754a058c544c9d3e1308d5c5479854%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636631833669646390&sdata=UWnScja7WOCsTT4I8aHtwaANS7kTSKH4YApav9qpuO8%3D&reserved=0>

-Alina Kazi

From: Alex Harui [mailto:aharui@adobe.com<mailto:aharui@adobe.com>]
Sent: Friday, May 25, 2018 9:31 PM
To: users@royale.apache.org<mailto:users@royale.apache.org>
Subject: Re: Work on Emulation

Hi Alina,

That’s great.  I see you have almost completed the creation of the emulation classes.  That
will be a significant milestone when you achieve that.

Keep up the good work.
-Alex

From: Alina Kazi <alinakazi1990@gmail.com<mailto:alinakazi1990@gmail.com>>
Reply-To: "users@royale.apache.org<mailto:users@royale.apache.org>" <users@royale.apache.org<mailto:users@royale.apache.org>>
Date: Friday, May 25, 2018 at 4:14 AM
To: "users@royale.apache.org<mailto:users@royale.apache.org>" <users@royale.apache.org<mailto:users@royale.apache.org>>
Subject: Re: Work on Emulation

Hi,
Few Emulated Spark & MX Components are compiled together.
MX : Button & Label
Spark :Button,CheckBox,TextArea,TextInput,NumericStepper, List & DropDownList
Project link:
https://www.dropbox.com/s/bm2uv6bfzoqo3u0/HelloWorld.rar?dl=0<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.dropbox.com%2Fs%2Fbm2uv6bfzoqo3u0%2FHelloWorld.rar%3Fdl%3D0&data=02%7C01%7Caharui%40adobe.com%7C0218b2cc67f1464231b408d5c230b258%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636628436764109381&sdata=xhMqzoP2B36YUKWTQmXyxy7XqlYeKyE8rx3VPZZ1IQ0%3D&reserved=0>

Thanks,
Alina Kazi

On Tue, May 22, 2018 at 8:39 PM, Alex Harui <aharui@adobe.com<mailto:aharui@adobe.com>>
wrote:
Hi Shahid,

Please try to ask more specific questions.  In this case, maybe something like:  “When I
compile these lines of MXML with this command line I get this error”.

Thanks,
-Alex

From: Shahid Khan <Shahid.Khan@d-bz.com<mailto:Shahid.Khan@d-bz.com>>
Reply-To: "users@royale.apache.org<mailto:users@royale.apache.org>" <users@royale.apache.org<mailto:users@royale.apache.org>>
Date: Tuesday, May 22, 2018 at 12:56 AM
To: "users@royale.apache.org<mailto:users@royale.apache.org>" <users@royale.apache.org<mailto:users@royale.apache.org>>
Subject: Work on Emulation

Hi,

I’m having compile issues with MX/Spark tags while emulating MXML files so needs some instructions
on how to emulate them?

Thanks
Shahid

Mime
View raw message