Hello Everyone,
I was just wondering if you would like to be able to
clone and persist layers?
I have the clone() function working so far (with some
limitations) but the persist() function should not be
too far away.
With clone() I'm able to make a copy of an existing
dynlayer even it was already added to the document
object:
var myclone;
var lyr = new DynLayer('Copy
Me!',100,100,100,100,'yellow');
dynapi.document.addChild(lyr);
myclone = lyr.clone(true);
// myclone is now a replica of lyr within the document
object. its has all the attributes of lyr
(color,width,etc)
with persist() you'll be able to persist a layer to
text save it and then regenerate the exact layer from
the string:
var lyr = new DynLayer('Persist
Me!',100,100,100,100,'yellow');
var s = lyr.persist();
// now s can be saved to a database
:
: a few days later
:
var lyr = DynLayer.regenerate(s);
// layer is ready to be used
In theory is possible the dynapi.document object, save
it and then regenerate it when the user returns to the
web site. It's very similar to the hibernate feature
found in windows xp.
IMPORTANT!
------------
We have been very very silent over the past few
months, but I would like for those interested to just
post your response on the mailing list. Talk back to
me. Would you like these functions yes or no?
--
Raymond Irving
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[email protected]/