-
passing instance name into function not working (MX 2004)
I am trying to pass an instance name into a function and its not working properly.
here's the call:
UpdateGraphicStatus("MIM", "mim1", "fault");
here's the function definition:
function UpdateGraphicStatus(objectType, objectIdentifier, state){
here's the reference in the function:
[objectIdentifier].gotoAndPlay("fault");
I've tried it with and without the (.) after the brackets, and with and without the (_root)reference before the bracket notation.
I'm at the end of my rope with this one.
-
should be ok
Code:
UpdateGraphicStatus("MIM", "mim1", "fault");
function UpdateGraphicStatus(objectType, objectIdentifier, state){
_root[objectIdentifier].gotoAndPlay("fault");
trace(_root[objectIdentifier])
}
-
Thanks a TON!
and...BOOM!, worked like a champ. Thanks again,
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
|