//FRAME 1 CODE Stage.scaleMode = "scale"; Stage.align = "C"; //Make a new loadvars object myLoadVars_lv = new LoadVars(); //when this load vars object FINISHES LOADING something this function is run myLoadVars_lv.onLoad = function(success) { //the success variable is a parameter, it is true or false, if it is true, //that means the file has loaded properly if (success) { //you can call the variable from the text file using the loadvars object myWords = this.variable1; myWordCounts = this.variable2; myPos = this.variable3; wordsArray = new Array(); wordsArray = myWords.split(" "); countArray = new Array(); countArray = myWordCounts.split(" "); posArray = new Array(); posArray = myPos.split(" "); for(i=0; i4) { if(posArray[currentWord] == "V" || posArray[currentWord] == "v") { thisWord = "" + wordsArray[currentWord].toUpperCase() + ""; } else { thisWord = wordsArray[currentWord].toUpperCase(); } myTextFormat.size = 60 - (thisWord.length*2); textBox._y += thisWord.length * 1.1; //thisWord = thisWord.substr(0,thisWord.length/2) + "\n" + thisWord.substr(thisWord.length/2 + 1, thisWord.length - 1); if (Math.random()<0.5) { // rg1.setVolume(5); // rg1.start(0.15); snareKick1.start(0.1); } else { // rg2.setVolume(5); // rg2.start(0.15); cymbal2.start(); cymbal1.start(); } } else { drumRoll1.start(0.5); } } else if (thisWordCount<=4) { cymbal2.start(); } else { cymbal1.start(); } } else { if (wordsArray[currentWord].length == 2) { bassDrum2.start(); } bground.gotoAndStop("red"); bassDrum1.start(); } textBox.html = true; // thisWord = wordsArray[currentWord]; textBox.htmlText = thisWord; //thisWord; //wordsArray[currentWord]; textBox.setTextFormat(myTextFormat); count++; } else if (count