Small AS ?

  • Started
  • Last post
  • 1 Response
  • rson

    I am trying to split a string contained in an array. what is the bet way to do this. I thought that this would work but it does not seem to be working

    MessageText[i] = currentNode.childNodes[4].childN...
    var location_array:Array = MessageText[i].split("t", 2);

    any help would be cool

  • ian000

    looks like you need to push() MessageText[i] into location_array.

    or do something like

    var location_array:Array = new Array();

    location_array[0] = MessageText[i].split ("t", 2);