6 Replies Latest reply on Jul 26, 2006 6:16 PM by Newsgroup_User

    what is wrong with this statement?

    kyleg
      on exitFrame me
      case the text of member "counter"
      "05":trigger
      "10":trigger
      "15":trigger
      "20":trigger
      "25":trigger
      end case
      go the frame
      end

      on trigger
      open "C:\b.exe"
      end

      I can get it to work as an if statement but not as a case statement which I prefer?
        • 1. Re: what is wrong with this statement?
          Level 7
          case .... of

          you missed putting the "of" word

          hth

          --
          -----
          Ned
          -----
          • 2. Re: what is wrong with this statement?
            Level 7
            you could carry on with an if :

            val = member("counter").text

            if val="05" or val="10" or ...... then
            end if


            hth

            --
            -----
            Ned
            -----
            • 3. Re: what is wrong with this statement?
              kyleg Level 1
              thanks!
              • 4. Re: what is wrong with this statement?
                Level 7
                Another option

                if (["05", "10", "15", "20", "25"]).getOne (the text of member "counter") <>
                0 then
                trigger
                end if

                --
                Craig Wollman
                Word of Mouth Productions

                phone 212 928 9581
                fax 212 928 9582
                159-00 Riverside Drive West #5H-70
                NY, NY 10032
                www.wordofmouthpros.com


                "kyleg" <webforumsuser@macromedia.com> wrote in message
                news:ea7v9g$hkd$1@forums.macromedia.com...
                > on exitFrame me
                > case the text of member "counter"
                > "05":trigger
                > "10":trigger
                > "15":trigger
                > "20":trigger
                > "25":trigger
                > end case
                > go the frame
                > end
                >
                > on trigger
                > open "C:\b.exe"
                > end
                >
                > I can get it to work as an if statement but not as a case statement which
                > I
                > prefer?
                >


                • 5. Re: what is wrong with this statement?
                  Level 7
                  On Wed, 26 Jul 2006 20:24:05 GMT, Word of Mouth Productions posted in
                  macromedia.director.lingo:

                  > Another option
                  >
                  > if (["05", "10", "15", "20", "25"]).getOne (the text of member
                  > "counter") <> 0 then
                  > trigger
                  > end if

                  Or:

                  on exitFrame me
                  case member("counter").text of
                  "05","10","15","20","25": trigger
                  end case
                  go the frame
                  end


                  --
                  Mark A. Boyd
                  Keep-On-Learnin' :)
                  • 6. Re: what is wrong with this statement?
                    Level 7
                    or:

                    theScore = (the text of member "counter").value
                    if (score mod 5 = 0) and (score >=5) and (score <=25) then
                    trigger
                    end if

                    I wonder how far we can take this
                    --
                    Craig Wollman
                    Word of Mouth Productions

                    phone 212 928 9581
                    fax 212 928 9582
                    159-00 Riverside Drive West #5H-70
                    NY, NY 10032
                    www.wordofmouthpros.com


                    "Mark A. Boyd" <mblist@sanDotrr.com.invalid> wrote in message
                    news:Xns980CAAE0A9E3FmblistssanDotrrcom@216.104.212.96...
                    > On Wed, 26 Jul 2006 20:24:05 GMT, Word of Mouth Productions posted in
                    > macromedia.director.lingo:
                    >
                    >> Another option
                    >>
                    >> if (["05", "10", "15", "20", "25"]).getOne (the text of member
                    >> "counter") <> 0 then
                    >> trigger
                    >> end if
                    >
                    > Or:
                    >
                    > on exitFrame me
                    > case member("counter").text of
                    > "05","10","15","20","25": trigger
                    > end case
                    > go the frame
                    > end
                    >
                    >
                    > --
                    > Mark A. Boyd
                    > Keep-On-Learnin' :)