A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Button - selected state (CS4)

  1. #1
    Member
    Join Date
    Dec 2007
    Location
    Kirkland WA.
    Posts
    62

    Button - selected state (CS4)

    How do I create and control a line of text that i turned into a button. I want to have a selected state built into the button. is that possible? Previously I created a light next to the text that changes color or highlights when the button had been selected, but I would like the text to change color when it is selected and have script that I can use to reset the button state when another button is selected.
    current button:
    Actionscript Code:
    S1.addEventListener(MouseEvent.MOUSE_DOWN,click_S1);
    function click_S1(evt:Event):void {
        Truck.gotoAndStop(16);
    }
    thank you in advance for your help

  2. #2
    Senior Member
    Join Date
    May 2010
    Location
    Russia: Western Siberia
    Posts
    268
    Don't use buttons for these purposes. Use MovieClips, and this will do the trick.
    Buttons are way too simple for this.

  3. #3
    Member
    Join Date
    Dec 2007
    Location
    Kirkland WA.
    Posts
    62
    ok i will do that, thank you

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