Issue related to List component:-
When u are dragging an item in same list it does not work in Desktop Application but same work in Web Application
If u select first item in list and try to drag in same list towards bottom of the list, item get automatically scrolled in web application but in AIR it is not.
How to make it scroll in AIR? And what is the solution?
Sample:- For AIR Application
< ?xml version="1.0" encoding="utf-8"?> < mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="initApp();" xmlns:local="*"> < mx:Script> < ![CDATA[ import mx.events.DragEvent; import mx.managers.DragManager; import mx.core.DragSource; import mx.collections.IList; import mx.collections.ArrayCollection;
private function initApp():void {
firstList.dataProvider = new ArrayCollection([
{label:"First", data:"1"},
{label:"Second", data:"2"},
{label:"Third", data:"3"},
{label:"Fourth", data:"2"},
{label:"Fifth", data:"3"},
{label:"Sisth", data:"2"},
{label:"Seventh", data:"3"},
{label:"Eight", data:"2"},
{label:"Nine", data:"3"},
{label:"Ten", data:"2"},
{label:"Eleven", data:"3"},
{label:"Twelve", data:"4"},
]);
}
]]>
< /mx:Script> < mx:HBox> < mx:VBox width="100%" height="100%"> < mx:List id="firstList" width="110" height="110" dragEnabled="true" dropEnabled="true" dragMoveEnabled="true" liveScrolling="false" /> < /mx:VBox> < /mx:HBox> < mx:Button id="b1" label="Reset" click="initApp()" x="10" y="168"/> < /mx:WindowedApplication>