I’m displaying news in a .swf , where the data is retrieved from mySQL db.
I’m using the standard date in mySQL (yyyy-mm-dd) …
and when I retrieve the data from mySQL/php to Flash …
the textbox displays … yyyy-mm-dd …
But, can anyone tell me how I can format the date to dd.mm ?
here is the code AS code:
myData = new LoadVars()
myData.load(“news.php”)
myData.ref = this
myData.onLoad = function(succes){
if(succes){
for(var i=0; i<this.cant; i++){
this.ref[“date_txt”+i].text = this[“date”+i]
this.ref[“news_txt”+i].text = this[“news”+i]
}
} else trace(“Error loading data”)
}