Hi Alex,

I created the application and compiled with FB :

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009";
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">

    <fx:Metadata>
        [ResourceBundle("messages")]
    </fx:Metadata>

    <fx:Declarations>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>

    <s:layout>
        <s:VerticalLayout gap="10" paddingRight="10" paddingLeft="10" paddingTop="10" paddingBottom="20" />
    </s:layout>

    <s:Button id="button" width="100" label="{resourceManager.getString('messages', 'userName')}" />
    <s:Button id="button2" width="100" label="Password :" />

</s:Application>



It is working and requires the libraries :
framework_4.6.0.23201.swf
spark_4.6.0.23201.swf
textLayout_2.0.0.232.swf




This file is for royale :

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009";
         xmlns:s="library://ns.apache.org/royale/spark"
         xmlns:mx="library://ns.apache.org/royale/mx"
         xmlns:comps="com.likya.pinara.comps.*"
         width="100%">

    <fx:Metadata>
        [ResourceBundle("messages")]
    </fx:Metadata>

    <fx:Script>
        <![CDATA[
        ]]>
    </fx:Script>

    <fx:Declarations>

    </fx:Declarations>

    <s:layout>
        <s:VerticalLayout gap="10" paddingRight="10" paddingLeft="10" paddingTop="10" paddingBottom="20" />
    </s:layout>

    <s:Button id="button" width="100" label="{resourceManager.getString('messages', 'userName')}" />
    <s:Button id="button2" width="100" label="Password :" />

</s:Application>

When compile with royale it gets the message with flash player :



And the build output :

end of list of source files
Dec 17, 2018 11:41:40 PM com.google.javascript.jscomp.LoggerErrorManager println WARNING: D:/dev/royale-emulation-works/github/royale-testing/src/main/bin/js-debug/mx/controls/listClasses/VirtualDataItemRendererFactoryForICollectionViewData.js:144: WARNING - Variable referenced before declaration: dataGroup   ir = org.apache.royale.utils.Language.as(this.itemRendererFactory.createItemRenderer(dataGroup), org.apache.royale.core.ISelectableItemRenderer);
^^^^^^^^^

Dec 17, 2018 11:41:40 PM com.google.javascript.jscomp.LoggerErrorManager println WARNING: WARNING - Failed to resolve sourcemap: D:/dev/royale-emulation-works/github/royale-testing/src/main/bin/js-debug/mx/controls/listClasses/VirtualDataItemRendererFactoryForICollectionViewData.js.map

Dec 17, 2018 11:41:40 PM com.google.javascript.jscomp.LoggerErrorManager println WARNING: D:/dev/royale-emulation-works/github/royale-testing/src/main/bin/js-debug/mx/managers/SystemManager.js:196: WARNING - unreachable code
  return null;
  ^^^^^^^^^^^^

Dec 17, 2018 11:41:40 PM com.google.javascript.jscomp.LoggerErrorManager println WARNING: WARNING - Failed to resolve sourcemap: D:/dev/royale-emulation-works/github/royale-testing/src/main/bin/js-debug/mx/managers/SystemManager.js.map

Dec 17, 2018 11:41:40 PM com.google.javascript.jscomp.LoggerErrorManager println WARNING: D:/dev/royale-emulation-works/github/royale-testing/src/main/bin/js-debug/spark/components/Group.js:100: WARNING - Suspicious code. This code lacks side-effects. Is there a bug?   if (this.spark_components_Group__mxmlContent != null && this.spark_components_Group__mxmlContent != value) {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Dec 17, 2018 11:41:40 PM com.google.javascript.jscomp.LoggerErrorManager println WARNING: D:/dev/royale-emulation-works/github/royale-testing/src/main/bin/js-debug/spark/layouts/VerticalLayout.js:1050: WARNING - Redeclared variable: targetHeight   var /** @type {number} */ targetHeight = Math.max(0, layoutTarget.height - this.paddingTop - this.paddingBottom);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Dec 17, 2018 11:41:40 PM com.google.javascript.jscomp.LoggerErrorManager println WARNING: D:/dev/royale-emulation-works/github/royale-testing/src/main/bin/js-debug/spark/layouts/supportClasses/LayoutElementHelper.js:77: WARNING - Parse error. illegal use of unknown JSDoc tag "arg"; ignoring it
 *  @arg result :  optional Array to save an Array memory allocation
    ^

Dec 17, 2018 11:41:40 PM com.google.javascript.jscomp.LoggerErrorManager printSummary
WARNING: 0 error(s), 7 warning(s), 97.8% typed
The project 'FindBug' has been successfully compiled and optimized.
67.000541118 seconds

What else should I check ?

Thanks,
Serkan


17.12.2018 09:51 tarihinde serkan....@likyateknoloji.com yazdı:
Alex,

I do not want you to do anything if you do not want !

I am just trying to make it clear for me what you mean. Thats all.

Thanks,
Serkan


Alinti Alex Harui <aha...@adobe.com>

Serkan,

 You posted an example about Resources claiming it didn't work in Royale.  I don't think that example would work in Flex.  I'm not going to investigate why your example doesn't work in Royale until your prove that it did work in Flex.

Thanks,
-Alex

Reply via email to