3 Replies Latest reply on Jun 22, 2008 3:09 PM by CipiClaudiu

    fade in empty movie clip

    CipiClaudiu Level 1
      Hi,

      I'm working on a project that is loading images into flash using xml.
      The flash is working, but not as I want. I want the images to fade in every time a thumb is pressed.
      The below code is fadeing the images only if they haven't been downloaded on the computer.

      [code]
      filesize = imageContainer.getBytesTotal();
      loaded = imageContainer.getBytesLoaded();
      if (loaded != filesize)
      {
      preloader._visible = true;
      preloader.preload_bar._xscale = 100 * loaded / filesize;
      firstTimeIn = false;
      }
      else
      {
      preloader._visible = false;
      if (imageContainer._alpha < 100)
      {
      imageContainer._alpha = imageContainer._alpha + 5;
      } // end if
      if (firstTimeIn == false)
      {
      xGoTo = undefined;
      yGoTo = undefined;
      imageContainer._x = 0;
      imageContainer._y = 0;
      imageContainer._alpha = 0;
      firstTimeIn = true;
      } // end if
      } // end else if

      If you can help me please write me. I ned this done by tomorrow.
      [code/]