A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Easy Question-How to make take appear when a button is clicked

  1. #1
    Junior Member
    Join Date
    Oct 2009

    Easy Question-How to make take appear when a button is clicked

    I have a simple question for someone --Im very new at Flash.

    I have a box and 3 different colored buttons at the left. When a person clicks the red button the box turns red, green button turns the box green, etc.

    My question is I would like the text color of the box to appear under the box according to what button they press. Here is my code to turn the box red. What line would i add to have the word Red show up under the box when the red button is clicked. Do I type the word Red and make it a movie clip? Then what?
    red_btn.onRelease = function() {
    var rimColor_color = new Color(box_mc);


  2. #2
    Freshman ActionScript Dev
    Join Date
    Jun 2009
    Why don't you make TextFields underneath each of the buttons and put the coresponding text in the TextFields. Then set the Visibility properties for the TextFields to false. Afterwards, set up an EventListener to set their visibility to true.

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