Hi Matt, I thought I tried that….But when I tried it today it works like a beauty…Thanks so much…I really appreciate it.

 

 

----------------------------------------------------------------------------------------------------------------------------------------------

 

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Horn
Sent: Saturday, June 03, 2006 8:36 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Changing Color at Run Time on My PieChart

 

you can use the setStyle method to set the value of the fills property, like this:

 

  series1.setStyle("fills",[0xFFFF00,0x00FF00]);

hth,

 

matt horn

flex docs

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Chaitu Vadlapatla
Sent: Friday, June 02, 2006 7:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Changing Color at Run Time on My PieChart

I am really stuck with this one. I want to be able to set colors on this Pie chart at run time using Action Script.

 

Here are the things I tried….chart.setStyle("SolidColor",0x000000); chart.graphics.beginFill(0x990000,100); I would really appreciate it if anybody could tell me what I would need to do for this.

 

 

<mx:PieChart click="keyListenOnKeyUp()" id="chart" paddingLeft="5" dataProvider="{Medals}" height="50" width="50" paddingRight="0" x="6.5" y="8">

            <mx:series>

                <mx:Array>

                    <mx:PieSeries field="Gold" startAngle="180">

                    <mx:filters>

                        <flash.filters:DropShadowFilter xmlns:flash.filters="flash.filters.*"

                                    color="0xffffff" alpha="0" blurX="100" blurY="100" />

                      </mx:filters>

                      <mx:fills>

                      <mx:Array>

                         <mx:SolidColor color="0xff00ff" alpha="1"/>

                      </mx:Array>

                      </mx:fills>

                    </mx:PieSeries>

                </mx:Array>

          </mx:series>

      </mx:PieChart>

 

 

CHAITU VADLAPATLA
SOFTWARE ENGINEER

T8DESIGN.COM | P 319.266.7574 - x145 | 877.T8IDEAS | F 888.290.4675


This e-mail, including attachments, is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, and then please delete it. Thank you.

 



--
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