2 Replies Latest reply on Jul 17, 2006 8:54 AM by Newsgroup_User

    Need to add Cariage Returns to my Behavior fields

    Kevin_Boyd
      I am working on a 5 European language based CD-ROM. So for each individual screen I want a Behavior attached to a text sprite that will display the relevant languages text in it. Problem with using a Behavior approach is entering Carriage Returns into text entered into the Behavior fields. I tried putting \n and also using ""&return&"" but neither worked. Would liek to avoid using XML or a large array holding my many pages of text.

      So any ideas how best to achieve this in the simplest way possible?

      Thanks

      Kevin
        • 1. Re: Need to add Carriage Returns to my Behavior fields
          Level 7
          try

          _movie.keyboardFocusSprite = {number of the sprite, containing your Behavior
          field}

          "Kevin Boyd" <webforumsuser@macromedia.com> wrote in message
          news:e9g8r5$6ve$1@forums.macromedia.com...
          > I am working on a 5 European language based CD-ROM. So for each individual
          > screen I want a Behavior attached to a text sprite that will display the
          > relevant languages text in it. Problem with using a Behavior approach is
          > entering Carriage Returns into text entered into the Behavior fields. I
          tried
          > putting \n and also using ""&return&"" but neither worked. Would liek to
          avoid
          > using XML or a large array holding my many pages of text.
          >
          > So any ideas how best to achieve this in the simplest way possible?
          >
          > Thanks
          >
          > Kevin
          >


          • 2. Re: Need to add Carriage Returns to my Behavior fields
            Level 7
            Hi Kevin,

            Are you trying to set multiline text as the comment part of a behavior
            property window? If so, nope, can't do that.

            If you are trying to set a string as a property variable's value, like:

            myVar = "this string" and you want to have it displayed as multiline
            text then you can do this"

            myVar = "this" & RETURN & " string"

            Are either of those what you want to do?

            --
            Rob
            _______
            Rob Dillon
            Adobe Community Expert
            http://www.ddg-designs.com
            412-243-9119

            http://www.macromedia.com/software/trial/