You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2020/10/15 18:52:50 UTC

[GitHub] [royale-asjs] vinitha11 opened a new issue #920: Migrating Flex(MXML/.as) to JS using Apache Royale

vinitha11 opened a new issue #920:
URL: https://github.com/apache/royale-asjs/issues/920


   we are in need of converting .mxml files to .js and .html format. so we have downloaded apache royale 0.9.4 version and trying to compile the same via command prompt. while doing we are facing issues with many import statements.
   
   When we tried to convert Rating.mxml file to js, after compilation .js'.html etc., generated for corresponding file. But when opening Rating.html file in ie browser we could see blank page. And when we opening the same file in notepad, we could see below statements. Please help to resolve this dependency error.
   
   goog.addDependency('../../../Rating.js', ['Rating'], ['mx.containers.TitleWindow', 'mx.containers.Canvas', 'mx.controls.Label', 'mx.containers.HBox', 'mx.controls.Spacer', 'mx.styles.StyleManagerImpl', 'org.apache.royale.html.beads.GroupView', 'org.apache.royale.html.beads.TitleBarView', 'org.apache.royale.html.beads.layouts.FlexibleFirstChildHorizontalLayout', 'org.apache.royale.html.beads.TitleBarMeasurementBead', 'org.apache.royale.html.beads.models.TitleBarModel', 'org.apache.royale.utils.EffectTimer', 'org.apache.royale.core.StatesWithTransitionsImpl', 'mx.containers.beads.CanvasLayout', 'org.apache.royale.html.beads.ContainerView', 'org.apache.royale.html.supportClasses.ScrollingViewport', 'org.apache.royale.html.beads.layouts.BasicLayout', 'org.apache.royale.html.beads.models.ViewportModel', 'org.apache.royale.html.beads.ImageView', 'org.apache.royale.html.beads.models.ImageModel', 'mx.containers.beads.PanelView', 'mx.containers.beads.BoxLayout', 'mx.containers.beads.models
 .PanelModel', 'mx.core.Container', 'org.apache.royale.html.beads.TitleBarView', 'org.apache.royale.html.beads.layouts.FlexibleFirstChildHorizontalLayout', 'org.apache.royale.html.beads.TitleBarMeasurementBead', 'org.apache.royale.html.beads.models.TitleBarModel', 'org.apache.royale.reflection.getDefinitionByName', 'mx.resources.ResourceManagerImpl', 'mx.core.FlexGlobals', 'org.apache.royale.utils.OSUtils', 'org.apache.royale.html.TitleBar', 'org.apache.royale.states.SetEventHandler', 'org.apache.royale.utils.MXMLDataInterpreter', 'org.apache.royale.states.AddItems', 'mx.styles.StyleManager', 'org.apache.royale.events.utils.KeyboardEventConverter', 'mx.containers.utilityClasses.Flex', 'org.apache.royale.events.MouseEvent', 'org.apache.royale.states.SetProperty', 'org.apache.royale.utils.LocaleUtils', 'mx.controls.beads.ToolTipBead', 'org.apache.royale.events.BrowserEvent', 'org.apache.royale.html.util.addElementToWrapper', 'org.apache.royale.core.IBorderPaddingMarginValuesImpl', 'org
 .apache.royale.core.styles.BorderStyles', 'mx.managers.ISystemManager', 'mx.managers.IFocusManagerComponent', 'mx.core.EdgeMetrics', 'mx.events.PropertyChangeEventKind', 'mx.managers.IFocusManager', 'mx.styles.CSSStyleDeclaration', 'org.apache.royale.utils.CSSUtils', 'org.apache.royale.binding.SimpleBinding', 'org.apache.royale.geom.Point', 'mx.resources.LocaleSorter', 'org.apache.royale.binding.ConstantBinding', 'org.apache.royale.html.CloseButton', 'org.apache.royale.events.utils.MouseEventConverter', 'mx.containers.utilityClasses.ConstraintRow', 'mx.managers.SystemManagerGlobals', 'mx.utils.StringUtil', 'org.apache.royale.effects.Effect', 'mx.events.KeyboardEvent', 'org.apache.royale.events.getTargetWrapper', 'mx.resources.ResourceManager', 'org.apache.royale.debugging.assertType', 'mx.core.IFlexModuleFactory', 'org.apache.royale.events.ElementEvents', 'mx.core.ContainerLayout', 'mx.core.ScrollPolicy', 'mx.display.Graphics', 'org.apache.royale.geom.Size', 'QName', 'org.apache.roy
 ale.states.State', 'org.apache.royale.core.WrappedHTMLElement', 'org.apache.royale.core.ValuesManager', 'org.apache.royale.events.ValueChangeEvent', 'org.apache.royale.core.IContentView', 'org.apache.royale.core.TextLineMetrics', 'org.apache.royale.html.beads.layouts.VerticalFlexLayout', 'org.apache.royale.core.IPopUpHost', 'org.apache.royale.binding.ContainerDataBinding', 'mx.core.LayoutElementUIComponentUtils', 'org.apache.royale.debugging.assert', 'org.apache.royale.html.beads.DisableBead', 'org.apache.royale.geom.Rectangle', 'org.apache.royale.html.beads.layouts.LayoutChangeNotifier', 'mx.modules.IModuleInfo', 'org.apache.royale.html.beads.DisabledAlphaBead', 'org.apache.royale.utils.UIUtils', 'org.apache.royale.core.layout.MarginData', 'org.apache.royale.states.Transition', 'mx.containers.PanelTitleBar', 'org.apache.royale.html.beads.TitleBarTitle', 'org.apache.royale.core.CallLaterBead', 'org.apache.royale.binding.MXMLBeadViewDataBinding', 'mx.managers.ICursorManager', 'mx.cor
 e.mx_internal', 'mx.core.FlexCSSStyles', 'mx.controls.Image', 'org.apache.royale.events.utils.EventUtils', 'org.apache.royale.states.ItemAndDescriptor', 'org.apache.royale.binding.GenericBinding', 'org.apache.royale.utils.PointUtils', 'org.apache.royale.binding.ChainBinding', 'org.apache.royale.core.ContainerBaseStrandChildren', 'org.apache.royale.html.supportClasses.PanelLayoutProxy', 'org.apache.royale.html.supportClasses.ContainerContentArea', 'org.apache.royale.utils.loadBeadFromValuesManager', 'mx.geom.Matrix', 'org.apache.royale.binding.PropertyWatcher', 'mx.resources.ResourceBundle', 'org.apache.royale.core.IBeadController', 'org.apache.royale.html.ToolTip', 'org.apache.royale.debugging.throwError', 'org.apache.royale.events.ValueEvent', 'mx.containers.BoxDirection', 'org.apache.royale.core.layout.LayoutData', 'org.apache.royale.utils.StringPadder', 'XMLList', 'org.apache.royale.events.utils.KeyConverter', 'XML', 'mx.containers.utilityClasses.FlexChildInfo', 'mx.containers.ut
 ilityClasses.ConstraintColumn', 'mx.events.PropertyChangeEvent', 'mx.events.FlexEvent']);
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] yishayw commented on issue #920: Migrating Flex(MXML/.as) to JS using Apache Royale

Posted by GitBox <gi...@apache.org>.
yishayw commented on issue #920:
URL: https://github.com/apache/royale-asjs/issues/920#issuecomment-710442430


   What is your build method? Are you using VSCode/ant/mvn/Flash Builder? What happens when you switch to a different build method (e.g. run ant from project dir)?
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] piotreky edited a comment on issue #920: Migrating Flex(MXML/.as) to JS using Apache Royale

Posted by GitBox <gi...@apache.org>.
piotreky edited a comment on issue #920:
URL: https://github.com/apache/royale-asjs/issues/920#issuecomment-711246127


   If you share your command line, I will try it.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] vinitha11 commented on issue #920: Migrating Flex(MXML/.as) to JS using Apache Royale

Posted by GitBox <gi...@apache.org>.
vinitha11 commented on issue #920:
URL: https://github.com/apache/royale-asjs/issues/920#issuecomment-709880144


   Thanks. we have downloaded nightly build - JSOnly Nightly Build - apache-royale-0.9.8-bin-js.zip
    when we tried to use .mxml file with Mx tags, facing issue like " This tag could not be resolved to an ActionScript class. It will be ignored.
   <mx:TitleWindow xmlns:s="library://ns.apache.org/royale/spark"  xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.apache.org/royale/mx" width="524" height="272"
   
   as suggested i have tried to change in asconfig.json file, config ="flex" from "royale", still problem exists. 
   i changed in the below asconfig.json file - \apache-royale-0.9.8-bin-js\royale-asjs\frameworks\projects\asconfig.json
   
   "config": "flex",
       "type": "lib",
       "compilerOptions": {
           "debug": true,
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] vinitha11 commented on issue #920: Migrating Flex(MXML/.as) to JS using Apache Royale

Posted by GitBox <gi...@apache.org>.
vinitha11 commented on issue #920:
URL: https://github.com/apache/royale-asjs/issues/920#issuecomment-711062049


   > What is your build method? Are you using VSCode/ant/mvn/Flash Builder? What happens when you switch to a different build method (e.g. run ant from project dir)?
   
   We are simply using command line(mxmlc.bat) for running Helloworld.mxml via command prompt.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] vinitha11 commented on issue #920: Migrating Flex(MXML/.as) to JS using Apache Royale

Posted by GitBox <gi...@apache.org>.
vinitha11 commented on issue #920:
URL: https://github.com/apache/royale-asjs/issues/920#issuecomment-709866581


    Thanks . i tried downloading nightly build- JSOnly Nightly Build - apache-royale-0.9.8-bin-js.zip
   we can able to migrate .mxml file to .js and .html file, but the html code consist of  goog.addDependency. and when i tried to open html file in web browser, it was a blank page. please guide to resolve the issue
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



Re: [GitHub] [royale-asjs] vinitha11 commented on issue #920: Migrating Flex(MXML/.as) to JS using Apache Royale

Posted by Piotr Grudzinski <Pi...@powersmiths.com>.
I've tried the same HelloWorld example and got the same error. I'm using
Flash Builder and to fix it I had to add +configname=flex in two places:
1. Using Project->Properties,
2. Using Run->External Tools->External Tools Configurations...

The console output shows "+configname=flex" twice. If one of these is
missing the build fails.

FlashBuilder settings:
    -source-path+=E:\Users\Piotr\Documents\FlashWOW\HelloW/src
    -compiler.accessible=true

-output=E:\Users\Piotr\Documents\FlashWOW\HelloW/bin-release/HelloWorld.swf
    -library-path+=E:\Users\Piotr\Documents\FlashWOW\HelloW/libs
    +configname=flex
    -locale
    en_US
    -js-output-type=jsc
    +configname=js
    +configname=flex
    -debug=false
    -fb


On Fri, Oct 16, 2020 at 1:55 PM GitBox <gi...@apache.org> wrote:

>
> vinitha11 commented on issue #920:
> URL:
> https://github.com/apache/royale-asjs/issues/920#issuecomment-710315533
>
>
>    No, we are facing issue while running HelloWorld example
>
>  \apache-royale-0.9.8-bin-js\royale-asjs\examples\mxroyale\HelloWorld\src\main\royale\HelloWorld.mxml(20):
> col: 1 Error: This tag could not be resolved to an ActionScript class. It
> will be ignored.
>
>    <mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
>    ^
>
>
> ----------------------------------------------------------------
> This is an automated message from the Apache Git Service.
> To respond to the message, please log on to GitHub and use the
> URL above to go to the specific comment.
>
> For queries about this service, please contact Infrastructure at:
> users@infra.apache.org
>
>
>

[GitHub] [royale-asjs] vinitha11 commented on issue #920: Migrating Flex(MXML/.as) to JS using Apache Royale

Posted by GitBox <gi...@apache.org>.
vinitha11 commented on issue #920:
URL: https://github.com/apache/royale-asjs/issues/920#issuecomment-710315533


   No, we are facing issue while running HelloWorld example
   \apache-royale-0.9.8-bin-js\royale-asjs\examples\mxroyale\HelloWorld\src\main\royale\HelloWorld.mxml(20): col: 1 Error: This tag could not be resolved to an ActionScript class. It will be ignored.
   
   <mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
   ^


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] carlosrovira commented on issue #920: Migrating Flex(MXML/.as) to JS using Apache Royale

Posted by GitBox <gi...@apache.org>.
carlosrovira commented on issue #920:
URL: https://github.com/apache/royale-asjs/issues/920#issuecomment-709564995


   0.9.4 is a very old version. better try with a nightly build


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] yishayw commented on issue #920: Migrating Flex(MXML/.as) to JS using Apache Royale

Posted by GitBox <gi...@apache.org>.
yishayw commented on issue #920:
URL: https://github.com/apache/royale-asjs/issues/920#issuecomment-710006827


   Is examples/mxroyale/HelloWorld.mxml working for you?
   
   From: vinitha11<ma...@github.com>
   Sent: Friday, October 16, 2020 10:35 AM
   To: apache/royale-asjs<ma...@noreply.github.com>
   Cc: Subscribed<ma...@noreply.github.com>
   Subject: Re: [apache/royale-asjs] Migrating Flex(MXML/.as) to JS using Apache Royale (#920)
   
   
   Thanks. we have downloaded nightly build - JSOnly Nightly Build - apache-royale-0.9.8-bin-js.zip
   when we tried to use .mxml file with Mx tags, facing issue like " This tag could not be resolved to an ActionScript class. It will be ignored.
   <mx:TitleWindow xmlns:s="library://ns.apache.org/royale/spark" xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.apache.org/royale/mx" width="524" height="272"
   
   as suggested i have tried to change in asconfig.json file, config ="flex" from "royale", still problem exists.
   i changed in the below asconfig.json file - \apache-royale-0.9.8-bin-js\royale-asjs\frameworks\projects\asconfig.json
   
   "config": "flex",
   "type": "lib",
   "compilerOptions": {
   "debug": true,
   
   —
   You are receiving this because you are subscribed to this thread.
   Reply to this email directly, view it on GitHub<https://github.com/apache/royale-asjs/issues/920#issuecomment-709880144>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAQBE7NCMTMF2TNFI6UZSADSK7ZU5ANCNFSM4SSLZF5A>.
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] yishayw commented on issue #920: Migrating Flex(MXML/.as) to JS using Apache Royale

Posted by GitBox <gi...@apache.org>.
yishayw commented on issue #920:
URL: https://github.com/apache/royale-asjs/issues/920#issuecomment-711020989


   I guess +configname was being overridden somewhere, which is why it now appears 3 times. Good to see that you have found a workaround.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] piotreky edited a comment on issue #920: Migrating Flex(MXML/.as) to JS using Apache Royale

Posted by GitBox <gi...@apache.org>.
piotreky edited a comment on issue #920:
URL: https://github.com/apache/royale-asjs/issues/920#issuecomment-711246127


   If you share your command line, I will try it.
   
   Try this (set your SDK):
   set RoyaleSDK=”D:\royale\0.9.8.1007\royale-asjs”
   %RoyaleSDK%\bin\mxmlc  -debug=false -targets=JSRoyale +configname=flex -- D:\Dev\Royale\HelloWorld\src\HelloWorld.mxml
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] vinitha11 removed a comment on issue #920: Migrating Flex(MXML/.as) to JS using Apache Royale

Posted by GitBox <gi...@apache.org>.
vinitha11 removed a comment on issue #920:
URL: https://github.com/apache/royale-asjs/issues/920#issuecomment-709866581


    Thanks . i tried downloading nightly build- JSOnly Nightly Build - apache-royale-0.9.8-bin-js.zip
   we can able to migrate .mxml file to .js and .html file, but the html code consist of  goog.addDependency. and when i tried to open html file in web browser, it was a blank page. please guide to resolve the issue
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] piotreky commented on issue #920: Migrating Flex(MXML/.as) to JS using Apache Royale

Posted by GitBox <gi...@apache.org>.
piotreky commented on issue #920:
URL: https://github.com/apache/royale-asjs/issues/920#issuecomment-711246127


   If you share your mxmlc.bat, I will try it.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] piotreky commented on issue #920: Migrating Flex(MXML/.as) to JS using Apache Royale

Posted by GitBox <gi...@apache.org>.
piotreky commented on issue #920:
URL: https://github.com/apache/royale-asjs/issues/920#issuecomment-710652575


   I've tried the same HelloWorld example and got the same error. I'm using Flash Builder 4.7 and to fix it I had to add +configname=flex in two places: 
   1. Using Project->Properties,
   2. Using Run->External Tools->External Tools Configurations...
   
   The console output shows "+configname=flex" twice. If one of these is missing the build fails. 
   
   FlashBuilder settings:
       -source-path+=E:\Users\Piotr\Documents\FlashWOW\HelloW/src
       -compiler.accessible=true
       -output=E:\Users\Piotr\Documents\FlashWOW\HelloW/bin-release/HelloWorld.swf
       -library-path+=E:\Users\Piotr\Documents\FlashWOW\HelloW/libs
       +configname=flex   
       -locale
       en_US
       -js-output-type=jsc
       +configname=js
       +configname=flex
       -debug=false
       -fb


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org