Skip to main content
Inspiring
October 9, 2007
Question

string split an array

  • October 9, 2007
  • 2 replies
  • 222 views
slidesArraySplit=new Array();
slidesArray=new Array();

slidesArray[0]='hello|bye';
slidesArray[1]='hello2|bye2';

slidesArraySplit=slidesArray[0].split('|');

trace(slidesArraySplit[0]);

Why is this resulting in undefined? thanks to any responders.
This topic has been closed for replies.

2 replies

Inspiring
October 9, 2007
Sorry I'm being thick.. my code deos work...but soemthing in the rest of my code is stopping it from working. sorry. J
kglad
Community Expert
Community Expert
October 9, 2007
: