monday flash Q

Out of context: Reply #3

  • Started
  • Last post
  • 11 Responses
  • unfittoprint0

    *bigger aansmaller substitute the arrows

    //It's never a good idea to call levels. Call the target object [MC] directly.

    loopCoords = function(x1,x2,y1,y2){
    if(MC._x bigger x1 && MC._x smaller x2 && MC._y bigger y1 && MC._y smaller y2){
    targetMC.gotoAndPlay("go!);
    }

    checkCoords = function(x1,x2,y1,y2){
    clearinterval(coordsLoop);
    coordsLoop = setInterval(this, "loopCoords", 30, x1, x2, y1, y2);
    }

    //usage ie.
    checkCoords(100,200,50,400);

    andother thing use loadMovie instead of loadMovieNum:
    myMC.loadMovie(nextmovie);

View thread