Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Stop FLV video playback (AS3)

Stop FLV video playback (AS3)

Stop FLV video playback (AS3)

I have been looking at thread250-1333195: Stop FLV Files - but this does not work in my situation. Possibly because I have misunderstood, or possibly because the solutions here do not work in ActionScript 3 (AS3).

I have a number of FLV video files which I have imported into my Flash project (Adobe Flash CS3) using "File" -> "Import video..." and then choosen the relevant options. The project has around 90 pages, split into scenes. Each frame within a scene has a "Next" and "Back" button so that the user can quick navigate through the project.

Just to be clear - the FLV files are stored externally from the .SWF files as they are so big.

The "import" feature loads the videos into the relevant page of the flash project and when a user opens the page, the video starts to play. However, when a user clicks the "next" or "back" button the video does not stop. The video can no longer be seen, but the audio continues to play in the background. If a user re-visits the same page with a video on it before the initial video has stopped, another instance of the video begins to play!

I have tried:

However, what I don't really understand is how does Flash know which video I am refering to? When I am authoring in Flash, I have given the instance of the video a name "vid_1" and then tried:
 var vid_1:Video = new Video();
but that does not work.

Any ideas? Ideally I would like to stop the video when the frame that contains the FLVPlayback is exited.

Many thanks,

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close