Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

working with strings (Explode)

Question posted by: bnashenas1984 (Familiar Sight) on July 7th, 2008 07:51 PM
Hi everyone
I'm looking for a function to cut strings in actionscript 3
there is a function in PHP which cuts strings using a second string.

Here is the example :
If you explode this string in PHP : "my - name - is - David" by the charecter which seprates them "-" the result will be an Array

1. my
2. name
3. is
4. David

Is there a way to do it in AS3
Any suggestions will be helpfull

Thanks
Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
bnashenas1984's Avatar
bnashenas1984
Familiar Sight
128 Posts
July 17th, 2008
05:17 PM
#2

Re: working with strings (Explode)
Finally I found the command.
I'm posting it for those who might have the same problem

ArrayName = StringName.split("Spliter");


ArrayName will be the array you want to put splited string into.
StringName is the string you want to split.
and Spliter is the character you want to split the string with

Reply
Reply
Not the answer you were looking for? Post your question . . .
183,907 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
Top Flash / Actionscript Forum Contributors