2 Replies Latest reply on May 18, 2006 3:15 PM by mikezile

    preloader mc must play at least once

    mikezile
      I have a preloader made and it works fine, but I want to add an "and" statement to the if statement that currently says;

      if(_root.getBytesLoaded() == _root.getBytesTotal()) {
      gotoAndPlay(3);
      }
      I would like to be able to add (theoretically) "and frame of movieclip equals at least 50" to the "if" statement. The problem is, I don't know how to translate that into action script.

      The preloader is a your typical bar (which is actually getting bytes loaded) with a movie clip in the background to make it look a little smoother. I've tried using "_currentframe", but I think that only gets the frame of when an action takes place like a mouse click.

      my version of the action script looks like this but doesn't work.
      if(_root.getBytesLoaded() == _root.getBytesTotal() && movieclipname._currentframe >49) {
      gotoAndPlay(3);
      }