What I am trying to do is bring data in from (mysql)PHP into flash 8 (actionscript 2.0).
I got part of this to work. I bring in the text and diplays just fine.
So the next step was, To set the font size from anothere php loadvars (code below). Flash will not pick up that part of the code, were I set the font size.
I am sure I screwed this up some how Please !!! let me no what I did wrong and How to fix it Please???
Guy
Here is the code:
onClipEvent (load) {
info4 = new LoadVars()
lv = new LoadVars();
lv.onLoad = function() {
info4=this.info4;
txt4 = info4.split(",");
format = new TextFormat();
format.size = sizeinfo;
tfield4.setTextFormat(format);
};
//assuming you have a personal web server and PHP installed locally
lv.load(“http://www.guyswebdesigns.com/PHPfolder/info4.php” ,this,“GET”);
//bold
lv8.load("http://www.guyswebdesigns.com/PHPfolder/colortxt7.php" ,this,"GET");
//size
lv9 = new LoadVars();
lv9.onLoad = function() {
trace(lv9);
trace(size);
sizeinfo = this.size;
//boldinfo = this.bold;
trace("I am in the size");
trace(sizeinfo);
};
lv9.load("http://www.guyswebdesigns.com/PHPfolder/colortxt8.php" ,this,"GET");
}