Howzy Goin,
I have an asp page that has prepared the value pairs for flash to load them in to a dynamic text window called 'display' but it ain't working, using MX any ideas with possible code problems as to why this isn't working:
Code:
init = function () {
setStyles();
};
myVars = new LoadVars();
myVars.onLoad = function () {
for (var i in this) {
(i + ". " +this);
}
};
myVars.load("myScript.asp"
;
display.htmlText = "";
for (var i = 0; i<this["total"]; i++) {
display.htmlText += "<font color=\"#0000FF\" size=\"14\">"+this["myRname"+i]+"</font><br><br>";
display.htmlText += "<font size=\"12\"><b>Cusine Type: </b>"+this["myCusine"+i]+"</font><br><br>";
display.htmlText += "<font size=\"12\"><b>Address: </b>"+this["myAddress"+i]+"</font><br><br>";
display.htmlText += "<font size=\"12\">"+this["myEat"+i]+"</font><br><br>";
display.htmlText += "<font size=\"12\"><b>Hours: </b>"+this["myHours"+i]+"</font><br><br>";
display.htmlText += "<font size=\"12\">"+this["mySpecial"+i]+"</font><br><br>";
display.htmlText += "<font size=\"12\"><b>Phone Number: </b>"+this["myPhone"+i]+"</font><br><br>";
display.htmlText += "<font size=\"12\">"+this["myAdditional1"+i]+"</font><br><br>";
display.htmlText += "<font size=\"12\">"+this["myAdditional2"+i]+"</font><br><br>";
display.htmlText += "<font color=\"#FF0000\" size=\"14\"><a href='["myMenu"+i]+"</b></a></font><br><br>";
}
setStyles = function () {
// **********************
// myMonth Combo Box
// ***********************
// FStyleFormat for combo
myStyleFormat = new FStyleFormat();
myStyleFormat.arrow = 0xFF0000;
myStyleFormat.background = 0xCCCCCC;
myStyleFormat.backgroundDisabled = 0xFFFFFF;
myStyleFormat.face = 0x999999;
myStyleFormat.textSize = 11;
myStyleFormat.highlight3D = 0xffffff;
myStyleFormat.selection = 0xFF0000;
myStyleFormat.selectionDisabled = 0x999999;
myStyleFormat.selectionUnfocused = 0x999999;
myStyleFormat.shadow = 0x333333;
myStyleFormat.textColor = 0x000000;
myStyleFormat.textDisabled = 0xCCCCCC;
myStyleFormat.textSelected = 0x000000;
display.backgroundColor = 0xCCCCCC;
};
init();
I have an asp page that has prepared the value pairs for flash to load them in to a dynamic text window called 'display' but it ain't working, using MX any ideas with possible code problems as to why this isn't working:
Code:
init = function () {
setStyles();
};
myVars = new LoadVars();
myVars.onLoad = function () {
for (var i in this) {
(i + ". " +this);
}
};
myVars.load("myScript.asp"
display.htmlText = "";
for (var i = 0; i<this["total"]; i++) {
display.htmlText += "<font color=\"#0000FF\" size=\"14\">"+this["myRname"+i]+"</font><br><br>";
display.htmlText += "<font size=\"12\"><b>Cusine Type: </b>"+this["myCusine"+i]+"</font><br><br>";
display.htmlText += "<font size=\"12\"><b>Address: </b>"+this["myAddress"+i]+"</font><br><br>";
display.htmlText += "<font size=\"12\">"+this["myEat"+i]+"</font><br><br>";
display.htmlText += "<font size=\"12\"><b>Hours: </b>"+this["myHours"+i]+"</font><br><br>";
display.htmlText += "<font size=\"12\">"+this["mySpecial"+i]+"</font><br><br>";
display.htmlText += "<font size=\"12\"><b>Phone Number: </b>"+this["myPhone"+i]+"</font><br><br>";
display.htmlText += "<font size=\"12\">"+this["myAdditional1"+i]+"</font><br><br>";
display.htmlText += "<font size=\"12\">"+this["myAdditional2"+i]+"</font><br><br>";
display.htmlText += "<font color=\"#FF0000\" size=\"14\"><a href='["myMenu"+i]+"</b></a></font><br><br>";
}
setStyles = function () {
// **********************
// myMonth Combo Box
// ***********************
// FStyleFormat for combo
myStyleFormat = new FStyleFormat();
myStyleFormat.arrow = 0xFF0000;
myStyleFormat.background = 0xCCCCCC;
myStyleFormat.backgroundDisabled = 0xFFFFFF;
myStyleFormat.face = 0x999999;
myStyleFormat.textSize = 11;
myStyleFormat.highlight3D = 0xffffff;
myStyleFormat.selection = 0xFF0000;
myStyleFormat.selectionDisabled = 0x999999;
myStyleFormat.selectionUnfocused = 0x999999;
myStyleFormat.shadow = 0x333333;
myStyleFormat.textColor = 0x000000;
myStyleFormat.textDisabled = 0xCCCCCC;
myStyleFormat.textSelected = 0x000000;
display.backgroundColor = 0xCCCCCC;
};
init();