1 Reply Latest reply on Jan 31, 2009 6:16 PM by kglad

    Query String if "No" Statement

    samuels2921
      Hi,
      I'm designing a flash based login system where when a user logs in it loads the welcome screen. Problem is , im trying to add code to tell flash if a variable equals anything else than "undefined" load that page.

      I want to say, if the query string variable (page) == "page2" load "page2.swf "but if there isn't any query string (undefined) load home (home.swf). here is my code snipet

      [CODE]
      if (page == "undefined") {
      page = "home";
      clearErrorFields();
      this.redirect.stop();
      } else {
      Load(page+".swf");
      }[/CODE]