Create a SharedObject : SharedObject « Data Model « Flex






Create a SharedObject

         


<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">

    <mx:Script>
        
            import flash.net.navigateToURL;

            private function goToURL() : void
            {
                navigateToURL( new URLRequest( newUrl.text ), target.selectedItem as String );
            }
      
    </mx:Script>

    <mx:TextInput id="newUrl" top="10" left="10" right="10" text="http://www.google.com/" />
    <mx:ComboBox id="target" top="40" left="10" dataProvider="{ [ '_blank', '_self' ] }" />
    <mx:Button label="Go" left="10" top="70" click="goToURL()" />

</mx:Application>
    

   
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Use SharedObject to transfer dataUse SharedObject to transfer data
2.Access a SharedObject Between Multiple Flash ApplicationsAccess a SharedObject Between Multiple Flash Applications
3.Optimize a Runtime Shared LibraryOptimize a Runtime Shared Library