Solved

Question about stoping a netstream ?

Posted on 2004-09-04
2
661 Views
Last Modified: 2010-08-05
Ok here is the link to the website that I am working on and I have a flv file that streams under the Proposal link but when I click on anther link while the video is playing the audio keeps going in the back ground  And if you go back to the link while the audio is still playing it gets real buggy if you know what I mean.  Just check out the link http://theweddingsite.org  just skip the into.  I use this as my code

var netConn:NetConnection = new NetConnection();
netConn.connect(null);
var netStream:NetStream= new NetStream (netConn);
my_video.attachVideo (netStream);
netStream.setBufferTime(55);
_global.file="proposalhigh.flv";
netStream.play(_global.file);

What I want to do is add something like netStream.stop(_global.file); to the other buttons but that doesn't work So I am wondering if there is a stop for the movie somehow basically a unload when any of the other buttons are clicked.

Thanks
Fixitben
0
Comment
Question by:fixitben
2 Comments
 
LVL 10

Accepted Solution

by:
muso120999 earned 500 total points
Comment Utility
Have you tried: netStream.close();

Looking into this, I have noticed that a few people have had problems with NetStream; here are some links that may be useful too...
http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00001594.html
http://www.macromedia.com/support/flashcom/ts/documents/comms_apps.htm
0
 
LVL 7

Author Comment

by:fixitben
Comment Utility
That did it

Thanks
Fixitben
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now