5 Replies Latest reply on Jul 21, 2007 8:23 AM by connectricity

    Basketball Stats Widget help

      Example URL: /stats.cfm?player_id=12

      This page pulls up player info (picture, bio, etc) and the stats.
      This is what I have so far, and it works in a test phase, but I would like to make it a bit nicer.

      <mx:HTTPService id="feedRequest"url="/basketballstats/hoopstest_12.xml"useProxy="false"/>
      <mx:Panel width="600" height="280"
      layout="absolute" horizontalCenter="0" verticalCenter="0"
      title="Hoops Stats" id="panel1">

      <mx:Canvas id="SomeCanvas" left="0" top="0" right="0" bottom="0">
      <mx:DataGrid x="10" y="21" id="somestats" width="550" dataProvider="{feedRequest.lastResult.bbcareer.player.season}">
      <mx:DataGridColumn headerText="Year" dataField="year" width="75"/>
      <mx:DataGridColumn headerText="Games" dataField="gp" width="60"/>
      <mx:DataGridColumn headerText="PPG" dataField="ptsavg" width="60"/>
      <mx:DataGridColumn headerText="RPG" dataField="rebavg"/>
      <mx:DataGridColumn headerText="ASST" dataField="ast"/>
      <mx:DataGridColumn headerText="TO" dataField="to"/>
      <mx:DataGridColumn headerText="BLK" dataField="blk"/>
      <mx:DataGridColumn headerText="STL" dataField="stl"/>

      Under feedRequest.lastResult.bbcareer.player there is an attribute called name, which I would like to be where
      it says "Hoops Stats" in the Panel title. How do I do that?

      Also, since this is a test file, how do I get the player_id from the URL into the HTTPService.
      I am looking for something like
      <mx:HTTPService id="feedRequest"url="/basketballstats/hoopstest_PLAYER_ID.xml"useProxy="false"/>

      Finally, how do I get a column hedertext tooltip to show?
      <mx:DataGridColumn headerText="RPG" dataField="rebavg" tooltip="Rebounds Per Game"/>

      I am using CF 6, so I can not use LifeCycle Services.