Hi All! Take a look at the example below:
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> <![CDATA[ import mx.collections.ArrayCollection; [Bindable] private var _dataProvider : ArrayCollection; [Bindable] private var _selectedIndex : int; ]]> </mx:Script> <mx:LinkBar dataProvider="{_dataProvider}" selectedIndex="{_selectedIndex}" /> </mx:Application> The exception is thrown while running this application. Sure, it is due to _selectedIndex default value that equals 0, but _dataProvider is still empty. But how to avoid this problem? Regards, Sergey. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

