home *** CD-ROM | disk | FTP | other *** search
- // -* FreezeBehavior.js *-
- //
- // Name: Freeze behavior
- // Description:
- // Author:
- // Version: $Id: FreezeBehavior.js,v 1.3 2001/02/27 12:03:24 consumer Exp $
- //
-
- function FreezeBehavior()
- {
- // No need for an object with this behavior.
- }
-
- function FreezeBehaviorStart(solidName)
- {
- // var pos = TSMakeStringFromPoint(TSSolidGetPosition(solidName));
- TSUpdateNodeAttribute(solidName, 'fixed', '1');
- // TSSolidSetPosition(pos);
- }
-
- function FreezeBehaviorStop()
- {
- }
-
- //
- // Event functions
- //
-
- function FreezeBehaviorStartEvent(obj, event)
- {
- var targetSolid = TSGetExtraParam(event, 'targetSolid');
-
- if (targetSolid == "")
- FreezeBehaviorStart(obj);
- else
- FreezeBehaviorStart(targetSolid);
- }
-
- function FreezeBehaviorStopEvent(obj, event)
- {
- }
-