0 Replies Latest reply on Nov 21, 2006 2:09 AM by Meflex

    how to use <explorer:loaderPanel> in .mxml file

      plz can anyone tell me how can i unload .swf file using <explorer:loaderPanel>.

      To load .swf file I have code like this ....
      import flash.events.*;
      import mx.events.*;
      import mx.controls.*;

      private function treeChanged(event:Event):void
      trace("treeChanged is called");

      var nodeApp:String = compLibTree.selectedItem.@app;
      if (nodeApp != null && nodeApp != "")
      trace("inside if loop and value of nodeApp is ="+nodeApp);
      swfLoader.loadApp(nodeApp + ".swf");
      swfLoader.unloadApp(nodeApp + ".swf");
      //vs.loadSource(nodeApp, compLibTree.selectedItem.@src);
      trace("inside else loop");
      compLibTree.expandItem(compLibTree.selectedItem, !compLibTree.isItemOpen(compLibTree.selectedItem), true);

      <explorer:loaderPanel id="swfLoader" width="100%" height="50%"/>

      i.e to load file i can use .loadApp(nodeApp + ".swf") method ...can anyone tell me to unload .swf file which method should be used?