Guest User

Untitled

a guest
Jun 19th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.22 KB | None | 0 0
  1. stop();
  2.  
  3. function loadXML(loaded) {
  4. title = [];
  5. excerpt = [];
  6. image = [];
  7. type = [];
  8. postlink = [];
  9. if (loaded) {
  10. for (i=0; i<hypeXML.firstChild.childNodes.length; i++) {
  11. title[i] = hypeXML.firstChild.childNodes[i].attributes.name;
  12. excerpt[i] = hypeXML.firstChild.childNodes[i].attributes.description;
  13. image[i] = hypeXML.firstChild.childNodes[i].attributes.image;
  14. type[i] = hypeXML.firstChild.childNodes[i].attributes.type;
  15. postlink[i] = hypeXML.firstChild.childNodes[i].attributes.postlink;
  16.  
  17. flashTitle0.text = title[0];
  18. flashExcerpt0.text = excerpt[0];
  19. flashImage0.loadMovie(image[0]);
  20. flashType0.text = type[0];
  21. knapp1.getURL(postlink[0]);
  22.  
  23. flashTitle1.text = title[1];
  24. flashExcerpt1.text = excerpt[1];
  25. flashImage1.loadMovie(image[1]);
  26. flashType1.text = type[1];
  27. knapp2.getURL(postlink[1]);
  28.  
  29. flashTitle2.text = title[2];
  30. flashExcerpt2.text = excerpt[2];
  31. flashImage2.loadMovie(image[2]);
  32. flashType2.text = type[2];
  33. knapp3.getURL(postlink[2]);
  34.  
  35. flashTitle3.text = title[3];
  36. flashExcerpt3.text = excerpt[3];
  37. flashImage3.loadMovie(image[3]);
  38. flashType3.text = type[3];
  39. knapp4.getURL(postlink[3]);
  40. }
  41. } else {
  42. trace("No XML loaded...");
  43. }
  44. }
  45.  
  46. hypeXML = new XML();
  47. hypeXML.ignoreWhite = true;
  48. hypeXML.onLoad = loadXML;
  49. hypeXML.load("hype.xml");
  50.  
  51. knapp1.onRollOver = function() {
  52. gotoAndStop(1);
  53. flashExcerpt0.text = excerpt[0];
  54. flashImage0.loadMovie(image[0]);
  55. fader.loadMovie("fade.swf","2");
  56. };
  57.  
  58. knapp2.onRollOver = function() {
  59. gotoAndStop(2);
  60. flashExcerpt1.text = excerpt[1];
  61. flashImage1.loadMovie(image[1]);
  62. fader.loadMovie("fade.swf","2");
  63. };
  64.  
  65. knapp3.onRollOver = function() {
  66. gotoAndStop(3);
  67. flashExcerpt2.text = excerpt[2];
  68. flashImage2.loadMovie(image[2]);
  69. fader.loadMovie("fade.swf","2");
  70. };
  71.  
  72. knapp4.onRollOver = function() {
  73. gotoAndStop(4);
  74. flashExcerpt3.text = excerpt[3];
  75. flashImage3.loadMovie(image[3]);
  76. fader.loadMovie("fade.swf","2");
  77. };
  78.  
  79. knapp1.onRelease = function() {
  80. getURL(image[0]);
  81. }
  82.  
  83. knapp2.onRelease = function() {
  84. getURL(image[1]);
  85. }
  86.  
  87. knapp3.onRelease = function() {
  88. getURL(image[2]);
  89. }
  90.  
  91. knapp4.onRelease = function() {
  92. getURL(image[3]);
  93. }
Add Comment
Please, Sign In to add comment