-
referencing objects not on the same layer
Is it possible to control an object/element on a instance? If so, how is it done through actionscript?
There is an instance "instance140" off of the root, that has an element named img4 that i need to reference... does anyone know how I would go about that?
using root.instance.object form returns undefined. Please help.
-
Are you seeing these instance names through the debugger? If an object is unnamed Flash will give it a generic name like "instance140". Ideally you should be explicitly naming these objects yourself. I would not rely on Flash creating the names for you.
That said, you can reference what you mentioned like so...
Code:
_root.instance140.img4
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|