Click to See Complete Forum and Search --> : how to pass data to textbox inside a movie clip?


johnix
09-02-2007, 12:13 AM
how to pass data to textbox inside a movie clip?
example: i have a button and movie clip... inside that movie clip there is one text box and if i click the button thats the time the data will be printed to the textbox... the data will just a static data inside the button...

thanks in advance...

Webjedikungfu
09-02-2007, 07:26 PM
Instance name the movie clip, the button, and the text field in the movieclip.(all 3)

Movie clip = my_clip
text field = my_txt
button = my_btn

Then use this code and adapt to your names. This code does not go on the button itself, but on the timeline layer.
this.my_btn.onRelease = function() {

my_clip.my_txt.text = "Howdy Doody";

}

Good Luck~