Tag: workaround

  • ActionScript 2: Cast object to array

    Explicit conversion (casting) in ActionScript2 is very easy. Just put the variable in parentheses and precede the (new) type you want to cast to, like: var i:Number = 1; var b:Boolean = Boolean(i); trace(b); // outputs “true” Trying to cast an object to an array using this technique does not result in the expected output. […]