1 Reply Latest reply on Sep 18, 2008 5:42 AM by Newsgroup_User

    Accessing data from a class

    SiHoop Level 1
      I want to modify a class to use data stored in an a public ArrayCollection named myData that has been populated in an mxml file. I want to populate the variables newLat and newLng with data stored in myData. For example, if myData contains var1 and var 2, I'd like to be able to create the following loop which seems to be illegal:

        • 1. Re: Accessing data from a class
          Level 7

          "SiHoop" <webforumsuser@macromedia.com> wrote in message
          news:gasigo$l0r$1@forums.macromedia.com...
          >I want to modify a class to use data stored in an a public ArrayCollection
          > named myData that has been populated in an mxml file. I want to populate
          > the
          > variables newLat and newLng with data stored in myData. For example, if
          > myData
          > contains var1 and var 2, I'd like to be able to create the following loop
          > which
          > seems to be illegal:

          You can either pass the data in as an argument to the constructor or a
          property (preferred), or you can look at using a Singleton Class.