home *** CD-ROM | disk | FTP | other *** search
/ Neil's C++ Stuff / 2016-02-neilstuff-weebly.iso / apps / audioPlayer2.swf / scripts / frame_1 / DoAction.as
Encoding:
Text File  |  2016-02-05  |  1.8 KB  |  107 lines

  1. if(_root.soundfile != undefined)
  2. {
  3.    _root.soundFile = _root.soundfile;
  4. }
  5. var options = new Object();
  6. if(_root.playerID != undefined)
  7. {
  8.    options.playerID = _root.playerID;
  9. }
  10. if(_root.demomode == "yes")
  11. {
  12.    options.demomode = true;
  13. }
  14. else if(_root.demomode == "no")
  15. {
  16.    options.demomode = false;
  17. }
  18. if(_root.autostart == "yes")
  19. {
  20.    options.autostart = true;
  21. }
  22. else if(_root.autostart == "no")
  23. {
  24.    options.autostart = false;
  25. }
  26. if(_root.animation == "no")
  27. {
  28.    options.animation = false;
  29. }
  30. else if(_root.animation == "yes")
  31. {
  32.    options.animation = true;
  33. }
  34. if(_root.loop == "yes")
  35. {
  36.    options.loop = true;
  37. }
  38. else if(_root.loop == "no")
  39. {
  40.    options.loop = false;
  41. }
  42. if(_root.encode == "yes")
  43. {
  44.    options.encode = true;
  45. }
  46. else if(_root.encode == "no")
  47. {
  48.    options.encode = false;
  49. }
  50. if(_root.remaining == "yes")
  51. {
  52.    options.remaining = true;
  53. }
  54. else if(_root.remaining == "no")
  55. {
  56.    options.remaining = false;
  57. }
  58. if(_root.noinfo == "yes")
  59. {
  60.    options.noinfo = true;
  61. }
  62. else if(_root.noinfo == "no")
  63. {
  64.    options.noinfo = false;
  65. }
  66. if(_root.killdownload == "yes")
  67. {
  68.    options.killdownload = true;
  69. }
  70. else if(_root.killdownload == "no")
  71. {
  72.    options.killdownload = false;
  73. }
  74. if(_root.checkpolicy == "yes")
  75. {
  76.    options.checkpolicy = true;
  77. }
  78. else if(_root.checkpolicy == "no")
  79. {
  80.    options.checkpolicy = false;
  81. }
  82. if(_root.rtl == "yes")
  83. {
  84.    options.rtl = true;
  85. }
  86. else if(_root.rtl == "no")
  87. {
  88.    options.rtl = false;
  89. }
  90. if(_root.initialvolume != undefined)
  91. {
  92.    options.volume = _root.initialvolume;
  93. }
  94. if(_root.buffer != undefined)
  95. {
  96.    options.bufferTime = _root.buffer;
  97. }
  98. if(_root.titles != undefined)
  99. {
  100.    options.titles = _root.titles;
  101. }
  102. if(_root.artists != undefined)
  103. {
  104.    options.artists = _root.artists;
  105. }
  106. Application.start(_root.soundFile,options);
  107.