Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

FLV audio problems

New Here ,
Jan 11, 2008 Jan 11, 2008
Hi, I have an flv video that plays when a link is clicked in my flash program. The problem I'm having is that when I press the back button I created, the audio from the video continues to play. I tried to use actionscript to stop the audio when the back button is pressed but it did not seem to work. Does anyone know how I could do this? Here is my script (AS3):

import fl.video.FLVPlayback;
BackButtonFive.addEventListener(MouseEvent.CLICK,BackButtonFiveClick);
function BackButtonFiveClick(event:MouseEvent):void {
gotoAndStop("WhatisRN");
HowarthFLV.stop();
}
TOPICS
ActionScript
531
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 11, 2008 Jan 11, 2008
Anyone?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 11, 2008 Jan 11, 2008
Anyone?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 11, 2008 Jan 11, 2008
The frame "WhatisRN"...is the video player on that frame at all? Perhaps it is still there. Can you post the .fla?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 11, 2008 Jan 11, 2008
Ok, here is the file:

http://www.savefile.com/files/1312907

The FLV is in the movie symbol called Reactive Nitrogen and its on frame 180.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 15, 2008 Jan 15, 2008
I still haven't been able to fix this problem. If you have any suggestions, please let me know.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 25, 2013 Jan 25, 2013
LATEST

You want to stop the NetStream from playing the audio and downloading content when you go to a new keyframe and the video display/component is removed from the stage. Add an event listener to your video playback component that calls a function when the flash player tries to remove the video plaer from the stage that stops the netstream or at least stops/pauses the video playback.

//sample NetConnection and NetStream classes when the video player is removed from the stage tell the NetStream to stop playing or downloading the content with .close();

var connection:NetConnection = new NetConnection();

connection.connect(null);

var stream:NetStream = new NetStream(connection);

addEventListener(Event.REMOVED_FROM_STAGE, videoRemovedFromStage);

function videoRemovedFromStage(e:Event){

   stream.close();

}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines