0 Replies Latest reply on Sep 14, 2006 5:44 AM by Dilroy

    Preloader actionscript dosen't work inside mclip


      I have a complex animation sequence that I have to put into a movie clip and place into another movie.
      The sequence has a pre loader movie clip on the first frame with the following actionscript attached to it:

      onClipEvent (load) {
      total = _root.getBytesTotal();
      onClipEvent (enterFrame) {
      loaded = _root.getBytesLoaded();
      percent = int(loaded/total*100);
      text = percent+"%";
      if (loaded == total) {

      When I put the sequence into a movie clip it dosn't play unless I delete the pre loader mclip actionscript. As I said before the animation sequence is very complex so it really needs this pre loader script to play smoothly.

      Is there a modification I can make to the script that will allow it to work when it is inside a movie clip???????