all groups > flash actionscript > june 2004 >
You're in the

flash actionscript

group:

addSort not working?



addSort not working? Chris Brandt
6/1/2004 9:32:20 PM
flash actionscript: Hi all. I've got what I think is a simple problem that I'm just not seeing the
solution to.

In a dummy test fla, I have a web service connector bound to a dataset and a
button.

The actionscript is is below...

When I run it, I get the following
1
2
3
4
5
...

Um, shouldn't it be in reverse order? What stupid thing am I doing wrong?

Thanks!

wsFluids.trigger();

btnSort.onPress = function() {
if(dsFluids.hasSort("byFluidID"))
dsFluids.useSort("byFluidID")
else
dsFluids.addSort("byFluidID", ["FLUIDID"], DataSetIterator.Descending );

while(dsFluids.hasNext()){
trace(dsFluids.currentItem.FLUIDID);
dsFluids.next();
}
}
Re: addSort not working? conquerors04
8/26/2005 7:03:42 AM
AddThis Social Bookmark Button