SCook
12-24-2006, 12:28 PM
Hi all, Merry Christmas,
Is there a way to register variables created in a movie clip that then can be accessed directly by any clips that are children of that main one? Without using _global?
Here's the situation. I've created a custom combobox component. Not in the component developer, but just usihng As and mc's. The part of the combo that you click on an item when it's opened is four levels deep. And because I'd like to use multiple instances of this object, I'd like a way to make the variables scoped within it, but I can't seem to get child movie clips to gain access without making them global or by referencing them like: _parent._parent._parent. etc.
Hee is a visual of my structure.
Main Combo MC - id and text arrays crated
|
menu MC
|
Menu panel MC
|
content MC - where you click the item you want
I hope this makes sense, and I hope there might be a solution. Thanks gang.
Is there a way to register variables created in a movie clip that then can be accessed directly by any clips that are children of that main one? Without using _global?
Here's the situation. I've created a custom combobox component. Not in the component developer, but just usihng As and mc's. The part of the combo that you click on an item when it's opened is four levels deep. And because I'd like to use multiple instances of this object, I'd like a way to make the variables scoped within it, but I can't seem to get child movie clips to gain access without making them global or by referencing them like: _parent._parent._parent. etc.
Hee is a visual of my structure.
Main Combo MC - id and text arrays crated
|
menu MC
|
Menu panel MC
|
content MC - where you click the item you want
I hope this makes sense, and I hope there might be a solution. Thanks gang.