I have a asp page that has ritten the record set to the page using a counter to address which data goes to which pulled records. I have a swf with a dynamic text box called 'display'. I've managed to trace the variables in the Flash movie and get this out put from the onLoad() method:
amp;total. 2
amp;myMenu1. click to view menu
amp;myAdditional21. asdfasdf
amp;myAdditional11. asdfasdf
amp;mySpecial1. happy hour after 5
amp;myHours1. 9-5pm
amp;myEat1. BOTH
amp;myCusine1. AFRICAN
amp;myPhone1. 321-3214
amp;myDate1. 3
amp;myAddress1. 123 address both
amp;myRname1. african restaurant both
amp;myMenu0. click to view menu
amp;myAdditional20. asdfasdf
amp;myAdditional10. asdfasdf
amp;mySpecial0. happy hour after 5
amp;myHours0. 9-5pm
amp;myEat0. DINE_OUT
amp;myCusine0. AFRICAN
amp;myPhone0. 321-3214
amp;myDate0. 2
amp;myAddress0. 123 address out
myRname0. african restaurant out
onLoad. [type Function]
this is the script i use to obtain the output:
Code:
myVars = new LoadVars ();
myVars.onLoad = function () {
for (var i in this) {
trace (i + ". " +this);
}
};
myVars.load(page.asp"
;
This is what I have so far, as i'm kinda lost:
Code:
init = function () {
setStyles();
};
myVars = new LoadVars();
myVars.onLoad = displaylogs;
myVars.load("page.asp"
;
displaylog = function () {
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>Food: </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["Quantity Reduce: "+i]+"</font><br><br>";
display.htmlText += "<font size=\"12\"><b>Phone: </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 size=\"12\">Under Heading: : "+this["myMenu"+i]+"</font><br><br>";
}
};
setStyles = function () {
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();
amp;total. 2
amp;myMenu1. click to view menu
amp;myAdditional21. asdfasdf
amp;myAdditional11. asdfasdf
amp;mySpecial1. happy hour after 5
amp;myHours1. 9-5pm
amp;myEat1. BOTH
amp;myCusine1. AFRICAN
amp;myPhone1. 321-3214
amp;myDate1. 3
amp;myAddress1. 123 address both
amp;myRname1. african restaurant both
amp;myMenu0. click to view menu
amp;myAdditional20. asdfasdf
amp;myAdditional10. asdfasdf
amp;mySpecial0. happy hour after 5
amp;myHours0. 9-5pm
amp;myEat0. DINE_OUT
amp;myCusine0. AFRICAN
amp;myPhone0. 321-3214
amp;myDate0. 2
amp;myAddress0. 123 address out
myRname0. african restaurant out
onLoad. [type Function]
this is the script i use to obtain the output:
Code:
myVars = new LoadVars ();
myVars.onLoad = function () {
for (var i in this) {
trace (i + ". " +this);
}
};
myVars.load(page.asp"
This is what I have so far, as i'm kinda lost:
Code:
init = function () {
setStyles();
};
myVars = new LoadVars();
myVars.onLoad = displaylogs;
myVars.load("page.asp"
displaylog = function () {
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>Food: </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["Quantity Reduce: "+i]+"</font><br><br>";
display.htmlText += "<font size=\"12\"><b>Phone: </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 size=\"12\">Under Heading: : "+this["myMenu"+i]+"</font><br><br>";
}
};
setStyles = function () {
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();