2 Replies Latest reply on Apr 6, 2010 10:10 AM by GordonSmith

    reverse string include null

    welcomecan Level 1



      i need reverse string include null

        • 1. Re: reverse string include null
          Vikash.kumar29 Level 3



          Can you be more specific to your problem, coz what gives me impression is you want to reverse string with "null" as a part of string




          • 2. Re: reverse string include null
            GordonSmith Level 4

            ActionScript's String class doesn't have a reverse() method, but the Array class does. So you could use String's split() method to split it into characters, Array's reverse() method to reverse them, and Array's join() method to join them back into a reversed String.


            As for ASCII NUL characters, they are allowed anywhere inside an ActionScript String. ActionScript doesn't use NUL to terminate a String, like C does.


            Gordon Smith

            Adobe Flex SDK Team