Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stop();
- function loadXML(loaded) {
- title = [];
- excerpt = [];
- image = [];
- type = [];
- postlink = [];
- if (loaded) {
- for (i=0; i<hypeXML.firstChild.childNodes.length; i++) {
- title[i] = hypeXML.firstChild.childNodes[i].attributes.name;
- excerpt[i] = hypeXML.firstChild.childNodes[i].attributes.description;
- image[i] = hypeXML.firstChild.childNodes[i].attributes.image;
- type[i] = hypeXML.firstChild.childNodes[i].attributes.type;
- postlink[i] = hypeXML.firstChild.childNodes[i].attributes.postlink;
- flashTitle0.text = title[0];
- flashExcerpt0.text = excerpt[0];
- flashImage0.loadMovie(image[0]);
- flashType0.text = type[0];
- knapp1.getURL(postlink[0]);
- flashTitle1.text = title[1];
- flashExcerpt1.text = excerpt[1];
- flashImage1.loadMovie(image[1]);
- flashType1.text = type[1];
- knapp2.getURL(postlink[1]);
- flashTitle2.text = title[2];
- flashExcerpt2.text = excerpt[2];
- flashImage2.loadMovie(image[2]);
- flashType2.text = type[2];
- knapp3.getURL(postlink[2]);
- flashTitle3.text = title[3];
- flashExcerpt3.text = excerpt[3];
- flashImage3.loadMovie(image[3]);
- flashType3.text = type[3];
- knapp4.getURL(postlink[3]);
- }
- } else {
- trace("No XML loaded...");
- }
- }
- hypeXML = new XML();
- hypeXML.ignoreWhite = true;
- hypeXML.onLoad = loadXML;
- hypeXML.load("hype.xml");
- knapp1.onRollOver = function() {
- gotoAndStop(1);
- flashExcerpt0.text = excerpt[0];
- flashImage0.loadMovie(image[0]);
- fader.loadMovie("fade.swf","2");
- };
- knapp2.onRollOver = function() {
- gotoAndStop(2);
- flashExcerpt1.text = excerpt[1];
- flashImage1.loadMovie(image[1]);
- fader.loadMovie("fade.swf","2");
- };
- knapp3.onRollOver = function() {
- gotoAndStop(3);
- flashExcerpt2.text = excerpt[2];
- flashImage2.loadMovie(image[2]);
- fader.loadMovie("fade.swf","2");
- };
- knapp4.onRollOver = function() {
- gotoAndStop(4);
- flashExcerpt3.text = excerpt[3];
- flashImage3.loadMovie(image[3]);
- fader.loadMovie("fade.swf","2");
- };
- knapp1.onRelease = function() {
- getURL(image[0]);
- }
- knapp2.onRelease = function() {
- getURL(image[1]);
- }
- knapp3.onRelease = function() {
- getURL(image[2]);
- }
- knapp4.onRelease = function() {
- getURL(image[3]);
- }
Add Comment
Please, Sign In to add comment