thanks for all the suggestions. I guess the reason I am a little
stumped is because there is no easy answer to this. In the old Flash
days I use to pass references to movie clip locations as variables
all the time using the 'this' keyword and assigning it to some global
variable, but it does seem work the same way in AS3 since I am
dealing with class objects not movie clips. I keeps thinking there
should be a way to create alias' of variables (or pointers) which
allow for this type of simple referencing.
On the other hand I think there must already be a clean way to do
this because the Binding tag does it beautifully. I have passed
elements of nested variables in an arrayCollection through the
destination property of the Binding tag and the binding updates
perfectly. If I could only add this functionality to my own components.
I'll try some of your other suggestions as workaround for now. If
you come across any other ideas (or components that have this
behavior) please let me know.
Thanks, Kevin
On Mar 13, 2007, at 12:31 PM, Paul J DeCoursey wrote:
Those are valid use cases, and your suggestion isn't a bad one. (Note:
the following is my mind wandering and isn't really related) I
speculate that there is a better way. Within those use cases there are
still some issues, what if the object in question is a member of a
collection? I think what we need is XPath on the object model. I
better stop thinking about this or I'll end up porting JXPath to
AS3 and
my clients will wonder why their projects aren't getting done.
Ralf Bokelberg wrote:
>
> This is a different thing though. For example, what if the source
> object doesn't exist at the time you are assigning the reference
> because it is retrieved from the backend. What if your reference
comes
> from an external configuration file? I guess both methods have valid
> uses.
>
> Cheers
> Ralf.
>
>
>
>