2 Replies Latest reply on Apr 27, 2007 10:38 AM by Newsgroup_User

    Triggers after drag / drop objects

    tomnicholson
      hi
      i'm making a simple "game" where shapes are put into category boxes,
      after all the shapes are put into place i want a box to pop up, i have the attached code:

      (you can ignore the "2_1_" this is just my referencing...)

      where would i place this code? the whole thing is on one frame

      Thanks

      Tom

        • 1. Re: Triggers after drag / drop objects
          tomnicholson Level 1
          bump
          if people don't understand the question can they ask for an explanation...
          i really need help on this!
          • 2. Re: Triggers after drag / drop objects
            Level 7

            "tomnicholson" <webforumsuser@macromedia.com> wrote in message
            news:f0t9jj$mup$1@forums.macromedia.com...
            > bump
            > if people don't understand the question can they ask for an explanation...
            > i really need help on this!

            Tom
            1. You'll need scripts to make the shapes draggable
            2. You'll need something like onClipEvent(enterFrame) to poll the locations
            of the shape clips
            3. You'll need to make sure the instance names you reference in your code
            are correct

            You might take a look at the drag and drop template in Common Libraries |
            Learning Interactions.

            Contact me offline. I can give you some code more or less along the lines of
            the template that I built for a fairly complex D&D interaction which could
            easily do what you need.

            Marc Lee
            marc@mlmultimedia.com