Actions  -  Drag Constrain

The “Constrain” Action is used to keep a draggable element in a specific area. To “Constrain” an element, set up an Action for that element as follows:

When -> Page -> Page Loaded
Target -> (Element to be Dragged)
Message -> Drag -> Constrain Drag
Properties -> To Container Object

plainbutton
The example to the right is the same as the example on the Overview page, with the exception that I´ve added the Action above to the “Drag Me!” element as well.  This ensures that the “Drag Me!” element will stay within a defined area and behave itself. ^_^

Now that we know how to make things move, and to control where they move around, the next step is to make moving things around mean something. This is what Collision Detection is all about.

Note:  All Actions described in this section have been tested with Fusion 3.x, 4.x, 5.x and MX.
           Actions will not currently work properly when viewed with Netscape 6.0

Go Back to Previous Page

Have a question that you can´t find the answer to? Want to report a possible bug?

Send a help request to NetObjects Technical Support