i couldn't get either of these solutions to work. When I reset the
vo variable to nul (or new Object), it still modifies the object on
the model. I could be doing something wrong, but for now, i decided
to instantiate an entirely new super class each time the vo changes.
I'll look into this a little more and see if I can do what I want...
thanks, Kevin
On Jun 3, 2007, at 9:33 AM, Jurgen Beck wrote:
Rather than just assigning the model.someObject directly to the vo
object, you may first need to instantiate it with:
var vo:Object = new Object();
The assign the model.someObject to it:
vo = model.someObject;
When you then assign a different object to it, it should leave
model.someObject alone and just use the newly assigned object.
Jurgen
Kevin wrote:
This may be a simple question, but it's stumping me.
I have a component that contains a property (type object) that holds
a reference to an VO on my model.
How to I "unlink" that reference?
For example, when I set the property:
var vo : Object = model.someObject;
I then do something like this:
vo = someNewObject;
This happens....
model.someObject get's set to someNewObject...
This is not what I want. Therefore, I assume I have to "unlink" the
reference of vo to model.someObject, before I give it another
reference. How do I do that?
Thanks, Kevin