Build a unique query string for the module loading : ModuleLoader « Development « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Development » ModuleLoaderScreenshots 
Build a unique query string for the module loading
Build a unique query string for the module loading
            
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" height="500" width="400">
  <mx:Script>
    public function initModule():void {
      var s:String = "a.swf?" "firstName=" + ti1.text + "&lastName=" + ti2.text;
      m1.url = s;
    }
    </mx:Script>
  <mx:VBox>
      <mx:TextInput id="ti1" />
      <mx:TextInput id="ti2" />
      <mx:ModuleLoader id="m1" />
      <mx:Button id="b1" label="Submit" click="initModule()" />
    </mx:VBox>  
</mx:Application>

   
    
    
    
    
    
    
    
    
    
    
    
  
Related examples in the same category
1.Load and unload a module by using the Button controlsLoad and unload a module by using the Button controls
2.Load module using MXML
3.Unloading a module using ActionScript
4.Use multiple Use multiple <mx:AddChild>
5.Preload modulePreload module
6.Using the ModuleLoader class to load modules
7.Report the level of completion during the module's loading processReport the level of completion during the module's loading process
8.Loads and unloads the module when you click the buttonLoads and unloads the module when you click the button
9.Add event listener for loading a Module with ActionScriptAdd event listener for loading a Module with ActionScript
10.Add event listener for module loading progress with ActionScriptAdd event listener for module loading progress with ActionScript
11.Add event listener when module loading is ready with ActionScriptAdd event listener when module loading is ready with ActionScript
12.Add event listener for unloading a module with ActionScriptAdd event listener for unloading a module with ActionScript
13.Module load, progress, ready, setup and unload eventsModule load, progress, ready, setup and unload events
w___w__w.__j__a_v_a__2_s___._c___o_m__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.