3 Replies Latest reply on Mar 23, 2011 9:34 AM by kglad-zqbLf4

    problem with preloader in Cs5 with AS2

      I made a preloader in Cs5 with AS2 code:
      mask_mc._height = 1;
      this.onEnterFrame = function():Void
      var loading :Number = this.getBytesLoaded();
      var total :Number = this.getBytesTotal();
      var precent:Number = Math.round(loading/total*100);
      mask_mc._yscale = precent;
      txt.text = precent + "%";
      if (loading >= total)
      because I realized that what I'm used to in Cs4 is not working in Cs5. It works fine but, when I press a button that supose to go to another frame, it stock on frame 2.
      How can I solve it?