neiro
November 29th, 2004, 06:29 PM
Hello,
I am calling a text string from a databse using flash remoting and trying to put it into the loadMovie action. This is how I am the results from the database call.
getComments_Result = function (newsID) {
attachMovie("comments", "comments", 100);
comments._x = 400;
comments._y = 150;
comments.newstxt.text = newsID.getItemAt(0).newstxt
comments.newsimage.text = newsID.getItemAt(0).newsimage
comments.newspic.loadMovie(""+newsimage+"");
trace(newsimage)
};
Using the Net Debugger I can see that it is pulling the information from the database for newsimage, but when I trace "newsimage" I get undefined. It seems like it is getting lost when it moves to the next line.
Does anyone know how I can get this to work?
Thanks,
Chad
I am calling a text string from a databse using flash remoting and trying to put it into the loadMovie action. This is how I am the results from the database call.
getComments_Result = function (newsID) {
attachMovie("comments", "comments", 100);
comments._x = 400;
comments._y = 150;
comments.newstxt.text = newsID.getItemAt(0).newstxt
comments.newsimage.text = newsID.getItemAt(0).newsimage
comments.newspic.loadMovie(""+newsimage+"");
trace(newsimage)
};
Using the Net Debugger I can see that it is pulling the information from the database for newsimage, but when I trace "newsimage" I get undefined. It seems like it is getting lost when it moves to the next line.
Does anyone know how I can get this to work?
Thanks,
Chad