4 Replies Latest reply on May 30, 2006 6:18 PM by Filamino_1

    Help with button hit state

    Filamino_1
      When creating a button and setting up the 4 states, everything seems fine. With enable simple buttons enabled I am able to see the result as I expect. BUT, when I 'test movie' or export .swf the button doesn't work as it should. It's like the hit state has disappeared and none of the up / over / down states work. I am very frustrated - I am pretty sure that I am doing it properly. I have tried a bunch of different examples from books and help files and it just won't work. Any ideas?
        • 1. Re: Help with button hit state
          Level 7


          Filamino_1 wrote:
          > When creating a button and setting up the 4 states, everything seems fine.
          > With enable simple buttons enabled I am able to see the result as I expect.
          > BUT, when I 'test movie' or export .swf the button doesn't work as it should.
          > It's like the hit state has disappeared and none of the up / over / down states
          > work. I am very frustrated - I am pretty sure that I am doing it properly.
          > I have tried a bunch of different examples from books and help files and it
          > just won't work. Any ideas?

          For a starter, OFF the enable simple button option.
          It does not reflect buttons functionality. Export Preview
          is the only way you can see how things work.
          And, you must be doing something wrong if it does not work as expected.
          Can't really tell more, unless you upload source, tell us how it suppose
          to work so we can see the differences...

          --
          Regards

          Urami


          --



          Happy New Year guys - all the best there is in the 2006




          <urami>
          http://www.Flashfugitive.com
          </urami>

          <web junk free>
          http://www.firefox.com
          </web junk free>
          • 2. Help with button hit state
            Filamino_1 Level 1
            Thanks Urami. After exporting to a .swf file there is some functionality of the button states, but it still isn't working as it should. FYI, there is no 'action' attached to the button as I haven't got past this hurdle yet. Goto this URL to download the working .fla file. http://205.200.81.9/ I can't figure out how to view the code in order to copy and paste it here. Sorry for the trouble. I really appreciate your guidance.

            Further to.... I removed the 'hit' state so that the hit area defaults to whatever the 'up' state is. Doesn't seem to matter if I define it or not.
            • 3. Re: Help with button hit state
              Level 7


              Filamino_1 wrote:
              > Thanks Urami. After exporting to a .swf file there is some functionality of
              > the button states, but it still isn't working as it should. FYI, there is no
              > 'action' attached to the button as I haven't got past this hurdle yet. Goto
              > this URL to download the working .fla file. <a target=_blank
              > class=ftalternatingbarlinklarge
              > href=" http://205.200.81.9/">http://205.200.81.9/</a> I can't figure out how
              > to view the code in order to copy and paste it here. Sorry for the trouble. I
              > really appreciate your guidance.


              When I open the file I can see the problem right away
              Now, before I go on with it, let me say that this is extremely common.
              Not something the help files are too clear about.

              You are using DYNAMIC text field set to SELECTABLE, meaning - the text comes
              dynamically at run time and user can highlight it to copy it. This is what
              messes up the button, ability to stay active and enabled for the user to click
              and select in the same time. You should be using STATIC text instead.
              Type two lines , one static and one dynamic, you will see the difference.
              Dynamic is always outlined with dotted line, that's how you spot it while designing
              stuff in flash.

              Also, take note please. HIT state is never visible to user, it is there to define
              the HOT SPOT on which mouse react. Using text in hit frame will result the text
              outlines to be the hot spot, so when moving between letters, it will flicker back and forth
              from hand to regular pointer. To avoid it, draw a shape, rectangle, in size of the text and
              fill it up with solid color. It will than be the hot spot.



              --
              Regards

              Urami


              --



              Happy New Year guys - all the best there is in the 2006




              <urami>
              http://www.Flashfugitive.com
              </urami>

              <web junk free>
              http://www.firefox.com
              </web junk free>
              • 4. Re: Help with button hit state
                Filamino_1 Level 1
                Thank you so much. I can now continue my 'flash' journey. You are very helpful!