![]() |
|
||||||||||
|
|
|
|||||
|
Регистрация: Aug 2002
Адрес: далеко...
Сообщений: 132
|
Простой вопрос: при разделении Stroke объекта splitом в какой массив, или лучше, как указать массив, который будет заполняться этими мелкими Stroчками?
|
|
|||||
|
stroka="a,b,c";
arr = stroka.split(','); trace(arr[1]); |
|
|||||
|
Регистрация: Aug 2002
Адрес: далеко...
Сообщений: 132
|
И всего-то!? Блин, мог бы сам догадаться
Спасибо. |
|
|||||
|
Цитата:
String.split Availability Flash Player 5. Usage myString.split("delimiter", [limit])Parameters delimiter The character or string at which myString splits. If the delimiter parameter is undefined, the entire string is placed in the first element of the array. limit The number of items to place into the array. This parameter is optional. Returns An array containing the substrings of myString. Description ... myString = "Joe"; i = myString.split(""); trace (i);The Output window displays the following: J, O, EIf the delimiter parameter is undefined, the entire string is placed into the first element of the returned array. Example The following example returns an array with five elements. myString = "P, A, T, S, Y"; myString.split(","); ЗЫ и знание буржуйского тут непричем ![]()
__________________
Старый плюс лучше новых двух. I like RTFM попросил - подожди - обработай Chr(255) == '\xFF' - это про "я" lexass |
|
|||||
|
Регистрация: Aug 2002
Адрес: далеко...
Сообщений: 132
|
...мне надо больше времени уделять чтению хелпа...
Всем спасибо! вопрос исчерпан. |
![]() |
Часовой пояс GMT +4, время: 09:39. |
|
|
« Предыдущая тема | Следующая тема » |
|
|