Posted: Tue Jan 23, 2007 9:36 pm
If anyone is familiar with actionscript/flash, please help me!
i uploaded a site (http://retro-supremacy.freehomepage.com/txv/index.html)
I cannot get any of the text to show up. The text file is uploaded just as it is in the actionscript. Here is the actionscript code...
System.useCodePage=true;
loadVarsText = new LoadVars();
// assign a function which fires when the data is loaded:
loadVarsText.onLoad = function(success) {
if (success) {
// trace("done loading");
// Now that we know the data is loaded,
// set the text content of the Text Field
// with the instance name "scroller" equal to the
// contents of the variable
_global.sitename=loadVarsText.sitename;
_global.address=loadVarsText.address;
_global.button1=loadVarsText.button_name1;
_global.button2=loadVarsText.button_name2;
_global.button3=loadVarsText.button_name3;
_global.button4=loadVarsText.button_name4;
_global.button5=loadVarsText.button_name5;
_global.button6=loadVarsText.button_name6;
_global.content1=loadVarsText.content1;
_global.content2=loadVarsText.content2;
_global.content3=loadVarsText.content3;
_global.content4=loadVarsText.content4;
_global.content5=loadVarsText.content5;
_global.content6=loadVarsText.content6;
_global.copyright=loadVarsText.copyright;
} else {
_global.sitename="Truth x Vision";
_global.address="YOURSITE.COM";
_global.button_name1="a";
_global.button_name2="BUTTON2";
_global.button_name3="BUTTON3";
_global.button_name4="BUTTON4";
_global.button_name5="BUTTON5";
_global.content1="content1";
_global.content2="content2";
_global.content3="content3";
_global.content4="content4";
_global.content5="content5";
_global.copyright="COPYRIGHT YOURSITE.COM ALL RIGHTS RESERVED.";
}
gotoAndStop(3);
};
loadVarsText.load("web_site_text.txt");
stop();
i uploaded a site (http://retro-supremacy.freehomepage.com/txv/index.html)
I cannot get any of the text to show up. The text file is uploaded just as it is in the actionscript. Here is the actionscript code...
System.useCodePage=true;
loadVarsText = new LoadVars();
// assign a function which fires when the data is loaded:
loadVarsText.onLoad = function(success) {
if (success) {
// trace("done loading");
// Now that we know the data is loaded,
// set the text content of the Text Field
// with the instance name "scroller" equal to the
// contents of the variable
_global.sitename=loadVarsText.sitename;
_global.address=loadVarsText.address;
_global.button1=loadVarsText.button_name1;
_global.button2=loadVarsText.button_name2;
_global.button3=loadVarsText.button_name3;
_global.button4=loadVarsText.button_name4;
_global.button5=loadVarsText.button_name5;
_global.button6=loadVarsText.button_name6;
_global.content1=loadVarsText.content1;
_global.content2=loadVarsText.content2;
_global.content3=loadVarsText.content3;
_global.content4=loadVarsText.content4;
_global.content5=loadVarsText.content5;
_global.content6=loadVarsText.content6;
_global.copyright=loadVarsText.copyright;
} else {
_global.sitename="Truth x Vision";
_global.address="YOURSITE.COM";
_global.button_name1="a";
_global.button_name2="BUTTON2";
_global.button_name3="BUTTON3";
_global.button_name4="BUTTON4";
_global.button_name5="BUTTON5";
_global.content1="content1";
_global.content2="content2";
_global.content3="content3";
_global.content4="content4";
_global.content5="content5";
_global.copyright="COPYRIGHT YOURSITE.COM ALL RIGHTS RESERVED.";
}
gotoAndStop(3);
};
loadVarsText.load("web_site_text.txt");
stop();