A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: need help

  1. #1
    Senior Member creekmonkey's Avatar
    Join Date
    Jul 2006
    Posts
    121

    need help

    Ok I need help again.

    I have a simple movie with boxes placed one above the other.
    when you click on a box it moves above the top box in the stack.

    I need the boxes that were orginally above the box clicked to move down the y position so the clicked box can take the top position.

    I have tried using array's with no avail, also tried using a distance function but can not figure out any way of doing this. Any help is aprieciated.
    Attached Files Attached Files

  2. #2
    Senior Member
    Join Date
    Dec 2006
    Posts
    274
    Well, you have to do some bookkeeping with your clones, array is fine for that.
    When a box is clicked you should search the array to find top box and swap y position with it.. or whatever you want to do then.

  3. #3
    Senior Member creekmonkey's Avatar
    Join Date
    Jul 2006
    Posts
    121
    Thanks Finjogi, I have been able to do that. But what I need if for all boxes above the one clicked to slide down one position.

    Example:
    There is 5 boxes stacked on top of each other.
    If I click on box 3, boxes 4 and 5 should slide down 1 position and box 3 should take box 5's position

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center