Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old July 7th, 2008, 08:51 PM
Familiar Sight
 
Join Date: Sep 2007
Posts: 194
Default working with strings (Explode)

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
Reply
  #2  
Old July 17th, 2008, 06:17 PM
Familiar Sight
 
Join Date: Sep 2007
Posts: 194
Default

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

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles