241 posts
  • Has referred 500+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Member of the Envato Team
+9 more
placdarms Envato team says

Hi ActiveDen people. came here from VideoHive asking for your advice. There is this simple problem, which might bee too simple for you, but it’s huge for me as I’m not working with flash and actionscript normaly.

I made a video banner for client that plays separate flv file. banner will be displayed in the separate window or something so in the banner has to be X close button that calls JavaScript.

that part is fine, but the same button also have to kill the video stream. I was searching the forums and Google and all i can find is yourvideoplayername.stop(); which stops video and audio, but doesn’t stop the loading process. I mean – I can see at the bottom of my browser that it is still accessing the third party website and is loading the video content from there – therefore wasting resources while video is already closed.

any help?

1677 posts Envato Elite Author
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+5 more
Tean says

Is this video managed with FLVPlayback Class or a custom written video class?

5403 posts The Dude Abides
  • Located in United States
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
+9 more
CodingJack says

If you’re using the FLVPlayback Component, add this:

video.stop();
video.closeVideoPlayer(); 

if your using your own custom player, add this:

netConnectionVar.close();
netStreamVar.close();
video.clear();

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by