3 Replies Latest reply on Oct 5, 2010 8:06 AM by kglad

    Better way to write a bunch of IF statements

    juresti Level 1

      if(bookmark == "Q3"){
          movieHolder.loadMovie("Q_3.swf");
      }else if if(bookmark == "Q4"){

          movieHolder.loadMovie("Q_4.swf");

      }else if if(bookmark == "Q5"){

          movieHolder.loadMovie("Q_5.swf");

      }

      else if if(bookmark == "Q6"){

          movieHolder.loadMovie("Q_6.swf");

      }else if if(bookmark == "Q7"){

          movieHolder.loadMovie("Q_7.swf");

      }else if if(bookmark == "Q8"){

          movieHolder.loadMovie("Q_8.swf");

      }else if if(bookmark == "Q9"){

          movieHolder.loadMovie("Q_9.swf");

      }
      else {
      movieHolder.loadMovie("ShopOutsideAnim01.swf");
      }

       

      Any help is appreciated. Thanks.