> When using 'manual' you could try using the setter method, again
from the docs...

I've tried doing this but Flex doesn't like having script blocks in
the item renderer.

> When needed for binding, take a look at BindingUtils.bindSetter

I don't know what to do with this as I can't get into a <SCRIPT> block.

A small example would really help.

Cheers,

David.

--- In [email protected], "johantrax" <[EMAIL PROTECTED]>
wrote:
>
> The source-property is bindable, though as stated in the docs:
> "Refers to the control that the ProgressBar is measuring the progress
> of. Use this property only in event and polled mode. A typical usage
> is to set this property to a Loader control."
> 
> Since you set your mode to manual, the source-property will be ignored
>  and as a consequence, the binding won't be executed.
> 
> When using 'manual' you could try using the setter method, again from
> the docs:
> "public function setProgress(value:Number, total:Number):void
>     Sets the state of the bar to reflect the amount of progress made
> when using manual mode. The value argument is assigned to the value
> property and the maximum argument is assigned to the maximum property.
> The minimum property is not altered."
> 
> When needed for binding, take a look at BindingUtils.bindSetter
> 
> --jeetee
> 
> --- In [email protected], "triggersoftware" <david.bates@>
> wrote:
> >
> > I'm trying to create a progress bar item renderer, but I can't get the
> > value of progress bar to bind:
> > 
> > <mx:AdvancedDataGridColumn headerText="% Complete" width="100"> 
> >     <mx:itemRenderer>
> >             <mx:Component>
> >                     <mx:VBox>                                               
> >                 
> >                             <mx:Label id="lbl" 
> > text="{data.percentageComplete}"/>
> >                             <mx:ProgressBar label="%3%%" maximum="100" 
> > width="100%"
> > mode="manual" source="{data.percentageComplete}"/>                          
> >                                         
> >                     </mx:VBox>
> >             </mx:Component>
> >     </mx:itemRenderer>
> > </mx:AdvancedDataGridColumn>                                
> > 
> > You don't appear to be able to bind the value using source.  What am I
> > doing wrong?
> >
>


Reply via email to