0 Replies Latest reply on Sep 20, 2007 9:01 AM by yevri

    Current movie  _level4, then load...

    yevri
      How should I create this?

      I have a movie that calls in a bunch of movies into _level4 - each one loads the next one into the level. At the last minute, the client changed his mind and wants controls to pause/play and skip to the next movie. I'm putting the controls into level6 I guess.

      What's the best way to check to see what movie is loaded into level 4, and if it's a certain movie, make the next button go to the next movie in the list and the previous button go to the previous movie in the list? I'm thinking an array, but don't know how to set this up. This was already due, so any help with how to write the code would be great too.

      So the logic for the next button would be:

      if the movie in _level4 == muddyjim1.swf;
      _level4.loadMovie("busysun2.swf");

      Not sure of the code for that though and if you have to set up a listener, etc. Do I set and array that says if muddyjim1 then prevmov ==intro.swf and nextmov==busysun2.swf and so on? I had told the other programmer to name these program1.swf, program2.swf, etc. but he didn't - would that be easier?

      The names of the movies are:

      intro.swf
      muddyjim1.swf
      busysun2.swf
      whenliza3.swf
      horidfly4.swf
      gentle5.swf
      snagg6.swf
      farmwell7.swf
      kingnic8.swf
      polite9.swf
      unclesam10.swf
      thought11.swf
      silent12.swf
      conclu.swf
      menu.swf

      Thanks,

      Yevri