Flash help urgent

Out of context: Reply #13

  • Started
  • Last post
  • 16 Responses
  • phirschybar0

    ok.. so open the debugger when you preview your movie. Check the properties of the image that is moving behind the mask. Look specifically at the _x and _y values. When your image gets close to the left and right edges, take note of what _x is and do the same for _y at the top and bottom edges.

    Then, set some limits by adding code to your onEnterFrame controls (assuming you are using onEnterFrame... And add something like:

    if (myMC._x > 100){
    myMC._x = 99;
    }

    and do this for the other 3 edges as well....or something like this so you create a wall for the edges of the image. Its not the most elegant solution but you can find ways to make it work... does this help?

View thread