Are you facing problem with setting the styles or also for data change ?

On Fri, Dec 5, 2008 at 11:28 AM, rohit <[EMAIL PROTECTED]> wrote:
>
>
> In line chart
> :item renered works only once when the graph loads. But not every time
> when i change the data provider of graph
>
>
>
>  <mx:itemRenderer>
>        <mx:Component>
>        <mx:Box creationComplete="setVersion()"  cornerRadius="15"
> borderStyle="solid" backgroundColor="#E48701"  height="3" width="3" >
>        <mx:Script>
>                 <![CDATA[
>                                import mx.controls.Alert;
>                          private function setVersion():void
>           {
>                                if
> ((data.item.date==outerDocument.versionStartDate)||
> (data.item.date==outerDocument.versionChangeDate))
>                                                                               
>                  this.setStyle
> ("backgroundColor","#307AFF");
>                                                                               
>          else
>                                                                               
>                  this.setStyle
> ("backgroundColor","#E48701");
>                                                                               
>      }
>                                                                               
>    ]]>
>                                                                               
>  </mx:Script>
>                                                                               
>                  <!--<mx:CrossItemRenderer scaleX="1" scaleY="1" />-->
>
>                                                                        
> </mx:Box>
>
>                                                                         
> </mx:Component>
>                                                                    
> </mx:itemRenderer>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to