In short: I have 100 maps, each map has 2 properties - 1st is date when it was created and 2nd is approved the map or not, or in proccess. So "approve" property can be 0, 1 or 2.
I need to load first 10 maps that was created last and that already approved. I`m already create an index to sort all maps by date, but I dont understand how to check "approve" property.
My current code:
- Code: Select all
this.start_client.bigDB.loadRange("crimson", "creation", null, null, null, 10,
function(info:Array):void
{
...save results in my array...
}
});
how I can declare in the request that I need maps with approve = 1, not other?