Just reporting a strange bug.
I get error:
TypeError: Error #1010: undefined has no properties.
at mx.controls.listclasses::ListBase/scrollVertically()
at mx.controls.listclasses::ListBase/set vPosition()
at mx.controls.listclasses::ListBase/mouseWheelHandler()
Here is the code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*" layout="absolute" creationComplete="loadData();">
<mx:Script>
<![CDATA[
public var dataProvider:Array;
public function loadData():void
{
dataProvider =
[
{label:"Item 1", data:"This is item 1"},
{label:"Item 2", data:"This is item 2"},
{label:"Item 3", data:"This is item 3"},
{label:"Item 4", data:"This is item 4"},
{label:"Item 5", data:"This is item 5"},
{label:"Item 6", data:"This is item 6"},
{label:"Item 7", data:"This is item 7"}
]
itemList.dataProvider = dataProvider;
itemList.addEventListener("change", showItem);
}
private function showItem(event):void
{
itemView.text = itemList.selectedItem.data;
}
]]>
</mx:Script>
<mx:Panel x="10" y="10" width="250" height="250" layout="vertical">
<mx:VDividedBox width="100%" height="100%">
<mx:List id="itemList" width="100%" height="100%"/>
<mx:TextArea id="itemView" width="100%" height="100%"/>
</mx:VDividedBox>
</mx:Panel>
</mx:Application>
Now mess around with the list select some items, then move the divider bar. Bam it gives me the error above.
Peace, Mike
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

