title: Restrict Alertbox/Pop-up to inidvdual module in flex 3
body: <p>I am trying to restrict a Alert-box to a specific module, it should not scope outside the module. I have kept to 2 tabs containing different modules in each. But the scope of alert is being global, and it is effecting the whole window other than limiting to the module area.
  Please look at below code.</p>
  
  <p>main.mxml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"&gt;
  &lt;mx:Script&gt;
      &lt;![CDATA[
            import mx.modules.*;
  
           public function createModule(m:ModuleLoader, s:String):void {
          if (!m.url) {
              m.url = s;
              return;
          }
          m.loadModule();
      }
  
      public function removeModule(m:ModuleLoader):void {
          m.unloadModule();
      }
  
  
      ]]&gt;
  &lt;/mx:Script&gt;
   &lt;mx:Panel title="Module Example" 
      height="90%" 
      width="90%" 
      paddingTop="10" 
      paddingLeft="10" 
      paddingRight="10" 
      paddingBottom="10"
   &gt;
      &lt;mx:TabNavigator id="tn" 
          width="100%" 
          height="100%" 
          creationPolicy="auto"&gt;
          &lt;mx:VBox id="vb1" label="Column Chart Module"&gt;                
              &lt;mx:Button 
                  label="Load"   click="createModule(chartModuleLoader, l1.text)"/&gt;
              &lt;mx:Button 
                  label="Unload" /&gt;
              &lt;mx:Label id="l1" text="module1.swf"/&gt;
              &lt;mx:ModuleLoader id="chartModuleLoader"/&gt;                                
          &lt;/mx:VBox&gt;
  
          &lt;mx:VBox id="vb2" label="Form Module"&gt;
              &lt;mx:Button 
                  label="Load"    click="createModule(formModuleLoader, l2.text)"/&gt;
              &lt;mx:Button 
                  label="Unload"/&gt;
              &lt;mx:Label id="l2" text="module2.swf"/&gt;
              &lt;mx:ModuleLoader id="formModuleLoader"/&gt;
          &lt;/mx:VBox&gt;
      &lt;/mx:TabNavigator&gt;
  &lt;/mx:Panel&gt;
  &lt;/mx:Application&gt;
  </code></pre>
  
  <p>Module1.mxml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;mx:Module xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="400"    height="300"&gt;
  &lt;mx:Button label="Click 1 " click="ini()"/&gt;
  &lt;mx:Script&gt;
      &lt;![CDATA[
          import mx.controls.Alert;
  
          public function ini():void
          {
              Alert.show("How","hello", 0,null,null,null,0);
          }
  
      ]]&gt;
  &lt;/mx:Script&gt;
  &lt;/mx:Module&gt;
  </code></pre>
  
  <p>Module2.mxml</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
   &lt;mx:Module xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="400" height="300"&gt;
  &lt;mx:Button label="Click 2 " click="ini1()"/&gt;
  &lt;mx:Script&gt;
      &lt;![CDATA[
          import mx.controls.Alert;
  
          public function ini1():void
          {
              Alert.show("Click 2","hello", 0,this);
          }
  
      ]]&gt;
  &lt;/mx:Script&gt;
   &lt;/mx:Module&gt;
  </code></pre>
  
  <p>Thank You</p>