2 Replies Latest reply on May 26, 2010 9:41 AM by Flex harUI

    I am unable to load a ModuleLoader within the current state.

    majester8425

      I have an application with three states. In one of the states is a ModuleLoader.

       

      If I set the url within the ModuleLoader all is fine

       

      <mx:ModuleLoader

       

       

      x="0" y="0" id="workPaneMl" width="100%" height="100%" url="modules/mymodule.swf"/>

       

       

      But if I then try and change it , nothing happens. This is only a problem when its using a state not if I do this in a single state application.

       

       

      currentState =

       

      "LoggedIn";

      w

       

       

      orkPaneMl.unloadModule();

      w

       

       

      orkPaneMl.url = "modules/" + event.moduleNm;

      w

       

       

      orkPaneMl.loadModule();

       

      Is there something I should be doing like

       

      currentState.ModuleLoader.........

       

      Or Must this be done within a state initialize function