|
-
set dynamic text
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.
-
Senior Member
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?
-
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.
-
Senior Member
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.
-
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.
-
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.
-
-
mc1.mytext.text = 'test';
will work if the movie is exported as flash 6.
Otherwise use mc1.mytext = 'test';
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|