DiscoJimmy
12-20-2004, 06:27 PM
Ok, this may be a component question, or maybe just an AS question, I'm bad at both. I created a MC and then I rightclick it in the library and click 'Component Definition' - this allows me to add parameters and map them to internal variables, like txtA.text where txtA is a dynamic text field in the MC.
This works ok, and I can set the parameters at design time and when I run the movie the values map in correctly. What i can't seem to do is access/change those parameters at runtime. It works with the built-in components, for instance I can get btnGo.label at runtime, but I can't seem to read/write my custom component's parameters, like cmpA.A.
Is there something I'm not doing here, or are these parameters private somehow?
Any insight would great, and I swear I'm gonna buy an AS book this week and stop asking all these dumb questions.
DiscoJimmy
This works ok, and I can set the parameters at design time and when I run the movie the values map in correctly. What i can't seem to do is access/change those parameters at runtime. It works with the built-in components, for instance I can get btnGo.label at runtime, but I can't seem to read/write my custom component's parameters, like cmpA.A.
Is there something I'm not doing here, or are these parameters private somehow?
Any insight would great, and I swear I'm gonna buy an AS book this week and stop asking all these dumb questions.
DiscoJimmy