PDA

View Full Version : Updating parameter values?


maxx
09-11-2006, 08:15 PM
Hi all - I'm extremely new to creating components, but know Flash pretty well. So, I'm writing my first component and have gotten things going well so far, except for one thing - I've created an editable parameter (and set it to a default with a variable) to control the text inside a text box that I place on stage during compile of the component. The initial population of this field works like a charm, so I'm targeting things correctly, but now - how do I know when the user changes the text in the Parameters panel? I think it may have something to do with dispatchEvent(), but I don't know 1)if that's right, or 2)which "type" parameter to pass to the dispatchEvent() function.

Any help would sincerely be appreciated - I've serached forums and the web in general, but I'm not sure I'm using the correct terminology (this is the first time I've done this kinda thing).

Forgot - I'm using MX2004 Professional.

Thanks!

maxx
09-11-2006, 10:45 PM
OK - updating my question. I'm obviously missing something here. I've gotten the changes to propogate and fill out the text field at run time with the proper values, but it's not updating on the stage during authoring. Is there an additional something I'm missing to make that happen?

maxx
09-11-2006, 10:52 PM
Aha! Got it. I just added a call to my actual textfield population function from within the setter for the text variable. Rock on!