[old sprite system] currentFrame issue - no 1st frame but duplicated last frame

Hi,

I’m having a strange issue with all my sprites.
When I have a sprite event listener and try to print currentFrame for every invocation of the function I get [let’s assume there are 5 frames of the animation]:
2
3
4
5
5

I get this for all my sprite animations.
Any tips?
I am using current test build: 2011.704

Krystian
EDIT: few details:

This is not happening for standard animations [had to double check]. By standard I mean one animation per sprite sheet. This is happening for my sprite sheets with three animations. I’m not sure how come :confused:

ANOTHER EDIT:
So I’ve got something new.
If I create my sprite to loop through frames and it has 5 frames, here’s what I get:
2
3
4
5
1
2
3
4
5
1
2
… and so on

If I have my sprite to repeat only once, here’s what I get:
2
3
4
5
5

How come? [import]uid: 109453 topic_id: 24330 reply_id: 324330[/import]

Well… nevermind.
I get the last frame because sprite listener function will receive two events: next and end for last frame.
I should have used enterFrame if I want to check frames… d00h. [import]uid: 109453 topic_id: 24330 reply_id: 98281[/import]

Well actually…
If I want something to happen on frame 5 during sprite sheet animation I have to use sprite event, because enterFrame is called every global frame and not the sprite frame.
Damn…
[import]uid: 109453 topic_id: 24330 reply_id: 98291[/import]