3 Replies Latest reply on Feb 14, 2008 7:12 AM by Damon Edwards

    Using varibles in targets

      function LoadThumbnails(image, miniclip) {
      miniclip._alpha = 0;
      loadMovie(image, miniclip);
      Loaded = miniclip.getBytesLoaded();
      Total = miniclip.getBytesTotal();
      if (Loaded == Total) {
      miniclip._alpha +=10;

      As you can see i have a created a straight forward function that loads an image in to a movie clip. The varible miniclip is used to specify the movieclip the image will load into and this works correctly. However the movie clip's alpha is not affected. I think this is because flash is looking for a movie clip named miniclip not the varible miniclip contains. Is it possible to use a varible when setting movieclip properities ie alpha? if so how