I have some VO's, and I use their class type to render a form. My Dialogue
I'm passing this VO into is bound to an object, like so:
private var formData:Object;
<mx:TextInput text="{formData.label}" />
When I call this method externally:
myDialogue.setFormData(someVO);
Function looks something like this:
function setFormData(o)
{
for(var p in o)
{
formData[p] = o[p];
}
}
My bindings work great. However, instanceof does not. If I do this:
formData = o;
It DOES work; naturally because it's just a reference. However, this
dialogue works like a preferences. As such, I need to create my own local
copy; the above for loop is actually more involved since I need a deep copy,
and thus get a true, deep copy, not a reference.
However, this in turn breaks my instanceof code. I've tried:
formData.__proto__ = o.prototype
formData.__proto__ = o.__proto__
...none of which work. Frankly, I really don't care formData is truly a
sub-class, I just want my instanceof to work, even if it's taked.
???
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~->
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/