- Code: Select all
public function loadRangeOfMaps(pageIndex:int, totalLimit:int):void
{
PlayerIOConnection.client.bigDB.loadRange("maps","state",["public"], pageIndex*totalLimit, null, totalLimit, function(_mapItems:Array):void
{
for (var i:int 0; i < _mapItems.length; i++)
{
trace(" > " + _mapItems[i].mapName);
}
}
}
Then later, I want to use the loadRangeOfMaps function to page through my list of maps like this:
- Code: Select all
loadRangeOfMaps(2, 10);
From the example above, what I want from the function above is load the map items between 20-30.
Of course, it's not working. How do I accomplish this? Thanks in advance!