0 Replies Latest reply on Jun 13, 2010 1:44 PM by makav3li97

    Absolute Positioning to App Window inside List (dataProvider)

    makav3li97

      I've got an an arraycollection of data points that look something like this:

       

      private var renderArray:ArrayCollection = new ArrayCollection([{id:"123456",name:"Carnegie Mellon University",city:"Pittsburgh",state:"PA",
                      totalpop:"5000",degree:"3",'private':"1",endowment:"1000000000",climate:"2",
                      lat:"40.4379259",lng:"-79.9556424"},
                      {id:"654321",name:"Case Western Reserve University",city:"Cleveland",state:"OH",
                          totalpop:"7000",degree:"3",'private':"1",endowment:"1200000000",climate:"2",
                          lat:"41.5091257",lng:"-81.6089873"}]);

       

      I've got a List component rendering the above data with a seperate itemrender defined in "mainListRenderer.mxml"

      In addition to rendering the text in the List object via <s:Label text="{data.name}"/>, I would like to place an ellipse object in the map. I already have the code to generate the x and y coordinates on the map from the latitude and longitude, but how can I place the ellipse with absolute positioning? Does it have something to do with the ellipse.owner property?

       

      I would liek to keep the ellipse inside the itemrender so I can change its appearance as the list text is hovered over.

       

      See image below.

       

       

      scrnshot.jpg