home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 221 - Disc 1 / DPCS0706.ISO / Full / Amapi / data1.cab / Common / 3SPACE / FreezeBehavior.js < prev    next >
Encoding:
JavaScript  |  2001-06-18  |  795 b   |  42 lines

  1. // -* FreezeBehavior.js *-
  2. //
  3. // Name: Freeze behavior
  4. // Description: 
  5. // Author:
  6. // Version: $Id: FreezeBehavior.js,v 1.3 2001/02/27 12:03:24 consumer Exp $
  7. //
  8.  
  9. function FreezeBehavior()
  10. {
  11.   // No need for an object with this behavior.
  12. }
  13.  
  14. function FreezeBehaviorStart(solidName)
  15. {
  16. //  var pos = TSMakeStringFromPoint(TSSolidGetPosition(solidName));
  17.   TSUpdateNodeAttribute(solidName, 'fixed', '1');
  18. //  TSSolidSetPosition(pos);
  19. }
  20.  
  21. function FreezeBehaviorStop()
  22. {
  23. }
  24.  
  25. //
  26. // Event functions
  27. //
  28.  
  29. function FreezeBehaviorStartEvent(obj, event)
  30. {
  31.   var targetSolid = TSGetExtraParam(event, 'targetSolid');
  32.  
  33.   if (targetSolid == "")
  34.     FreezeBehaviorStart(obj);
  35.   else
  36.     FreezeBehaviorStart(targetSolid);
  37. }
  38.  
  39. function FreezeBehaviorStopEvent(obj, event)
  40. {
  41. }
  42.