but when i put in my datagrid dataChange="datagrid2.selectedIndex.AutoB()" i get this error
undefined method
here is the code to pass data to datagrid2
import mx.collections.XMLListCollection;
[Bindable]
private var _xlcdatagrid:XMLListCollection;
[Bindable]
private var _xlcdatagrid2:XMLListCollection = new XMLListCollection;
private function onResult(oEvent:ResultEvent):void
{
_xlcdatagrid = new XMLListCollection(oEvent.result.name)
datagrid.dataProvider = _xlcdatagrid;
}
private function selectItem():void
{
_xlcdatagrid2.addItem(datagrid.selectedItem);
}
********************************************************
code
public function AutoB():void{
if (this._xlcdatagrid2.length >= 2){
_xlcdatagrid2.removeItemAt(0);
}
}
*********************************************************
<mx:Datagrid>
..
dataChange="datagrid2.selectedIndex.AutoB()"
</mx:Datagrid>
......
__._,_.___
--
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
| Software development tool | Software development | Software development services |
| Home design software | Software development company |
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.
__,_._,___

