-
_level0. "variable name" as an argument
How do you type out a variable name in an argument?
Like...
instead of:
function("_level0.MCname", argument2); MCname is the name of a movie clip
you want:
function("_level0."+MC2Edit, argument2); where MC2Edit is a variable name
I can't get it to work with the above syntax.
-
Re: _level0. "variable name" as an argument
-
thanks
Thanks a bunch. That didn't work, but you got me to try
_root[_root.MC2Edit] Which worked! (can't expect you to know exactly how I have things set up if I don't specify)
I didn't know about the bracket thing. I'm not sure if it's in the Flash MX guide/help manual, but I haven't read it all, so maybe it is.
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
|