1 Reply Latest reply on Dec 6, 2006 1:03 AM by nilu_only

    Multiple loading JPG with 'IF fails

    kansloos
      Hi folks

      I have an mc created on stage and I want to load multiple jpeg's from my library into this mc with the use of an if.
      the goal is an alpha grow to 100 . next picture. alpha grow to 100. next etc.

      This is the code i am using but after the if nothing works.


      Could somebody please help me out?

      I am in a tight spot here......... Thnx!




      function visible(mc,alpha){
      this.onEnterFrame=function(){
      i++;
      mc._alpha = 0+i;
      if (mc._alpha >=alpha){
      delete this.onEnterFrame;
      }
      }
      }


      holder.loadMovie("faded_1.jpg");
      holder._x=25;
      holder._y=25;

      if (visible(holder,100))
      {
      holder.loadMovie("faded_0.jpg",1);
      visible (holder,100);
      }


      You can mail me here too