Hi guys, Even though I'm really happy with the fact that you put a lot of effort in the successor of Flex: how can I unsubscribe (as for the time being I can't help with what you're doing). Do I simply send a reply to a message with a 'unsubscribe' subject?
Thanks in advance, Tom On Tue, Jun 19, 2018 at 1:25 PM Alina Kazi <[email protected]> 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:[email protected]] > *Sent:* Tuesday, June 19, 2018 12:40 PM > *To:* [email protected] > *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 > > [2] > https://stackoverflow.com/questions/3794354/html5-canvas-prevent-linewidth-scaling > > [3]https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient > > [4] > https://developer.mozilla.org/en-US/docs/Web/CSS/repeating-linear-gradient > > > > On Jun 19, 2018, at 10:12 AM, Alex Harui <[email protected]> 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.*; > > 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 <[email protected]> > *Reply-To: *"[email protected]" <[email protected]> > *Date: *Monday, June 18, 2018 at 10:07 PM > *To: *"[email protected]" <[email protected]> > *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.*; > > 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:[email protected] <[email protected]>] > *Sent:* Tuesday, June 19, 2018 3:36 AM > *To:* [email protected] > *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ş <[email protected]> > *Reply-To: *"[email protected]" <[email protected]> > *Date: *Monday, June 18, 2018 at 1:57 PM > *To: *"[email protected]" <[email protected]> > *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ş <[email protected]> > <[email protected]> > *Reply-To: *"[email protected]" <[email protected]> > <[email protected]> <[email protected]> > *Date: *Sunday, June 10, 2018 at 1:33 AM > *To: *"[email protected]" <[email protected]> > <[email protected]> <[email protected]> > *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 <[email protected]> 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 > [email protected] 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 <[email protected]> > *Reply-To: *"[email protected]" <[email protected]> > *Date: *Friday, June 8, 2018 at 4:22 PM > *To: *"[email protected]" <[email protected]> > > > *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 <[email protected]> > *Reply-To: *"[email protected]" <[email protected]> > *Date: *Thursday, June 7, 2018 at 11:19 PM > *To: *"[email protected]" <[email protected]> > *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:[email protected]] > *Sent:* Thursday, June 07, 2018 11:21 PM > *To:* [email protected] > *Subject:* Re: Work on Emulation > > > > Hi Alina, > > > > Congratulations on that achievement. Keep up the great work. > > > > -Alex > > > > *From: *Alina Kazi <[email protected]> > *Reply-To: *"[email protected]" <[email protected]> > *Date: *Thursday, June 7, 2018 at 1:46 AM > *To: *"[email protected]" <[email protected]> > *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:[email protected]] > *Sent:* Thursday, June 07, 2018 1:20 PM > *To:* [email protected] > *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 <[email protected]> > *Reply-To: *"[email protected]" <[email protected]> > *Date: *Wednesday, June 6, 2018 at 11:24 PM > *To: *"[email protected]" <[email protected]> > *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:[email protected]] > *Sent:* Wednesday, June 06, 2018 8:15 PM > *To:* [email protected] > *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 <[email protected]> > *Reply-To: *"[email protected]" <[email protected]> > *Date: *Wednesday, June 6, 2018 at 1:45 AM > *To: *"[email protected]" <[email protected]> > *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:[email protected]] > *Sent:* Wednesday, June 06, 2018 9:49 AM > *To:* '[email protected]' > *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:[email protected]] > *Sent:* Tuesday, June 05, 2018 9:51 PM > *To:* [email protected] > *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 <[email protected]> > *Reply-To: *"[email protected]" <[email protected]> > *Date:* > >
