Attn: AS experts

Out of context: Reply #6

  • Started
  • Last post
  • 15 Responses
  • tGP0

    post got cut off, here goes again...

    // if you want a movie loaded when _y of 300 is reached...
    var targetY = 300;

    // create a blank movieclip that will loop constantly, thus constantly checking the value of our conditional...
    _root.createEmptyMovieClip("hold... 100);
    _root.holder_mc.onEnterFrame = function () {
    // here i am using == to see if the _y value is exactly the same as the target, you could substitute it with greater than or less than if it only has to be above or below the target _y value...
    if (_root.myTargetedMovingClip._y == _root.targetY) {
    loadMovie("myMovie.swf", _root.clipToLoadInto_mc);
    }
    }

    Hope this helps someone...

    cheers
    j

View thread