;

PDA

Click to See Complete Forum and Search --> : set dynamic text


simpelendidi
06-27-2003, 04:02 AM
I've made a movieclip of a button. Now I want to set a dynamic text in the main movie by clicking on this button.

Is there an actionscript for this.

FLASHPULSE
06-27-2003, 04:23 AM
I'm not sure I'm understanding you. Do you want the dynamic text to appear after clicking this button or do you want something to happen with in the dynamic text after clicking?

simpelendidi
06-27-2003, 04:38 AM
I have 3 buttons, when clicking on them I want to set an other text. This is possible if the buttons are in the main movie. But they are converted to movieclips.

FLASHPULSE
06-27-2003, 05:01 AM
Ok, I think I know what you are doing. Why not create 3 different dynamic text and save as swf then use the load movie function for the buttons.

If this is not what you are looking for, let me know and I'll try and think of a different method unless someone else replies with an answer.

simpelendidi
06-27-2003, 05:04 AM
I'll just add 3 frames and tell the button to go to that frame. And I'll set the dynamic text in the movie sounds and ations menu.

w.brants
06-27-2003, 06:44 AM
If you have a mc named mc1 containing a dynamic textfield named mytext yuo can refer to it from the main movie as mc1.mytext

so...
mc1.mytext.text = 'test';

should work.

If you have three mc's named button1, button2 and button3, each of them can contain a dynamic textfield named mytext. You don't have to use different names for each textfield.

simpelendidi
06-27-2003, 07:04 AM
thanks, I'll try it.

Bob Hartzell
06-27-2003, 07:43 AM
mc1.mytext.text = 'test';
will work if the movie is exported as flash 6.
Otherwise use mc1.mytext = 'test';