2 Replies Latest reply on Nov 3, 2006 3:40 PM by Newsgroup_User

    WTF, can I have a freaking button do anything?

    Flashpuke23423
      I have a button. Create a layer and put text down on each frame for Up, Over, Down and Hit. It's dynamic text and has an instance name. How the fudge do I change this with AkraptionScipt? Nothing in any location will reference the dynamic text to change it with myText.textColor = 0x000000;

      I mean really, this would be a 10 second task in any real programming language or even HTML.
        • 1. Re: WTF, can I have a freaking button do anything?
          Level 7
          Convert the text inside the button to a MovieClip symbol. Then set the
          color.

          myBtn.myTextClip.myText.textColor = 0x000000;


          --

          Dan Mode
          --> Adobe Community Expert
          *Flash Helps* http://www.smithmediafusion.com/blog/?cat=11
          *THE online Radio* http://www.tornadostream.com
          *Must Read* http://www.smithmediafusion.com/blog



          "Flashpuke23423" <webforumsuser@macromedia.com> wrote in message
          news:eigj4p$66e$1@forums.macromedia.com...
          >I have a button. Create a layer and put text down on each frame for Up,
          >Over,
          > Down and Hit. It's dynamic text and has an instance name. How the fudge
          > do I
          > change this with AkraptionScipt? Nothing in any location will reference
          > the
          > dynamic text to change it with myText.textColor = 0x000000;
          >
          > I mean really, this would be a 10 second task in any real programming
          > language
          > or even HTML.
          >


          • 2. WTF, can I have a freaking button do anything?
            onesandzeros.biz Level 1
            "It's not the wrench's fault that the sink still leaks if the plumber sucks at being a plumber." --Andyfucious

            An important item to note is that you'll want to make a button with a MovieClip to do ActionScript inside the button, not a Button type.

            Here is an easy example that demonstrates this. Create a MovieClip and put a textfield in it called, "txtSample." Select the layer for the button and put the MC on the Stage and name this instance, "btnSample." Create a layer for your ActionScript and put the attached code in the main first frame.

            This **IS** a 10-second task in Flash if you know what you're doing. Please stop blaming the tool when it's the craftsman that stinks.