FLASH HELP!!

Out of context: Reply #3

  • Started
  • Last post
  • 10 Responses
  • tommyo0

    On a quick look at your file it seems like you're missing some code to make this all happen, first of all you're probably going to want to 'snap' each piece into it's spot if the user drops it close enough to the co-ordinates you want. So you logic might follow something like:

    1 drag piece A
    2 drop piece A
    3 if piece A _x value is greater than __ and less than ___
    4 repeat #3 for _y value
    5 if that statement is true then you would want to 'snap' the piece into it's exact co-ordinantes
    6 Set a boolean true variable that declares piece A is in its home.
    7 run a for loop to check and see if all the pieces variables are now true.
    8 if that function passes and all are in their place then you would gotoAndStop ("rank");

    at least that's the logic I would use to solve your flash dilemma.

View thread