3 Replies Latest reply on Jun 24, 2008 1:07 PM by Newsgroup_User

    error: Statement must appear within on/onClipEvent handler

    webhildutza
      I'm getting this error Scene=Scene1, Layer=Layer 3, frame=1, Line1
      Statement must appear within on/onClipEvent handler
      shape.swapDepths(_root.getNextHighestDepth());

      i'm using this code:
      shape.swapDepths(_root.getNextHighestDepth());
      //shape is a movie clip

      stop();
      this.attachMovie('bcPlayer','bcPlayerInstance',this.getNextHighestDepth());
      //bcPlayerInstance._xscale = 75;
      //bcPlayerInstance._yscale = 75;
      bcPlayerInstance._y = -50;
      bcPlayerInstance._x = -5;
      //bcPlayerInstance is a movie clip

      please help anyone knows what i'm doing wrong