Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

onLoad() issues

Status
Not open for further replies.

2cxc

Programmer
Aug 29, 2003
245
CA
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[&quot;total&quot;]; i++) {
display.htmlText += &quot;<font color=\&quot;#0000FF\&quot; size=\&quot;14\&quot;>&quot;+this[&quot;myRname&quot;+i]+&quot;</font><br><br>&quot;;
display.htmlText += &quot;<font size=\&quot;12\&quot;><b>Cusine Type: </b>&quot;+this[&quot;myCusine&quot;+i]+&quot;</font><br><br>&quot;;
display.htmlText += &quot;<font size=\&quot;12\&quot;><b>Address: </b>&quot;+this[&quot;myAddress&quot;+i]+&quot;</font><br><br>&quot;;
display.htmlText += &quot;<font size=\&quot;12\&quot;>&quot;+this[&quot;myEat&quot;+i]+&quot;</font><br><br>&quot;;
display.htmlText += &quot;<font size=\&quot;12\&quot;><b>Hours: </b>&quot;+this[&quot;myHours&quot;+i]+&quot;</font><br><br>&quot;;
display.htmlText += &quot;<font size=\&quot;12\&quot;>&quot;+this[&quot;mySpecial&quot;+i]+&quot;</font><br><br>&quot;;
display.htmlText += &quot;<font size=\&quot;12\&quot;><b>Phone Number: </b>&quot;+this[&quot;myPhone&quot;+i]+&quot;</font><br><br>&quot;;
display.htmlText += &quot;<font size=\&quot;12\&quot;>&quot;+this[&quot;myAdditional1&quot;+i]+&quot;</font><br><br>&quot;;
display.htmlText += &quot;<font size=\&quot;12\&quot;>&quot;+this[&quot;myAdditional2&quot;+i]+&quot;</font><br><br>&quot;;
display.htmlText += &quot;<font color=\&quot;#FF0000\&quot; size=\&quot;14\&quot;><a href='[&quot;myMenu&quot;+i]+&quot;</b></a></font><br><br>&quot;;
}


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();
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top