Seems to me that Flex doesn't like scripts anywhere but in the root of a document. I do not have any experience with item-renderers, nor do I have with loaders, but this is my guess:
If you create the ItemRenderer as a custom mxml-component, then you should be able to set a script-block in this file. Again this is just my wild thinking, but I hope that with it, you, or others in here, might get to a working example. Good luck, --jeetee --- In [email protected], "triggersoftware" <[EMAIL PROTECTED]> wrote: > > > 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. > > ... [cut out response] ... > > > > --- 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? > > > > > >

