1 Reply Latest reply on Jan 3, 2007 12:36 PM by ntsiii

    Object to Array

    187_2007 Level 1
      I have an objec that is being sent to my function. From there I want to cast that object into an array so that I can access elements of that array. How do I do this? Here is my code snipit:

      private function resultHandler(event:ResultEvent):void
      qry_result.source=event.result as Array;

      var qry1:String = ObjectUtil.toString(event.result);

        • 1. Re: Object to Array
          ntsiii Level 3
          "event.result" is an object that wraps your result. What have you set for the resultFormat?

          Debug the event.result object to determine exactly what the strucure is. You may be able to dot down to an an existing array.

          If you trace qry1, what do yo see?