History | Log In     View a printable version of the current page.  
Issue Details (XML)

Key: FP-21
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: B B
Assignee: Trevor McCauley
Reporter: Ken Carpenter
Votes: 11
Watchers: 12
Operations

If you were logged in you would be able to see more operations.
Flash Player

gotoAndPlay() plays the target frame twice before continuing on to the subsequent frames

Created: 12/06/07 12:20 AM   Updated: 12/19/08 10:13 AM
Component/s: Other
Security Level: Public (All JIRA Users )

File Attachments: 1. File GotoAndPlayBug.fla (466 kb)


Severity: Incorrectly Functioning
Reproducibility: Every Time
Discoverability: High
Found in Version: Flash 9.0
Milestone: Flash Player 9
Affected OS(s): All OS Platforms - All
Steps to Reproduce:
Steps to reproduce:
1. Open the attached .FLA file
2. Note the call to gotoAndPlay() in the last frame
3. Play the Movie and observe how long each frame takes to play (tracing and text component used to show this)
 
 Actual Results:
 Frame 1 plays TWICE then play continues on normally. This occurs when going to other frames as well, not just to frame 1.
 The first time Frame 1 plays, it takes about 0.2 seconds to play.
 Thereafter, Frame 1 takes 2 seconds to play (seems to play twice) and Frame 2 always takes 1 second to play.
 
 Expected Results:
 Frame 1 plays ONCE then play continues on normally.
 Frame 1always takes 1 second to play and Frame 2 always takes 1 second to play.

 Workaround (if any):
It is not a workaround as such, but setting the publishing properties to ActionScript 2 makes Frame 1 play only once (you have to remove the TextArea component in order for the code to compile under AS2, but this is not related to the defect).

Note, however, that the first time Frame 1 plays, it still takes much less time than it should (0.2 seconds).
 
 
Language Found: English
Bugbase Id: none
Triaged: No
Resolved by: Trevor McCauley
Fixed Version: Flash Player 10 - 10_0_12_36
Participants: Brian Davis, Ken Carpenter, Lars Larson, Matías Ini and Trevor McCauley


 All   Comments      Sort Order:
Ken Carpenter - [12/06/07 12:32 AM ]
Minor clarification

Matías Ini - [04/09/08 11:55 AM ]
This is one of the first problems i found when AS3 was launched.
I post this problem in several forums but i didnt have any succesfull reply.
I think this is a serious bug because you can not use the timeline to make animations anymore. If you have several animations, the animations go unsynchronized very fast.


Lars Larson - [04/16/08 07:44 AM ]
It is really annoying that this has not been discovered before releasing AS3 in the first place! I think I might switch back to AS2...

Brian Davis - [07/29/08 11:22 PM ]
my diagnosis:

on frame 20 we could say gotoAndPlay(1);

as the animation approaches the end the following happens.

AS3 example
frame 19
frame 1
frame 1
frame 2

AS2 example
frame 19
frame 20
frame 1
frame 2

we loose frame 20, and that time is spent playing the frame it was told to gotoAndPlay.

in-fact, if you were to trace currentFrame, it shows frame 20 while it is displaying frame 1.

I assume this has to do with the order of operations in the new flash player environment, and i look forward to a fix, but admittedly did not notice the issue for almost a year.

Trevor McCauley - [12/19/08 10:13 AM ]
This has been addressed in Flash Player 10 for SWF10+