hi all!
I have a slight problem that I have no idea how to solve…
in my movie im loading some variables via php from mysql database…
they are pretty simple: some text fields and a reference to a picture.
then i have this actionscript to decode it:
this.onData = function() {
var imgAr = new Array();
works_txt.text = "";
for (i=0; i<this.n; i++) {
works_txt.htmlText += "<font color='#999999'>"+this["wid"+i]
+". DATE ADDED: <font color='#cccccc'>"+this["wdate"+i]+"<br>"
+"<a href='http://"+this["link"+i]+"' target='_blank'><img src='/works/web/"+this["smallpic"+i]+"' id='"+this["wimid"+i]
+"'></a><br><br><br><br><br><br><br><br>"
+"<font color='#999999'>FOR: <font color='#cccccc'>"+this["client"+i]
+"<br>"
+"<font color='#999999'>VISIT: <font color='#cccccc'><a href='http://"+this["link"+i]+"' target='_blank'>" + this["link"+i]+"</a><br>"
+"<font color='#999999'>TECHNOLOGY: <font color='#cccccc'>"+this["technology"+i]+"<br><br>"
+"<font color='#666666'>"+this["description"+i]+"<br><br>";
}
}
it all works well apart from one thing…
when adding the images the script fails. What happens is this: the last last image is always displayed in the first <img> tag and others are not… it looks like the script only adds the last picture and puts it where the first one was supposed to be…
any help on this would be greatly appreciated.
thanks