0 Replies Latest reply on Dec 18, 2006 7:14 AM by Ukie_239

    Loading SWF

    Ukie_239 Level 1
      I have an application loading another application using the swfloader class, only to find out tabbing no longer worked inside the sub application would not work
      Now i just moved by menu into a component. When clicking a menu button, how can i load a new swf file? Currently I have:

      The case that would execute is "companies"

      public function menuHandler(event:ItemClickEvent):void {
      import mx.events.ItemClickEvent;
      import mx.controls.TabBar;
      import mx.events.MenuEvent;
      import mx.controls.Alert;


      switch (event.label) {
      case 'Companies':

      var ldr:Loader = new Loader();
      var url:String = " http://localhost/tips/bin/login.swf";
      var urlReq:URLRequest = new URLRequest(url);
      ldr.load(urlReq);

      //addChild(ldr);

      break;
      case 'Employees':
      //mySWFLoader.source = flexAppEmployeeCls;
      break;
      case 'Logout':
      showLogin();
      break;
      default:
      Alert.show("This feature is currently disabled.");
      break;
      }
      }