3 Replies Latest reply on Aug 7, 2007 7:23 AM by kglad

    Passing dinamyc arguments

    CaioToOn! Level 3
      Hello, everybody!

      Is there a way to create a new instance of an object passing an array as the arguments just like the Function.apply method does?

      Its something like:


      import flash.filters.DropShadowFilter;

      function createObFilter():Void
      {
      var ob = new DropShadowFilter(arguments);
      }

      createObFilter(45, 4, 0xFF0000);


      I hope someone knows the solution, if it exists.

      Thanks,
      CaioToOn!