By the way, what about the hour format?
Can i add a few lines in the code to get rid of AM an PM and get a 24h format?
OrientExpress, are you there?
THANKS
Many thanks!
That is really nice from you OrientExpress.
In my xml, i replaced the getFormattedDate function by :
... and it works!Code:private function getFormattedDate(seconds:Number):String { var days:Array=new Array("Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"); var months:Array=new Array("Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"); var milliseconds_server:Number=seconds*1000; var d:Date=new Date(); d.setTime(milliseconds_server); var day:String=(days[d.getDay()]); var month:String=(months[d.getMonth()]); var year:int=d.getFullYear(); return (day+" "+d.getDate()+" "+month+" "+year+" - "+d.toLocaleTimeString()); }
By the way, what about the hour format?
Can i add a few lines in the code to get rid of AM an PM and get a 24h format?
OrientExpress, are you there?
THANKS
Here is my solution to get the 24h format :
Now i'm wondering how to allow the user to start a new paragraph in the message box. Enter key is ineffective.Code:private function getFormattedDate(seconds:Number):String { var days:Array=new Array("Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"); var months:Array=new Array("Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"); var milliseconds_server:Number=seconds*1000; var d:Date=new Date(); d.setTime(milliseconds_server); var day:String=(days[d.getDay()]); var month:String=(months[d.getMonth()]); var year:int=d.getFullYear(); var hour=d.getHours(); var minute=d.getMinutes(); if (minute<10) { return (day+" "+d.getDate()+" "+month+" "+year+" - "+hour+"h0"+minute);} else { return (day+" "+d.getDate()+" "+month+" "+year+" - "+hour+"h"+minute);} }
Anyone could help?
Thanks
Hello Flep,
first let me thank you for the great application. I want to use it for our non-profit community. I have a Flash site, written in AS3 (no OOP), the whole code is written in the timeline.
Now i have try to load the Guestbook (swf) with a loader function. But i get an error (TypeError: Error #1009: Cannot access a property or method of a null object reference).
Please can you help me, what i have to do?
This is the loader:
Thank you very much!!PHP Code:function loadGuestbook()
{
var mLoader:Loader = new Loader();
var mRequest:URLRequest = new URLRequest("guestbook/main.swf");
mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, guestbookComplete);
mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, guestbookProgress);
mLoader.load(mRequest);
}
function guestbookComplete(loadEvent:Event)
{
kontaktHeader.addChild(loadEvent.currentTarget.content);
}
function guestbookProgress(mProgress:ProgressEvent)
{
var percent:Number = mProgress.bytesLoaded/mProgress.bytesTotal;
trace(percent);
}
loadGuestbook();
Regards, mabo
Graciassssss!!!!!! Great!!!
Hello!!
How do I delete an entry????
Thanks!!
How would I change the sort order of the guestbook entries.... mine shows the oldest ones on top.
I found the answer on the Italian side of the forum:
"....I messaggi sono ordinati al contrario. Per ordinarli devi cancellare la riga 88 del file LoadingXML.as//_fla.messages_array.reverse(); ...."
(comment out line 88 "_fla.messages_array.reverse();" in the LoadingXML.as)
Bookmarks