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/11/16 10:12:19 UTC

[GitHub] [royale-asjs] Melliti opened a new issue #934: SharedObject not found without information about +configname=flex flag

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


   Hi,
   
   I'm working on a migration from Flex to Apache Royale. I had an issue with SharedObject and I fixed it but i don't understand why I had an issue and the solution.
   
   first, I follow the syntax as it's written here:
   `https://apache.github.io/royale-docs/features/loading-external-data/localsharedobject`
   But, i get this error:
   `Type was not found or was not a compile-time constant: SharedObject.`
   
   I did some research and i found a stackOverflow post that suggests to import SharedObject:
   `import mx.net.SharedObject;`
   And then I had this error:
   `Definition mx.net.SharedObject could not be found`
   
   If i add `+configname=flex` it compiles and everything is fine.
   
   So, my questions are:
   - **What exactly do `+configname=flex`?** I found this on a post: "this option ensures the compiler takes care of any existing flex code" from https://walkingtree.tech/getting-started-apache-royale/
   - **Why it doesn't work without `+configname=flex` while i'm following the documentation?**
   


----------------------------------------------------------------
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] Melliti commented on issue #934: SharedObject not found without information about +configname=flex flag

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


   Thanks for your answer.
   
   So i'm confusing two things, i need a better definition of "emulation" please, because I thought Jewel and Basic were an emulation of Flex. And you were right I use Jewel and other libraries
   
   For the separation you mentionned of MXRoyale from Apache Royale, will Apache Royale support every classes from MXRoyale by default in the future?
   
   I'm working on VScode and I build on the terminal


----------------------------------------------------------------
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 #934: SharedObject not found without information about +configname=flex flag

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


   Hi,
   
   I understand from your question that your migration is not with emulation, but with Jewel, Basic, or other library.
   SharedObject is a class from MXRoyale. We want to separate MXRoyale at some point (I know @greg-dove has this already done in his machine and soon will be added). In the meanwhile you need to add MXRoyale library to your compilation so the classes there can be found.
   Don't know the way you're building, if with Maven, Ant or IDEs. Each one has different approaches. 
   configname=flex just add a configuration that includes directly MXRoyale lib.
   Instead using royale default, doesn't have MXRoyale, hence you need to add it on your own.
   HTH
   Carlos


----------------------------------------------------------------
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 #934: SharedObject not found without information about +configname=flex flag

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


   MXRoyale and SparkRoyale are the emulation of Flex components. MXRoyale are built with Basic as foundation so it's the fastest way to migrate from Flex. The cons: is not focused on styles just on make it work and other modern things like responsive, touch devices,... also things like size of Flex or other things that could be (or not) an issue from Flex will be there (so no PAYG focus, or separation of beads). Just the compilation touching as less code as possible is a challenge itself.
   
   Jewel is based on Basic too, but it try to leverage the best of Royale and modern web development, so the best of both worlds. Many things comes from Flex too, since there was many, many good things, but others are done in a modern way and also it focus on themes, look and feel and responsiveness and modern touch devices. Other option is Spectrum too, that is not part of Royale itself, but an external library that's currently developed and maintained.
   
   if you use just Jewel and VSCode you can add MXRoyale in the following way:
   ```
   "library-path": [
               "${royalelib}/js/libs/MXRoyaleJS.swc"
           ],
           "js-library-path": [
               "${royalelib}/js/libs/MXRoyaleJS.swc"
           ],
   ```
   
   HTH


----------------------------------------------------------------
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