[flexcoders] Re: Progress Bar Item Renderer

2007-11-14 Thread triggersoftware
Came up with a nearly-pure MXML version: ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; mx:ProgressBar id=pb mode=manual label=%3%% labelPlacement=center creationComplete=setData() width=100%/ mx:Script ![CDATA[

[flexcoders] Re: Progress Bar Item Renderer

2007-11-12 Thread johantrax
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

[flexcoders] Re: Progress Bar Item Renderer

2007-11-12 Thread triggersoftware
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

[flexcoders] Re: Progress Bar Item Renderer

2007-11-12 Thread johantrax
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

Re: [flexcoders] Re: Progress Bar Item Renderer

2007-11-12 Thread Douglas Knudsen
Its certainly possible to do this. Try the following mx:itemRenderer mx:Component mx:HBox mx:Script . Cheers! DK On Nov 12, 2007 8:59 AM, johantrax [EMAIL PROTECTED] wrote: Seems to me that Flex doesn't like scripts anywhere but in the root of a document. I do not have any

[flexcoders] Re: Progress Bar Item Renderer

2007-11-12 Thread triggersoftware
hmmm... the code completion in Eclipse builder says it isn't valid, but the compiler says it is Anyway, I solved the problem by creating a new class: ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[