A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: make several arrays from one array

Threaded View

  1. #1
    Senior Member
    Join Date
    Aug 2012
    Posts
    115

    make several arrays from one array

    Hello,

    I need to be able to split my array into several arrays.

    so far I have
    PHP Code:
    var Speech:Array = ["abcde""abcde""abcde""abcde""abcde""abcde""abcde""abcde""abcde""abcde""abcde"];
    var 
    Amount:Number Speech.length;// 11 at present
    var Clipped:Number 3
    the original array length does change, get longer over time, i always want the same divide.

    clipped is the amount of arrays i want to split the array into( or any other number should i change it)

    looking for this
    PHP Code:
    new array = (["abcde","abcde","abcde","abcde"],["abcde","abcde","abcde","abcde"],["abcde","abcde","abcde"]) 
    I have absolutely no idea,

    may thanks for looking
    Last edited by Terrencing; 04-23-2013 at 09:22 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center