home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 November / CHIP_CD_2003-11.iso / software / animfx / setupanimfx.exe / #setuppath# / interfacedemo.swf / scripts / DefineButton2_446 / BUTTONCONDACTION on(release).as
Encoding:
Text File  |  2003-09-25  |  622 b   |  28 lines

  1. on(release){
  2.    _root.interfaceholder.y1 -= 5;
  3.    _root.interfaceholder.y2 -= 5;
  4.    _root.interfaceholder.y3 -= 5;
  5.    _root.interfaceholder.y4 -= 5;
  6.    _root.interfaceholder.y5 -= 5;
  7.    if(_root.interfaceholder.y1 < 0)
  8.    {
  9.       _root.interfaceholder.y1 = 0;
  10.    }
  11.    if(_root.interfaceholder.y2 < 0)
  12.    {
  13.       _root.interfaceholder.y2 = 0;
  14.    }
  15.    if(_root.interfaceholder.y3 < 0)
  16.    {
  17.       _root.interfaceholder.y3 = 0;
  18.    }
  19.    if(_root.interfaceholder.y4 < 0)
  20.    {
  21.       _root.interfaceholder.y4 = 0;
  22.    }
  23.    if(_root.interfaceholder.y5 < 0)
  24.    {
  25.       _root.interfaceholder.y5 = 0;
  26.    }
  27. }
  28.