Dakshinads commented on issue #453: module is not working .not prompt a module 
window
URL: https://github.com/apache/royale-asjs/issues/453#issuecomment-523863627
 
 
   This is MainJewelApp.mxml
   <?xml version="1.0" encoding="UTF-8"?>
   
   <j:Application xmlns:fx="http://ns.adobe.com/mxml/2009";
                  xmlns:j="library://ns.apache.org/royale/jewel"
                  xmlns:js="library://ns.apache.org/royale/basic"
                  xmlns:html="library://ns.apache.org/royale/html">
   
       <fx:Script>
                <![CDATA[
               import org.apache.royale.jewel.ModuleLoader;   
             
               public function asc_loadModule():void
               {
                   new_moduleLoader.loadModule();
               }
                ]]>
        </fx:Script>
       
       <j:beads>
           <js:ApplicationDataBinding />
       </j:beads>
   
       <j:initialView>
           <j:View>
           
               <js:beads>
                   <j:HorizontalCenteredLayout/>
               </js:beads>
   
               
           <j:Card id="dd">
   
                   <html:H3 text="Dividing an Apache Royale application with 
modules"/>
                   
                   <j:Label html="This example uses Modules to load parts of 
the application"/>
   
                   <j:ModuleLoader localId="new_moduleLoader"
                                   modulePath="modules" moduleName="asc" />
                   
                   
                   <j:Button text="Load a Module" emphasis="secondary" 
click="asc_loadModule()"/>
           </j:Card>
           </j:View>
       </j:initialView>
   </j:Application>
   
   
   this is asc.mxml(module)
   <?xml version="1.0" encoding="utf-8"?>
   
   <j:Module xmlns:fx="http://ns.adobe.com/mxml/2009";
           xmlns:j="library://ns.apache.org/royale/jewel"
           xmlns:js="library://ns.apache.org/royale/basic"
           initComplete="initModule()"
           >
   
      <fx:Script>
           <![CDATA[
               import org.apache.royale.utils.css.loadCSS;
   
             
               private function initModule():void
               {
                 
loadCSS('https://fonts.googleapis.com/icon?family=Material+Icons');       
               }
           ]]>
       </fx:Script> 
   
       <js:beads>
           <js:ContainerDataBinding/>
           <j:VerticalLayout/>
       </js:beads>
   
       
       <j:valuesImpl>
           <js:SimpleCSSValuesImpl/>
       </j:valuesImpl>
   
        <j:HGroup gap="3">
           <j:IconTextInput>
               <j:beads>
                   <j:TextPrompt prompt="Search..."/>
                   <j:SizeControl size="xlarge"/>
               </j:beads>
               <j:icon>
   
                   <js:FontIcon text="{MaterialIconType.SEARCH}" 
material="true"/>
               </j:icon>
           </j:IconTextInput>
           <j:Button text="Search" emphasis="secondary">
               <j:beads>
                   <j:SizeControl size="xlarge"/>
               </j:beads>
           </j:Button>
           
       </j:HGroup>
   
   </j:Module>
   
   I am using visual studio code and compile Royale sdk
   
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to