6 Replies Latest reply on Jul 24, 2006 5:31 AM by TzK2

    List Problem

    InclusiveCEO
      Hello all,

      I have a problem I could use some help with, I would appreciate any help you guys could give me. I would like to make a list of the 50 US states, when someone clicks on one I would like to get a 1 thru 50 value. Can you help me do this?

      Thanks
        • 1. Re: List Problem
          Level 7
          This will bevahior when attached to a text sprite should do what you need

          property spriteNum
          on mouseUp me
          lineClicked = sprite(spriteNum).pointToLine(the mouseLoc)
          end



          • 2. Re: List Problem
            InclusiveCEO Level 1
            Thanks for all the help Dave, I really appreciate it.
            • 3. Re: List Problem
              howik
              Quastion :Hello all,

              I have a problem I could use some help with, I would appreciate any help you
              guys could give me. I would like to make a list of the 50 US states, when
              someone clicks on one I would like to get a 1 thru 50 value. Can you help me do
              this?
              Thanks



              ANSWER :

              you should make markers for each menu you want to make(50 US states)
              then make a field on your stage and then make the Dropdown List behavior for it (Library > controls > Dropdown list ) (Drag the Dropdown List to the fild and then in the dropdown List window from Contents of list ,choose " Markers in this movie " ,click OK .
              then Rewind & Play the movie and click on the field .
              • 4. Re: List Problem
                TzK2
                Hi,

                I'm trying something similar with dropdown menus. Is there an easy way to define which markers appear in the list, rather than 'all markers'? In other words, I only want the user to be able to jump to certain markers.

                Many thanks,

                TzK.
                • 5. Re: List Problem
                  Level 7
                  Hi there,

                  U may try to get the return of which item u selected in the drop-menu.

                  Step 1: create a field with 50 names in it
                  Step 2: applied DropDown List behavior to it: setting as : "Current content
                  in field" & "return the selected item ..."

                  Step 3: Add 1 custom behavior to the drop-menu:
                  ---------------------
                  on mouseUp
                  set a = the item of (sendAllSprites (#DropList_Selection))
                  case (a) of
                  1: do something
                  2: do something
                  etc.
                  end case
                  end mouseUp

                  ---------------------
                  Wish this may help. Good luck.

                  Athena

                  in article e9q68g$sui$1@forums.macromedia.com, TzK2 at
                  webforumsuser@macromedia.com wrote on 7/21/06 5:20 PM:

                  > Hi,
                  >
                  > I'm trying something similar with dropdown menus. Is there an easy way to
                  > define which markers appear in the list, rather than 'all markers'? In other
                  > words, I only want the user to be able to jump to certain markers.
                  >
                  > Many thanks,
                  >
                  > TzK.
                  >

                  • 6. Re: List Problem
                    TzK2 Level 1
                    Many thanks Athena, that works fine.