On 15/04/2008 03:15, Alan Neilsen wrote:
I get an error that there is no property with the name 'time' referring to 'd.time+=(86400000*283).
Date.time is an AS3 property - didn't realise you were in AS2. This should work: var d:Date=new Date(2008,3,14); d.setTime(d.getTime()+(86400000*283)); // 283 days, in milliseconds trace(d.getFullYear()+"/"+(d.getMonth()+1)+"/"+d.getDate()); // 2009/1/21 _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

