Ok !!!
thanks a lot Scott
I tried with a simple clone:Date = new Date(orig) and received a type error, so I thought there were nothing else
thanks once more Scott
++
PR

Scott Hyndman a écrit :

var orig:Date = new Date(2001, 04, 21);
var clone:Date = new Date(orig.getTime());

Scott


-----Original Message-----
From:   [EMAIL PROTECTED] on behalf of PR Durand
Sent:   Thu 11/17/2005 4:46 AM
To:     Flashcoders mailing list
Cc:     
Subject:        [Flashcoders] Duplicate an object, a Date
Hi List!
Is there a way to duplicate a Date object, to have another object that I can modify independently,without creating new Date and duplicating all properties?
thanks a lot

PR
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



------------------------------------------------------------------------

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to