Re: [flexcoders] Error while doing the Linked list demo using flex
Hi, they are in the repository in the same folder. I think that the better way to use it is like so: var list:DataList = DataList.fromArray([1, 2, 3], int); or var list:DataList = DataList.fromVector(new int[1, 2, 3]);
Re: [flexcoders] Error while doing the Linked list demo using flex
Thank you for the reply. In that datalist.as file how do i import ListCell. Any help would be appreciated. Thank you, Raji Nandam
Re: [flexcoders] Error while doing the Linked list demo using flex
Hi, I think I know this implementation, and, I don't really like it, so I've made my own, you're welcome to try: http://code.google.com/p/e4xu/source/browse/trunk/src/org/wvxvws/data/DataList.as (+ dependencies) Or from templates, if you are using FD: http://code.google.com/p/e4xu/source/browse/trunk/templates/List.as.fdt
[flexcoders] Error while doing the Linked list demo using flex
Hello sir, i am getting the error when i am running the code stage.scaleMode = StageScaleMode.NO_SCALE; stage.align = StageAlign.TOP_LEFT; dll = new DLinkedList(); for (var i:int = 0; i START_NODES; i++) { Alert.show(i am in forloop); var node:Node = new Node(); //var node:UIComponent = new UIComponent(); trace(node); node.removeEventListener(MouseEvent.MOUSE_UP, node.mouseHandler); trace(node.removeEventListener(MouseEvent.MOUSE_UP, node.mouseHandler)); Alert.show(i am in outside loop); addChild(node); trace(addChild(node)); dll.append(node); } addChild(canvas = new Shape()); TypeError: Error #1009: Cannot access a property or method of a null object reference. at TestLinkedList/List()[C:\Users\raji\Documents\Flex Builder 3\DataStrucutres\src\TestLinkedList.mxml:58] at TestLinkedList/init()[C:\Users\raji\Documents\Flex Builder 3\DataStrucutres\src\TestLinkedList.mxml:34] at TestLinkedList/___TestLinkedList_Application1_creationComplete()[C:\Users\raji\Documents\Flex Builder 3\DataStrucutres\src\TestLinkedList.mxml:2] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9298] at mx.core::UIComponent/set initialized()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:1169] at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:718] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8628] at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8568]