Strict Standards: Declaration of action_plugin_discussion::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/mlange/widged.com/wiki/lib/plugins/discussion/action.php on line 15

Strict Standards: Declaration of action_plugin_importoldchangelog::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/mlange/widged.com/wiki/lib/plugins/importoldchangelog/action.php on line 182

Strict Standards: Declaration of action_plugin_importoldindex::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/mlange/widged.com/wiki/lib/plugins/importoldindex/action.php on line 57

Strict Standards: Declaration of action_plugin_include::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/mlange/widged.com/wiki/lib/plugins/include/action.php on line 140

Strict Standards: Declaration of action_plugin_indexmenu::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/mlange/widged.com/wiki/lib/plugins/indexmenu/action.php on line 131

Strict Standards: Declaration of action_plugin_syntaxhighlighter3::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/mlange/widged.com/wiki/lib/plugins/syntaxhighlighter3/action.php on line 109

Strict Standards: Declaration of action_plugin_tag::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/mlange/widged.com/wiki/lib/plugins/tag/action.php on line 80

Strict Standards: Declaration of action_plugin_task::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/mlange/widged.com/wiki/lib/plugins/task/action.php on line 178

Warning: Cannot modify header information - headers already sent by (output started at /home/mlange/widged.com/wiki/lib/plugins/discussion/action.php:15) in /home/mlange/widged.com/wiki/inc/auth.php on line 313

Warning: Cannot modify header information - headers already sent by (output started at /home/mlange/widged.com/wiki/lib/plugins/discussion/action.php:15) in /home/mlange/widged.com/wiki/inc/actions.php on line 163
widged wiki » en:computers:lg:actionscript:actionscript-3:data:collections:arraycollection
    widged.com
 

Array Collection

The ability to manipulate the data is done using the concept of a *cursor*. A cursor is a position indicator, which allows direct access to any particular item in the collection. Among the controls you have with a cursor are methods for stepping from one item to the next; finding a particular item; adding, removing, or editing an item; etc. Cursors are available to any of the classes that implement ICursorView interface.

Before you can use a cursor on an array collection, the data in the collection needs to be sorted.

var prodSort:Sort = new Sort();
var sortField1:SortField = new SortField("catID");
var sortField2:SortField = new SortField("listPrice");
prodSort.fields = new Array (sortField1, sortField2);
myArrayCollection.sort = prodSort;
myArrayCollection.refresh();

Extending ArrayCollection

 
en/computers/lg/actionscript/actionscript-3/data/collections/arraycollection.txt · Last modified: 2008/09/23 20:07 by marielle
 
RSS - Banner by widged, template © 7throot HeadQuarters, 2007