Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

split 1

Status
Not open for further replies.

Bignewbie

Programmer
Feb 22, 2001
351
PH
hi guys,

How do you do a split in flash? what i mean is that i have this string:


1,2,3,4,5*6,7,8,9,10


i want to split this into an array like with the * as delimiters so it is like this:

array(1)=1,2,3,4,5
array(2)=6,7,8,9,10


in ASP I can easily do this this way:

tempword="1,2,3,4,5*6,7,8,9,10"

temparray=split(tempword,"*")

i hope this is quite clear and that you guys would help me with this one.

thanks in advance.


biggie



 
You can do the same thing in Flash


sha="1,2,3,4,5*6,7,8,9,10";
sha99=new Array();
sha99=sha.split( "*" );

Hope it'll help ;-)
Have Fun...

Sharky99 >:):O>
 
Thanks sharky!

i sort of figured it out with my book early this morning! I think not many flash programmers know this do they? or else somebody would have answered a lot sooner. Thanks for the info sharky!


biggi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top