0 Replies Latest reply on Jan 3, 2010 12:58 PM by Anne Tuohy

    setting cast member to an empty "string"

    Anne Tuohy

      Hi Rob, thanks again for that. It is a bit difficult to explain.

      This is the if/else statement I have on the text input cast

       

      on keydown

        if the key = return or the key = enter then

          moveon

        else

          pass

        end if

      end

       

      on moveon me

        if member("input").text = "house" then

          member(155).font = "terminal"

          member ("OUTPUT").text = "well done!"

          sound(1). play(member("VO WELL DONE"))

        else

          member(155).font = "terminal"

          member ("OUTPUT").text = "try again"

          sound(1). play(member("VO TRY AGAIN")) 

        end if

      end

       

      This is the lingo I am using: set the text of member(23) = " " .

      You see what I am doing is interactive so it may not always be in sequence. The frame in question has three buttonl/links from the page. I tried what you suggested and I am still getting the same problem. I have put it on all three together and individually but same result. I even tried using an  input field instead of text field. When I put the above behavior on a sprite, I have to type the right answer 2 or 3 times before it accepts it, when I take it off ,it accepts the right answer immediately and the if/else statement works fine There is no logic to it, it should work or not at all. I have an assignment to hand in for next Friday so this is really taking up so much time for such a small thing.

       

      Anne