A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: set dynamic text

  1. #1
    Senior Member
    Join Date
    Sep 2002
    Posts
    106

    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.
    www.flashflow.be

  2. #2
    Senior Member FLASHPULSE's Avatar
    Join Date
    Nov 2002
    Location
    USA
    Posts
    1,356
    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?

  3. #3
    Senior Member
    Join Date
    Sep 2002
    Posts
    106
    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.
    www.flashflow.be

  4. #4
    Senior Member FLASHPULSE's Avatar
    Join Date
    Nov 2002
    Location
    USA
    Posts
    1,356
    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.

  5. #5
    Senior Member
    Join Date
    Sep 2002
    Posts
    106
    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.
    www.flashflow.be

  6. #6
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    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.

  7. #7
    Senior Member
    Join Date
    Sep 2002
    Posts
    106
    thanks, I'll try it.
    www.flashflow.be

  8. #8
    Senior Member
    Join Date
    Jun 2000
    Posts
    3,512
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center