mordred
06-02-2004, 03:26 PM
I feel quite stupid trying to alter the properties of a dynamic textfield in my flash movie at runtime, through ActionScript. I know the basic scripting to do that, however I can't find the right path to the textfield instance. The textfield ("content") lies in a button symbol ("inner"), which again is inside a movie clip symbol ("foobar"), which is placed on the current timeline ("_root"). Seeing from the "Insert Target Path" tool, the path to the button is
_root.foobar.inner
but from there I can't get at the the textfield object in the button. The path
_root.foobar.inner.content
returns nothing, though from my understanding it would be correct. There's nothing shown in the target path utility either.
So how can I reference a button's textfield via ActionScript? I'm using Flash MX 2004 here, and am testing the scripts in the Flash 6 Player.
Be kind to me if this post doesn't read to well, I'm more or less a n00b at ActionScript, and still confused about the way Flash exposes it's objects for scripting. Should the post lack any important information for this problem then tell me so and I provide what I can. :)
_root.foobar.inner
but from there I can't get at the the textfield object in the button. The path
_root.foobar.inner.content
returns nothing, though from my understanding it would be correct. There's nothing shown in the target path utility either.
So how can I reference a button's textfield via ActionScript? I'm using Flash MX 2004 here, and am testing the scripts in the Flash 6 Player.
Be kind to me if this post doesn't read to well, I'm more or less a n00b at ActionScript, and still confused about the way Flash exposes it's objects for scripting. Should the post lack any important information for this problem then tell me so and I provide what I can. :)