Hi Alex,

Thanks for the response.

On Wed, Jul 2, 2008 at 9:00 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

>    You can pass an array into a List or ComboBox and it will display it.
>



But since it is simply an array, and not a collection object, the List won't
be able to detect a change in the array's contents, right?

That's what I'm struggling with.

As I said, I've tried placing a dataChange listener inside the itemRenderer
-- I just tried this:

(within the DG):

                <mx:DataGridColumn headerText="Options">
                    <mx:itemRenderer>
                        <mx:Component>
                            <mx:HBox preinitialize="initComp()">
                                <mx:Script>
                                    <![CDATA[
                                        import flash.events.Event;
                                        private function initComp():void{

optionList.addEventListener("dataChange",optionList.validateNow);
                                        }
                                    ]]>
                                </mx:Script>
                                <mx:List id="optionList"
dataProvider="{data.options}" labelField="optionItem" />
                            </mx:HBox>
                        </mx:Component>
                    </mx:itemRenderer>
                </mx:DataGridColumn>

When the contents of the array represented by data.options changes, the
processor pegs. So I assume I'm creating some sort of infinite loop.


-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560

Reply via email to