Flex3 Bug:IViewCursor movePrevious example mistake


Steps to reproduce:
1. Open http://livedocs.adobe.com/labs/flex3/langref/mx/collections/IViewCursor.html
2. Find the movePrevious () method
3.And you will see the Example below.
 
 Actual Results:
 var myArrayCollection:ICollectionView = new ArrayCollection([ "Bobby", "Mark", "Trevor", "Jacey", "Tyler" ]);
      var cursor:ICursor = myArrayCollection.createCursor();
      cursor.seek(CursorBookmark.last);
      while (!cursor.beforeFirst)
      {
          trace(current);
          cursor.movePrevious();
      }
 
 Expected Results:
 var myArrayCollection:ICollectionView = new ArrayCollection([ "Bobby", "Mark", "Trevor", "Jacey", "Tyler" ]);
      var cursor:IViewCursor = myArrayCollection.createCursor();
      while (!cursor.afterLast)
      {
          trace(cursor.current);
          cursor.movePrevious();
      }

I have reported it to the Adobe Bug System,and you will find this issue here.
FLEXDOCS-339   IViewCursor movePrevious() example mistake

Share

0 条评论

留下评论