thanksmister / as3scrollinglist Goto Github PK
View Code? Open in Web Editor NEWAS3 Scrolling List for Android and iOS devices
Home Page: http://goo.gl/vQ8uV
AS3 Scrolling List for Android and iOS devices
Home Page: http://goo.gl/vQ8uV
I am getting the following when I try and call removeListItems(); This issue is not fixed yet. At first i thought it was my code but actually its happening even when i use the example provided from github svn repository.
Error: Error #2094: Event dispatch recursion overflow.
at flash.display::DisplayObjectContainer/removeChild()
at com.thanksmister.touchlist.renderers::TouchListItemRenderer/destroy()
at flash.display::DisplayObjectContainer/removeChild()
at com.thanksmister.touchlist.renderers::TouchListItemRenderer/destroy()
at flash.display::DisplayObjectContainer/removeChildAt()
at com.thanksmister.touchlist.controls::TouchList/removeListItems()
If you remove all the items and then add a new one, the timer is stil stopped.
Fix: restart the timer if it's not running.
I am getting the following when I try and call removeListItems();
Error: Error #2094: Event dispatch recursion overflow.
at flash.display::DisplayObjectContainer/removeChild()
at com.thanksmister.touchlist.renderers::TouchListItemRenderer/destroy()
at flash.display::DisplayObjectContainer/removeChild()
at com.thanksmister.touchlist.renderers::TouchListItemRenderer/destroy()
at flash.display::DisplayObjectContainer/removeChildAt()
at com.thanksmister.touchlist.controls::TouchList/removeListItems()
Any ideas?
Using your demo and adding removeListItem(index) to your handler for the current selected item gives the following error:
[SWF] AS3ScrollingList.swf - 14808 bytes after decompression
List item selected: 9
destroy
destroy
Error: Error #2094: Event dispatch recursion overflow.
at flash.display::DisplayObjectContainer/removeChild()
at com.thanksmister.touchlist.renderers::TouchListItemRenderer/destroy()[/Users/XXXX/Documents/GitHub/as3scrollinglist/com/thanksmister/touchlist/renderers/TouchListItemRenderer.as:174]
at flash.display::DisplayObjectContainer/removeChild()
at com.thanksmister.touchlist.renderers::TouchListItemRenderer/destroy()[/Users/XXXX/Documents/GitHub/as3scrollinglist/com/thanksmister/touchlist/renderers/TouchListItemRenderer.as:174]
at flash.display::DisplayObjectContainer/removeChildAt()
at com.thanksmister.touchlist.controls::TouchList/removeListItem()[/Users/XXXX/Documents/GitHub/as3scrollinglist/com/thanksmister/touchlist/controls/TouchList.as:195]
at AS3ScrollingList/handlelistItemSelected()[/Users/XXXX/Documents/GitHub/as3scrollinglist/AS3ScrollingList.as:133]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.thanksmister.touchlist.controls::TouchList/handleItemSelected()[/Users/XXXX/Documents/GitHub/as3scrollinglist/com/thanksmister/touchlist/controls/TouchList.as:409]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.thanksmister.touchlist.renderers::TouchListItemRenderer/selectHandler()[/Users/XXXX/Documents/GitHub/as3scrollinglist/com/thanksmister/touchlist/renderers/TouchListItemRenderer.as:201]
(REPEATS)
Hi
I have read in your comments that this issue was resolved but i can confirm from github latest checkout that it remains. When you try to removeListItems if there is any item in the list this error happens. i have tried the fix you have mentioned but it has no effect.. Can you please suggest something ?
Thank for the great class. I am unable to remove the scrolling list from the stage without generating an event recursion error in the TouchListItemRenderer destroy() function. The error is thrown when the textfield is removed from the list.
I fixed the issue by changing the listener for the destroy() function. As written, the TouchListItemRenderer class listens for the EVENT.REMOVE event. This event bubbles into children like the textfield, so that the remove event fires once for the list item and again for any children of the list item, generating the error.
I changed this
public function TouchListItemRenderer(){
addEventListener(Event.REMOVED, destroy);
}
to this:
public function TouchListItemRenderer() {
addEventListener(Event.REMOVED_FROM_STAGE, destroy);
}
and made the error and problem go away. It's not trivial in that events floating around after their object has been removed can and do cause problems in apps.
Hi'
Great work there. I am using it Ina. Project of mine and I notice that if I scroll towards the end of the list and they to click a item towards the end the list behaves abruptly and jumps back up. So I just cannot bring the item under the finger and have it clicked. The moment I touch the list position jumps back again.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.