Groups | Blog | Home
all groups > flash data integration > may 2005 >

flash data integration : Flash and PHP


jhutchdublin
5/29/2005 8:11:59 PM
I'm having trouble with the following code. I keep getting an undefined error.
the text box has been name correctly.

var dateDisplay:TextFormat = new TextFormat();
dateDisplay.font = "Georgia,Times,_serif";
theDate_txt.setNewTextFormat(dateDisplay);
theDate_txt.autoSize = "left";
var getDate:LoadVars = new LoadVars();
getDate.load("http://localhost/flashphp/ch02/today2.php");
getDate.onLoad = function() {
theDate_txt.text = this.theDate;
};


Clau=D0io_-_Flash_Developer_-_www.websigns.com.ar_-
6/1/2005 4:23:41 AM
well... theDate_txt.text=getDate;

i guess that is the error.. :D
kaunietiz
6/4/2005 10:59:22 PM
Well i see a problem here:

getDate.onLoad = function() {
theDate_txt.text = this.theDate;
};

This should be like this:

getDate.onLoad = function(success:Boolean)
{
if (success)
theDate_txt.text = this.theDate;
};

From MX2004 reference:
"Parameters
success A Boolean value that indicates whether the load operation ended in
success (true) or failure (false)."
gugateider.com
6/10/2005 12:37:36 PM
how you are exporting the vars in php ?

echo "&theDate=$theDate";

??
you must to make equally else not work ..



--
Gustavo Teider
www.gugateider.com
Curitiba - PR
"jhutchdublin" <webforumsuser@macromedia.com> escreveu na mensagem
news:d7d7mf$p8h$1@forums.macromedia.com...
[quoted text, click to view]

AddThis Social Bookmark Button