Okay, so I've made an itemRenderer for a pieSeries.  But sometimes I want to turn it off.  How might I go about that?

    <mx:PieSeries id="ps" field="time" labelPosition="insideWithCallout" labelFunction="getLabel"
      dataProvider="{chartData}" insideLabelSizeLimit="10" fontSize="10">
          <mx:itemRenderer>
              <mx:Component>
                  <nes:PieCategoryWedgeRenderer>
                      <nes:categories>
                          <nes:PieCategory value="Encouraged" color="#99FF99"/>
                          <nes:PieCategory value="Acceptable" color="#9999FF"/>
                          <nes:PieCategory value="Risk" color="#FFFF99"/>
                          <nes:PieCategory value="High Risk" color="#FF9999"/>
                      </nes:categories>
                  </nes:PieCategoryWedgeRenderer>
              </mx:Component>
          </mx:itemRenderer>
    </mx:PieSeries>



PieCategoryWedgeRenderer is a class I wrote that I mentioned in another thread.  So now in some function in the application, I want to say:

ps.itemRenderer = null;

or even

ps.itemRenderer.categories[0].value = "NewTitle";

I've read through all the help and can't figure out how I would actually do that.  FB says it has no idea what "ps.itemRenderer" is referring to.  So that kinda stumps me.

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to