1 Reply Latest reply on Mar 5, 2008 5:00 AM by

    datagrid item renderer

    smscentral Level 1
      i have a datagrid with one of the column's itemrenderer as button .when i click this button i want to load a module.

      i am able to see the alert message that module has been loaded but i cannot see the module being displayed.

      my buttonrenderer.mxml
      <mx:Button xmlns:mx=" http://www.adobe.com/2006/mxml" label="Edit" click="loadModuleEditUser()">
      <mx:script>
      [Bindable]
      public var edituser:ModuleLoader;

      public function loadModuleEditUser():void{
      edituser = new ModuleLoader();
      edituser.addEventListener(ModuleEvent.READY, onModuleLoad);
      edituser.addEventListener(ModuleEvent.ERROR, onModuleError);
      edituser.url="editUser.swf";
      edituser.visible=true;
      edituser.loadModule();

      }

      public function onModuleLoad(e:ModuleEvent):void{
      Alert.show("loaded") // able to see this message on click

      }

      public function onModuleError(e:ModuleEvent):void{
      Alert.show("could not load");
      }
      </mx:Script>
      </mx:Button>


      but i dont see the module.....

      thankss