File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -744,12 +744,6 @@ impl<'gc> MovieClip<'gc> {
744
744
self . play ( ) ;
745
745
}
746
746
747
- if self . swf_version ( ) >= 10 {
748
- // When performing goto, frame scripts behave the same as when entering a new frame
749
- // so no separate cleanup is performed on ones registered during frame script phase
750
- context. frame_script_cleanup_queue . clear ( ) ;
751
- }
752
-
753
747
// Clamp frame number in bounds.
754
748
let frame = frame. max ( 1 ) ;
755
749
Original file line number Diff line number Diff line change @@ -145,6 +145,10 @@ pub fn run_inner_goto_frame<'gc>(
145
145
let stage = context. stage ;
146
146
let old_phase = * context. frame_phase ;
147
147
148
+ // When performing goto, frame scripts behave the same as when entering a new frame
149
+ // so no separate cleanup is performed on ones registered during frame script phase
150
+ context. frame_script_cleanup_queue . clear ( ) ;
151
+
148
152
// Note - we do *not* call `enter_frame` or dispatch an `enterFrame` event
149
153
150
154
* context. frame_phase = FramePhase :: Construct ;
You can’t perform that action at this time.
0 commit comments