0 Replies Latest reply on Aug 6, 2008 11:26 AM by trycold

    Module error

    trycold Level 1
      Hi,

      In my app i have a datagrid which has buttons in it. When I click on button there is a popup. I am trying to create a module for this. I tried the following and I get "Load never completed error"

      <mx:Button xmlns:mx=" http://www.adobe.com/2006/mxml" click="getStatus()"
      toolTip="Show Status" cornerRadius="1"
      paddingLeft="0" paddingRight="0" height="20"
      >


      private function getStatus():void{
      m = ModuleManager.getModule("statusPopUp.swf");
      m.addEventListener(ModuleEvent.READY, renderSuggestionModule);
      m.addEventListener(ModuleEvent.ERROR, handleError);


      m.load();
      }

      private function renderSuggestionModule(event:ModuleEvent):void

      {

      pop2 = m.factory.create() as statusPopUp;
      PopUpManager.addPopUp(pop2,Application.application as DisplayObject, true);

      PopUpManager.centerPopUp(pop2);


      }

      public function closeSuggestion():void

      {

      PopUpManager.removePopUp(pop2);

      m.unload();

      }



      private function handleError(event:ModuleEvent):void

      {

      Alert.show(event.errorText,"Error");



      }