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