home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 November / CDVD1105.ISO / Util / Winamp / Skins / Anime_Shogo.wal / scripts / Noname2.maki (.txt) < prev    next >
Winamp Compiled Maki Script  |  2004-08-26  |  1KB  |  45 lines

  1. /* Note: a decompiler is no invitation to steal code.
  2.    Please respect the the copyright */
  3.  
  4. #include "std.mi"
  5. Global Button Button2;
  6. Global AnimatedLayer AnimatedLayer3;
  7. Global Layer Layer4;
  8. Global Int Int5;
  9. Global Int Int6;
  10. Global Int Int7;
  11.  
  12.  
  13. System.onScriptLoaded()
  14. {
  15. Group Group8;
  16. Group8 = System.getScriptGroup();
  17. AnimatedLayer3 = Group8.findObject(( "animationlayer"));
  18. Button2 = Group8.findObject(( "animationbutton"));
  19. Layer4 = Group8.findObject(( "animinfo"));
  20. Int6 = System.StringToInteger(Layer4.getXmlParam(( "x")));
  21. Int7 = System.StringToInteger(Layer4.getXmlParam(( "y")));
  22. Int5 = 0;
  23. return Null;
  24. }
  25.  
  26. Button2.onLeftButtonUp(int x, int y)
  27. {
  28. if(( ( Int5 == 1) && AnimatedLayer3.isStopped())) {
  29. Int5 = 0;
  30. AnimatedLayer3.setStartFrame(Int6);
  31. AnimatedLayer3.setEndFrame(Int7);
  32. AnimatedLayer3.play();
  33. } else {
  34. if(( ( Int5 == 0) && AnimatedLayer3.isStopped())) {
  35. Int5 = 1;
  36. AnimatedLayer3.setStartFrame(Int7);
  37. AnimatedLayer3.setEndFrame(Int6);
  38. AnimatedLayer3.play();
  39. }
  40. }
  41. return Null;
  42. }
  43.  
  44.  
  45.