Actionscript/Array

From Gnash Project Wiki

Jump to: navigation, search

Array

Functionality is implemented up to AS8. The implemented functions are:

  • method Array.join
  • method Array.concat
  • method Array.pop
  • method Array.push
  • method Array.splice
  • method Array.reverse
  • method Array.shift
  • method Array.unshift
  • method Array.slice
  • method.Array.toString
  • method.Array.sort
  • method.Array.sortOn

There are potential issues in the way certain gnash array methods handle AS objects that implement the valueOf() method (when passed in as parameters to Array.slice etc). The correct handling of NaN values for NUMERIC sorts also requires investigation. [ I am currently working on resolving these issues. --ivor 2007-08-04 ]