3 Replies Latest reply on Mar 4, 2008 12:32 AM by yevgen_78

    type array? Is it possible?


      i want to know is it possible to have the array of the specific type? (in declaration)

      For example

      public function test( items:Array) ...

      in this example i can't force user to put an array of a special type.

      for example in java

      for 'static' array
      public void test( MyItem[] items)

      for 'dynamic' array
      public void test ( ArrayList<MyItem> itmes )

      These examples are type-safe.

      Is it possible to do it Action Script