0 Replies Latest reply on Aug 12, 2009 2:17 AM by quebequiano

    Convert Java List to Array List

    quebequiano Level 1

      Hi!

       

      I have a function in Java, its return is:

       

      List<ApplicationObject>. (Application Object is a type defined by myself). I want to get it from an .as file and insert it into an action script list of ApplicationObject (the same type as Java but defined in ActionScript).

       

      CODE:

       

      JAVA

       

      public class ApplicationObject {

       

          private String idApplication;
          private String nameApplication;
          private String textApplication;

      ............................

      ...........................

      }

       

      public List<ApplicationObject> getListOfApplications() throws SQLException{

       

      ........................

       

      }

       

       

      ACTION SCRIPT

       

       

       

          public class ApplicationObject
          {
              public var idApplication:String;
              public var nameApplication:String;
              public var textApplication:String;

       

       

       

          }

       

      ------------------------------------------------------------------------------------------ -------

       

       

       

                  public function getData():void
                   {

       

      ????????????????????????????????????????????????????????????? THIS IS MY QUESTION!!!!

      }

       

       

      THANKSS A LOT!