Stopping video playback (FLV Playback Component) using ActionScript
Posted on 2010-11-09
I am working in Flash CS4 (AS3). I have an instance of an FLV Playback Component on frame 102 of my scene and I'm trying to get the video to stop playing when the user navigates to frame 101 or 103 (by clicking on buttons on the stage).
I tried adding the following to the actions layer on frames 101 and 103:
but upon publishing the scene, I got an error message that prevented me from clicking through (Error #1009: Cannot access a property or method of a null object reference.).
Am I missing a piece of actionscript? Would it be better to use actionscript instead of the FLV Playback Component (and what would that be)?
I also noticed that the video appears and plays when I publish the scene, but does not appear when I publish the movie. ??
I'm a newcomer to working with video in Flash, so any advice would be greatly appreciated!!