Flash AS3 Pause currently playing video with pause button
Posted on 2012-08-29
Flash CS5, AS3
I have 3 .f4v videos loaded into my project using FLVPlayback.
I have them in a single layer on the timeline, each taking 20 frames, one after another (total project = 60 frames).
I have a pause button on the timeline that goes the entire 60 frames.
Each video is paused until the currently playing video finishes, then moves to the frame with the next video sits, at which point that video starts playing.
I want that single pause button to stop whichever video is currently playing (like it "detects" what video is playing and pauses it).