jan_flanders

Untitled

May 21st, 2012
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public function getBusiness ($item)
  2. {
  3.         return mysqli_query($this->connection, "SELECT * FROM businesses");
  4. }
  5.  
  6. protected function getBusiness_resultHandler(event:ResultEvent):void
  7. {
  8.     var businesslist:ArrayCollection = event.result.data as ArrayCollection ;//not sure about the data
  9.     for(var i:int=0; i<businesslist.length; i++)
  10.     {
  11.         var businessMarker:Marker = new Marker(new LatLng(businesslist[i].latitude, businesslist[i].longitude));
  12.     Map.addOverlay(businessMarker);
  13.     }
  14. }
  15.  
  16.  
  17.  
  18. ---------------------------------------------------
  19.  
  20. <businessservice:BusinessService id="businessService"                            fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)"                                showBusyCursor="true"/>
  21.  
  22. <s:CallResponder id="getBusinessResult" result="getBusiness_resultHandler(event)"/>
Advertisement
Add Comment
Please, Sign In to add comment