Reputation: 956
I got piece of code:
trace((array[0][0]));
trace((array[0][0] is Date));
trace((array[0][0] as Date).time());
and this is my output:
Fri Aug 9 12:10:00 GMT+0200 2013
true
TypeError: Error #1006: value is not a function.
...
I'm confused. How can I fix this?
//edit: Oh, it should be
trace((array[0][0] as Date).time);
Upvotes: 1
Views: 9926
Reputation: 881
An refresh() call after setting sort
to null
made this RTE go away for me.
This solution was originally suggested at ArrayCollection removing sort topic
Upvotes: 0
Reputation: 18747
trace((array[0][0] as Date).getTime());
OR
trace((array[0][0] as Date).time);
The error says that "time" is not a function of class Date - it is not, it's a property. But there is a function getTime()
which might be what you seek.
Upvotes: 2