FORUMS: list search recent posts

Unloading after a file plays

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
David Tunnell
Unloading after a file plays
on Mar 4, 2009 at 4:04:30 pm


I am a flash novice. I am using AS 2.0 for this job out of expediency.

I am using an .swf file to play an .flv file, the video plays on top of an .html page, while it plays it blocks the links on the page. At the end of the .flv file, I would like the entire .swf to unload and clear the page so that the links are usable again.

I have a button on the video that when clicked completely removes the entire .swf from the page.

Here is the code to load the .flv (it is on fram one of the main movie applied to a "video" object):

var my_nc:NetConnection = new NetConnection();
var my_ns:NetStream = new NetStream(my_nc);
my_ns.onStatus = function(info) {
if (info.code == "NetStream.Buffer.Empty") {

Note that:

my_ns.onStatus = function(info) {
if (info.code == "NetStream.Buffer.Empty") {

Is supposed to clear the .flv but while it workd locally it does not work on the server.

Here i the code on the button:

on (release) {

//unload Movie Behavior
if(this._parent == Number(this._parent)){
} else {
//End Behavior


Is there a way to activate the unload button after the .flv finishes playing?

Please be specific I am a code novice.

Thank you,



David Tunnell
Tunnell Vision Productions

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved