flash help!!!!

Out of context: Reply #7

  • Started
  • Last post
  • 8 Responses
  • steadyvibe0

    the code i have is :

    onClipEvent (load) {
    _x = 800;
    div = 6;
    //This value just determines the speed
    //the transistions.
    }
    //Here we constantly check for new values of
    // _x and _y. These values are determined by endX and endY.
    //We divide the difference by div to have an value that
    //continues to change until the equation is true.
    //Try changing the 'enterFrame' with 'Load' to see the
    //difference. You would then have to click on a button
    //several times before the transistion completes.
    onClipEvent (enterFrame) {
    _x += (_level0.endX-_x)/div;
    //We then use the onRelease method to determine the
    //new values of endX and endY. This is a new feature
    //in Flash MX.
    _root.BTNright.onRelease = function() {
    if (_level0.endX=-0) {
    _level0.endX =-0;
    _root.BTNleft._alpha = 20;
    _root.BTNleft.enabled = false;
    } else {
    _level0.endX += 623;
    _root.BTNright._alpha = 100;
    _root.BTNright.enabled = true;

    }
    };
    }

View thread