We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7891831 commit c3549e6Copy full SHA for c3549e6
core/src/display_object/movie_clip.rs
@@ -2193,7 +2193,10 @@ impl<'gc> MovieClip<'gc> {
2193
frame_scripts[index] = None;
2194
}
2195
if frame_id == current_frame {
2196
+ // Ensure newly registered frame scripts are executed,
2197
+ // even if the frame is repeated due to goto.
2198
write.last_queued_script_frame = None;
2199
+ write.queued_script_frame = Some(current_frame);
2200
2201
2202
@@ -2647,6 +2650,7 @@ impl<'gc> TDisplayObject<'gc> for MovieClip<'gc> {
2647
2650
write.frame_scripts.get(frame_id as usize).cloned()
2648
2651
{
2649
2652
write.last_queued_script_frame = Some(frame_id);
2653
+ write.queued_script_frame = None;
2654
write.set_flag(MovieClipFlags::EXECUTING_AVM2_FRAME_SCRIPT, true);
2655
2656
drop(write);
0 commit comments