7 Replies Latest reply on May 4, 2010 8:10 PM by rextheodore7

    Module Communication (Flash Builder 4)

    rextheodore7

      Hello, is there anyone knows about module communication to the main.mxml?

      in past sdk, i can create an instance of a module..

      code will be like this,

       

                     var moduleInfo:IModuleInfo = moduleEvent.module;
                    var pw:PopUpWindow = moduleInfo.factory.create() as PopUpWindow;
                     
                      pw.title = "Barrack";
                      pw.desc = "Barrack Barrack Barrack Barrack Barrack Barrack Barrack Barrack Barrack Barrack Barrack Barrack Barrack Barrack Barrack Barrack Barrack Barrack Barrack Barrack";
                      pw.x = 62;
                      pw.y = 10;
                         
                      if(windowDisplayed){
                          removeElementAt(getElementIndex(pw));
                          windowDisplayed = false;
                      }
                     
                      addElement(pw);
                      windowDisplayed = true;

       

      In the new flash builder 4,

      i can't do it again..

       

      please help me..