1 Reply Latest reply on Nov 21, 2006 10:36 AM by tegnegi

    Loading movie in new level from variable

      What I'm trying to do is load a movie in another level wich is defined by a variable (i)

      On level 0 there is this piece of code
      i = 10;
      loadMovie("Home.swf", 10); (I've entered 10 instead of i because otherwise I wouldn't get anything at all)

      Now every time I go to another 'chapter' it has to load a movie into the next level

      From Home.swf I click the button to the next chapter wich contains:

      on (release) {
      loadMovie("chapter01.swf", _level0.i);

      This obviously doesn't work otherwise I wouldn't be posting here :p This whole thing does absolutely nothing :s
      Anyone any idea?

      Thanks in advance
        • 1. Re: Loading movie in new level from variable
          tegnegi Level 1
          everything is ok wid ur code jus replace loadMovie wid loadMovieNum and unloadMovie with unloadMovieNum...if u are targeting a level to load ur movies u use loadMovieNum and is u r target sum particular movie clip then u use loadMovie method....remember never load ne movie on level 0 coz that ll replace everything i.e. all the other movieclips