Solved

Question about stoping a netstream ?

Posted on 2004-09-04
2
670 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 10

Accepted Solution

by:
muso120999 earned 500 total points
ID: 11981629
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
ID: 11981641
That did it

Thanks
Fixitben
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
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.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

751 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