Good Afternoon Everyone !
I am making an office calendar that allows text to be loaded when they press a button. I also want them to be able to link to certain html pages…and so forth
I have the calendar done, and everything works…except the html.
I have this embedded in each button
//Flash Script to Load on Button Press
on (release){
var variables_lv:LoadVars = new LoadVars();
variables_lv.load(“july_2_event.txt”);
variables_lv.onData = function(data) {
event_loader_clip.text=data;
}
}
but the html is not rendering…even if I have the rendering action pressed.
“I am a rookie and this is frustrating”
art-:stare:
_root didn’t work
You know, when I declare variables on a single page I have no problems, but I can’t do that unless I put 30 different text areas on top of each other for each individual button. Pain in the *** !
“My IQ automatically upgrades to exceed yours”…thats funny !
art-
unfortunately yes…what have I done ?
Step 1 - I created a text file with no variables
Step 2 - I embedded that code above
Step 3 - I made the text area html readable, gave it an instance name
var files = ["birthday.txt","funtimes.txt"]; //What files?
for(var i = 0; i<files.length; i++){
var data = load(files*); //Load them
data.onLoad = function(){
_root.filetxt += this; //Add them
}
}