I'm experiencing some strange behavior when using the
class. It doesn't seem to be able to sort the cue points
My cue points are loaded from a database using AMFPHP 1.9,
put into an array. I've also created a static array in the
actionscript, just to compare the results, and they are
I've excluded the formatting of the result as a possible
this strange behaviour.
The cue points are attached to the VideoDisplay component
where cuePoints is an Array, and videoDisplay is the id for
It seems to be going fine, but it doesn't. When I trace the
after getting it from AMFPHP it looks right. But when I trace
points from the videoDisplay component, the sorting is not
reversed, but all cue points placed before 10 seconds are
The sorting of the Array after getting it from the database:
The sorting after attaching it to the VideoDisplay component:
In the first example the Array starts with the lowest number
up at the highest, which is how I like it. But after adding
it to the
VideoDisplay component, it starts at the top, going down to
then reverses the order of the lower numbers.
I can't find any solution to this. Am I doing it wrong, or is
something wrong with the CuePointManager class?