Re: Migrating Enterprise Flex Application

2018-07-12 Thread chembali
Can I go ahead and create an issue with the list of APIs to be emulated? I am
thinking the flash,mx and Spark components from the below list needs to be
emulated. I am not sure about the com.adobe classes in the list. I did a
quick search for the JS implementation for the 3rd party libraries that are
used. Most of the JS counterparts are out there. I am thinking of replacing
the 3rd party libraries with JS libraries. Let me know your thoughts. Here
is the list that I came up with.

 com.adobe.cairngorm.model.IModelLocator 
 com.adobe.utils.ArrayUtil 
 com.adobe.utils.ArrayUtil:arrayContainsValue 
 com.adobe.utils.ArrayUtil:removeValueFromArray 
 com.adobe.utils.StringUtil 
 com.adobe.utils.StringUtil:replace 
 com.adobe.utils.StringUtil:stringsAreEqual 
 flash.display.BlendMode 
 flash.display.BlendMode:NORMAL 
 flash.display.DisplayObjectContainer:addChildAt 
 flash.display.InteractiveObject:contextMenu 
 flash.display.Sprite:useHandCursor 
 flash.events.ErrorEvent 
 flash.events.Event:CANCEL 
 flash.events.Event:stopImmediatePropagation 
 flash.events.Event:UNLOAD 
 flash.events.IEventDispatcher 
 flash.events.IOErrorEvent:text 
 flash.events.KeyboardEvent:stopImmediatePropagation 
 flash.events.KeyboardEvent:stopPropagation 
 flash.events.MouseEvent:ctrlKey 
 flash.events.MouseEvent:delta 
 flash.events.MouseEvent:shiftKey 
 flash.external.ExternalInterface:objectID 
 flash.filters.GlowFilter:alpha 
 flash.filters.GlowFilter:color 
 flash.filters.GlowFilter:inner 
 flash.filters.GlowFilter:strength 
 flash.net.FileReference:download 
 flash.net.FileReference:upload 
 flash.net.FileReferenceList 
 flash.net.FileReferenceList:addEventListener 
 flash.net.FileReferenceList:browse 
 flash.net.FileReferenceList:fileList 
 flash.net.URLLoader:close 
 flash.net.URLLoader:dataFormat 
 flash.net.URLLoader:removeEventListener 
 flash.net.URLLoaderDataFormat 
 flash.net.URLLoaderDataFormat:BINARY 
 flash.net.URLRequest:data 
 flash.net.URLRequest:requestHeaders 
 flash.net.URLRequestHeader 
 flash.net.URLRequestMethod 
 flash.net.URLRequestMethod:GET 
 flash.net.URLRequestMethod:POST 
 flash.system.Capabilities 
 flash.system.Capabilities:version 
 flash.system.Security 
 flash.system.Security:allowDomain 
 flash.system.Security:loadPolicyFile 
 flash.system.System 
 flash.system.System:gc 
 flash.system.System:setClipboard 
 flash.text.TextField:background 
 flash.text.TextField:backgroundColor 
 flash.ui.Keyboard:ENTER 
 flash.utils.getQualifiedSuperclassName 
 flash.utils.Timer:delay 
 flash.utils.Timer:hasEventListener 
 flash.utils.Timer:removeEventListener 
 flash.xml.XMLDocument 
 flash.xml.XMLDocument:appendChild 
 flash.xml.XMLDocument:toString 
 flash.xml.XMLNode 
 flash.xml.XMLNode:appendChild 
 flash.xml.XMLNode:attributes 
 flash.xml.XMLNodeType 
 flash.xml.XMLNodeType:ELEMENT_NODE 
 flash.xml.XMLNodeType:TEXT_NODE 
 flashx.textLayout.conversion.TextConverter 
 flashx.textLayout.conversion.TextConverter:importToFlow 
 flashx.textLayout.conversion.TextConverter:TEXT_FIELD_HTML_FORMAT 
 flashx.textLayout.elements.TextFlow 
 flashx.textLayout.elements.TextFlow:getText 
 flashx.textLayout.elements.TextFlow:linkNormalFormat 
 flashx.textLayout.formats.LineBreak 
 flashx.textLayout.formats.LineBreak:TO_FIT 
 flashx.textLayout.formats.TextLayoutFormat 
 flashx.textLayout.formats.TextLayoutFormat:color 
 mx.binding.utils.BindingUtils 
 mx.binding.utils.BindingUtils:bindSetter 
 mx.binding.utils.ChangeWatcher 
 mx.charts.AxisRenderer 
 mx.charts.AxisRenderer:axis 
 mx.charts.AxisRenderer:axisStroke 
 mx.charts.AxisRenderer:canDropLabels 
 mx.charts.AxisRenderer:creationComplete 
 mx.charts.AxisRenderer:gutters 
 mx.charts.AxisRenderer:minorTickPlacement 
 mx.charts.AxisRenderer:numChildren 
 mx.charts.AxisRenderer:placement 
 mx.charts.AxisRenderer:setStyle 
 mx.charts.AxisRenderer:tickPlacement 
 mx.charts.AxisRenderer:titleRenderer 
 mx.charts.AxisRenderer:verticalAxisTitleAlignment 
 mx.charts.AxisRenderer:visible 
 mx.charts.CategoryAxis:padding 
 mx.charts.CategoryAxis:ticksBetweenLabels 
 mx.charts.CategoryAxis:title 
 mx.charts.chartClasses.CartesianChart 
 mx.charts.chartClasses.CartesianChart:dataToLocal 
 mx.charts.chartClasses.CartesianChart:graphics 
 mx.charts.chartClasses.CartesianChart:height 
 mx.charts.chartClasses.CartesianChart:horizontalAxisRenderers 
 mx.charts.chartClasses.CartesianChart:updateDisplayList 
 mx.charts.chartClasses.CartesianChart:verticalAxisRenderers 
 mx.charts.chartClasses.CartesianChart:width 
 mx.charts.chartClasses.ChartLabel:updateDisplayList 
 mx.charts.chartClasses.GraphicsUtilities:fillFromStyle 
 mx.charts.chartClasses.IAxis 
 mx.charts.chartClasses.Series:addEventListener 
 mx.charts.chartClasses.Series:buttonMode 
 mx.charts.chartClasses.Series:displayName 
 mx.charts.chartClasses.Series:selectedIndex 
 mx.charts.chartClasses.Series:useHandCursor 
 mx.charts.ColumnChart:axisTitleStyleName 
 mx.charts.ColumnChart:backgroundElements 
 

Re: Migrating Enterprise Flex Application

2018-07-12 Thread chembali
I am trying to compile my mxml and action script sources. I am using the
latest emulation build. So I expect most of my source code to compile
because of the emulation build that I am compiling against. I expect to see
compile errors if any of the MX/SPARK components that I am using is not
emulated ( and no stubs ). I may be wrong. Please correct. 



--
Sent from: http://apache-royale-development.20373.n8.nabble.com/


Re: Migrating Enterprise Flex Application

2018-07-12 Thread Carlos Rovira
Hi,

If I understand right, are you trying to compile all that libraries at
once? I think that's not the way to go. As I told you you must to go from
few files and keep growing over time. For example, I see components there
that clearly depends on MX/SPARK components, so that way will never work.

2018-07-12 12:49 GMT+02:00 chembali :

> I have uploaded 2 console outputs.
> console.out
> 
>
> consoleAS.out
>  com/file/t65/consoleAS.out>
>
> The first output ( console.out ) got generated when I tried to compile one
> of my components ( mxml and as files in this component ). Here is the
> command that I ran. The process runs successfully, but no JS gets
> generated.
>
> C:\devenv\apache-royale-js\royale-asjs\js\bin\compc -compiler.locale=en_US
> -load-config=C:/devenv/ii/trunk/tools/flex/flex4.1-
> adobe/frameworks/flex-config.xml
> -compiler.source-path=C:\devenv\ii\trunk\components\
> FlexUIPlatform/src-flexui
> -compiler.source-path=C:\devenv\ii\trunk\components\
> FlexUIPlatform/src-gen/flexui
> -include-sources+=C:\devenv\ii\trunk\components\
> FlexUIPlatform\src-flexui\com
> -include-sources+=C:\devenv\ii\trunk\components\
> FlexUIPlatform\src-flexui\cosm
> -include-sources+=C:\devenv\ii\trunk\components\
> FlexUIPlatform\src-gen\flexui\com
> -compiler.source-path=C:\devenv\ii\trunk\components\
> FlexUIPlatform/res-flexui/locale/{locale}
> -compiler.external-library-path+=C:\devenv\ii\trunk\
> components\FlexUIPlatform\lib-flexui\flexlib.swc
> -compiler.external-library-path+=C:\devenv\ii\trunk\
> components\FlexUIPlatform\lib-flexui\automation.swc
> -compiler.external-library-path+=C:\devenv\ii\trunk\
> components\FlexUIPlatform\lib-flexui\Cairngorm.swc
> -compiler.external-library-path+=C:\devenv\ii\trunk\
> components\FlexUIPlatform\lib-flexui\CairngormEnterprise.swc
> -compiler.external-library-path+=C:\devenv\ii\trunk\
> components\FlexUIPlatform\lib-flexui\diagrammer.swc
> -compiler.external-library-path+=C:\devenv\ii\trunk\
> components\FlexUIPlatform\lib-flexui\drumbeatinsight.swc
> -compiler.external-library-path+=C:\devenv\ii\trunk\
> components\FlexUIPlatform\lib-flexui\FlexSpy.swc
> -compiler.external-library-path+=C:\devenv\ii\trunk\
> components\FlexUIPlatform\lib-flexui\granite.swc
> -compiler.external-library-path+=C:\devenv\ii\trunk\
> components\FlexUIPlatform\lib-flexui\kap-layouts-1.6.2.swc
> -compiler.external-library-path+=C:\devenv\ii\trunk\
> components\FlexUIPlatform\lib-flexui\kap-licence-1.6.1-commercial.swc
> -compiler.external-library-path+=C:\devenv\ii\trunk\
> components\FlexUIPlatform\lib-flexui\MaskedTextInput.swc
> -compiler.external-library-path+=C:\devenv\ii\trunk\
> components\FlexUIPlatform\lib-flexui\multicolumnform.swc
> -compiler.external-library-path+=C:\devenv\ii\trunk\
> components\FlexUIPlatform\lib-flexui\svg-1.6.2.swc
> -compiler.external-library-path+=C:\devenv\ii\trunk\
> components\FlexUIPlatform\build\flex\flexuiplatform-asset.swc
> -js-output=C:\devenv\ii\trunk\components\FlexUIPlatform\
> build\flex\flexuiplatform
>
> The second output ( consoleAS.out ) got generated when I tried to compile
> the action script sources contained in one of the folders in the component.
> Here is the command that I ran. The JS files get generated successfully in
> this case.
>
> C:\devenv\apache-royale-js\royale-asjs\js\bin\compc -compiler.locale=en_US
> -load-config=C:/devenv/ii/trunk/tools/flex/flex4.1-
> adobe/frameworks/flex-config.xml
> -compiler.source-path=C:\devenv\ii\trunk\components\
> FlexUIPlatform/src-flexui/
> -include-sources+=C:\devenv\ii\trunk\components\
> FlexUIPlatform\src-flexui\cosm
> -compiler.external-library-path+=C:\devenv\ii\trunk\
> components\FlexUIPlatform\lib-flexui\flexlib.swc
> -compiler.external-library-path+=C:\devenv\ii\trunk\
> components\FlexUIPlatform\lib-flexui\automation.swc
> -compiler.external-library-path+=C:\devenv\ii\trunk\
> components\FlexUIPlatform\lib-flexui\Cairngorm.swc
> -compiler.external-library-path+=C:\devenv\ii\trunk\
> components\FlexUIPlatform\lib-flexui\CairngormEnterprise.swc
> -compiler.external-library-path+=C:\devenv\ii\trunk\
> components\FlexUIPlatform\lib-flexui\diagrammer.swc
> -compiler.external-library-path+=C:\devenv\ii\trunk\
> components\FlexUIPlatform\lib-flexui\drumbeatinsight.swc
> -compiler.external-library-path+=C:\devenv\ii\trunk\
> components\FlexUIPlatform\lib-flexui\FlexSpy.swc
> -compiler.external-library-path+=C:\devenv\ii\trunk\
> components\FlexUIPlatform\lib-flexui\granite.swc
> -compiler.external-library-path+=C:\devenv\ii\trunk\
> components\FlexUIPlatform\lib-flexui\kap-layouts-1.6.2.swc
> -compiler.external-library-path+=C:\devenv\ii\trunk\
> components\FlexUIPlatform\lib-flexui\kap-licence-1.6.1-commercial.swc
> -compiler.external-library-path+=C:\devenv\ii\trunk\
> components\FlexUIPlatform\lib-flexui\MaskedTextInput.swc
> 

Re: Migrating Enterprise Flex Application

2018-07-12 Thread chembali
I have uploaded 2 console outputs.
console.out
  
consoleAS.out
  

The first output ( console.out ) got generated when I tried to compile one
of my components ( mxml and as files in this component ). Here is the
command that I ran. The process runs successfully, but no JS gets generated.

C:\devenv\apache-royale-js\royale-asjs\js\bin\compc -compiler.locale=en_US
-load-config=C:/devenv/ii/trunk/tools/flex/flex4.1-adobe/frameworks/flex-config.xml
-compiler.source-path=C:\devenv\ii\trunk\components\FlexUIPlatform/src-flexui
-compiler.source-path=C:\devenv\ii\trunk\components\FlexUIPlatform/src-gen/flexui
-include-sources+=C:\devenv\ii\trunk\components\FlexUIPlatform\src-flexui\com
-include-sources+=C:\devenv\ii\trunk\components\FlexUIPlatform\src-flexui\cosm
-include-sources+=C:\devenv\ii\trunk\components\FlexUIPlatform\src-gen\flexui\com
-compiler.source-path=C:\devenv\ii\trunk\components\FlexUIPlatform/res-flexui/locale/{locale}
-compiler.external-library-path+=C:\devenv\ii\trunk\components\FlexUIPlatform\lib-flexui\flexlib.swc
-compiler.external-library-path+=C:\devenv\ii\trunk\components\FlexUIPlatform\lib-flexui\automation.swc
-compiler.external-library-path+=C:\devenv\ii\trunk\components\FlexUIPlatform\lib-flexui\Cairngorm.swc
-compiler.external-library-path+=C:\devenv\ii\trunk\components\FlexUIPlatform\lib-flexui\CairngormEnterprise.swc
-compiler.external-library-path+=C:\devenv\ii\trunk\components\FlexUIPlatform\lib-flexui\diagrammer.swc
-compiler.external-library-path+=C:\devenv\ii\trunk\components\FlexUIPlatform\lib-flexui\drumbeatinsight.swc
-compiler.external-library-path+=C:\devenv\ii\trunk\components\FlexUIPlatform\lib-flexui\FlexSpy.swc
-compiler.external-library-path+=C:\devenv\ii\trunk\components\FlexUIPlatform\lib-flexui\granite.swc
-compiler.external-library-path+=C:\devenv\ii\trunk\components\FlexUIPlatform\lib-flexui\kap-layouts-1.6.2.swc
-compiler.external-library-path+=C:\devenv\ii\trunk\components\FlexUIPlatform\lib-flexui\kap-licence-1.6.1-commercial.swc
-compiler.external-library-path+=C:\devenv\ii\trunk\components\FlexUIPlatform\lib-flexui\MaskedTextInput.swc
-compiler.external-library-path+=C:\devenv\ii\trunk\components\FlexUIPlatform\lib-flexui\multicolumnform.swc
-compiler.external-library-path+=C:\devenv\ii\trunk\components\FlexUIPlatform\lib-flexui\svg-1.6.2.swc
-compiler.external-library-path+=C:\devenv\ii\trunk\components\FlexUIPlatform\build\flex\flexuiplatform-asset.swc
-js-output=C:\devenv\ii\trunk\components\FlexUIPlatform\build\flex\flexuiplatform

The second output ( consoleAS.out ) got generated when I tried to compile
the action script sources contained in one of the folders in the component.
Here is the command that I ran. The JS files get generated successfully in
this case.

C:\devenv\apache-royale-js\royale-asjs\js\bin\compc -compiler.locale=en_US
-load-config=C:/devenv/ii/trunk/tools/flex/flex4.1-adobe/frameworks/flex-config.xml
-compiler.source-path=C:\devenv\ii\trunk\components\FlexUIPlatform/src-flexui/
-include-sources+=C:\devenv\ii\trunk\components\FlexUIPlatform\src-flexui\cosm
-compiler.external-library-path+=C:\devenv\ii\trunk\components\FlexUIPlatform\lib-flexui\flexlib.swc
-compiler.external-library-path+=C:\devenv\ii\trunk\components\FlexUIPlatform\lib-flexui\automation.swc
-compiler.external-library-path+=C:\devenv\ii\trunk\components\FlexUIPlatform\lib-flexui\Cairngorm.swc
-compiler.external-library-path+=C:\devenv\ii\trunk\components\FlexUIPlatform\lib-flexui\CairngormEnterprise.swc
-compiler.external-library-path+=C:\devenv\ii\trunk\components\FlexUIPlatform\lib-flexui\diagrammer.swc
-compiler.external-library-path+=C:\devenv\ii\trunk\components\FlexUIPlatform\lib-flexui\drumbeatinsight.swc
-compiler.external-library-path+=C:\devenv\ii\trunk\components\FlexUIPlatform\lib-flexui\FlexSpy.swc
-compiler.external-library-path+=C:\devenv\ii\trunk\components\FlexUIPlatform\lib-flexui\granite.swc
-compiler.external-library-path+=C:\devenv\ii\trunk\components\FlexUIPlatform\lib-flexui\kap-layouts-1.6.2.swc
-compiler.external-library-path+=C:\devenv\ii\trunk\components\FlexUIPlatform\lib-flexui\kap-licence-1.6.1-commercial.swc
-compiler.external-library-path+=C:\devenv\ii\trunk\components\FlexUIPlatform\lib-flexui\MaskedTextInput.swc
-compiler.external-library-path+=C:\devenv\ii\trunk\components\FlexUIPlatform\lib-flexui\multicolumnform.swc
-compiler.external-library-path+=C:\devenv\ii\trunk\components\FlexUIPlatform\lib-flexui\svg-1.6.2.swc
-compiler.external-library-path+=C:\devenv\ii\trunk\components\FlexUIPlatform\build\flex\flexuiplatform-asset.swc
-js-output=C:\devenv\ii\trunk\components\FlexUIPlatform\build\flex\flexuiplatform

Again, it is hard to see/understand what is going on without a verbose
output.





--
Sent from: http://apache-royale-development.20373.n8.nabble.com/


Re: Migrating Enterprise Flex Application

2018-07-12 Thread chembali
Good point. I had tried to compile one component. It seems to have worked
fine. No errors. But did not generate the JS output. I am going back and
trying small sets now. The first set worked just fine and generated the JS
output successfully. 



--
Sent from: http://apache-royale-development.20373.n8.nabble.com/