AS dyn path
- Started
- Last post
- 10 Responses
- wade
I'm trying to create a dynamic instance path in a function.
I use an array with each instance name and then use a for loop to cycle through those names inserting them into my path. It's not working though.
Please help!Like this:
http://www.flickr.com/photos/766…NT keeps cutting off my code, so I had to upload a screen.
- wade0
Please help...or Else!
- wade0
Any responses? Do it!
- fate_redux0
var=something
_root[var]._method
- fate_redux0
or rather...
var="something"
_root[var]._methodand you'll have _root.something._method as the path.
- stewart0
use http://pastebin.coconut.se/?id=3… instead of your images
- woodyBatts0
you need use []
_root[tab_list]._x =something like that
- wade0
Wicked! Thanks all for the help Stewart, Fate and Woody.
- wade0
What if the variable I use in the path is an array?
How do I reference a certain array index? Like this: ?
_root.[array_name[0]].instance
- RichardBoeser0
like that but without the dot following _root
_root[array_name[0]].etc
should work
- wade0
Right, of course. I missed the dot removal. Thanks!