A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: button

  1. #1
    Junior Member
    Join Date
    Oct 2009
    Posts
    2

    button

    0hi!

    i need do to a button, i think it was simple.. but i need:

    the button UP is red, when i clic is yellow (and this is his new color) and clic one more time is green (and this is his new color), other clic is original red.

    example:

    red > [clic] > yellow > [clic] > green

    it's possible?

    i've tried put a MC into a button, but i can't do :\


    thanks!

  2. #2
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,404
    Name the button "button" and just use this code that makes the button go to next frame you can also do prev frames

    button.onRelease = function() {
    nextFrame();
    };

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