IDE :: FLV Sound Continues After RemoveChild

Feb 25, 2008

I am trying to get a flv video to load on top of a parent swf. (A pop-up within flash). What I chose to do, was to put the flv player in a swf and try to load and unload it with the parent swf. This works great except when the child unloads, the music from the flv keeps playing. I am wondering if I have to do more than just a simple add and remove child. Here is what I have to load the swf when a button is clicked:

Code:
var movieLoader:Loader = new Loader();
playMovie_btn.addEventListener(MouseEvent.CLICK, showMovie);
function showMovie(event:MouseEvent):void {
movieLoader.load(new URLRequest("memories_vid.swf"));
addChild(movieLoader);
[Code] .....

Once it plays the outro animation into empty keyframes. Every attempt I have made to removeChild has not work. I still have the audio from the flv playing. How do I get "close_btn" to stop everything and to completely unload the swf?

View 4 Replies


Similar Posts:


Flash :: Video Stops And Sound Continues?

Jan 4, 2010

I have noticed a very frustrating error in flash lately. I will be watching a video in full screen mode...on any site...then all of the sudden, the video freezes and the sound continues. This does not fix automatically. I have to minimize the video from full screen to default size and then the video unfreezes and I can then go back to full screen mode.However, eventually I have to repeat this because the video freezes again.

This happens in Firefox 3.5.6 and Chrome 4.0.249.43. I am near certain I can get this to happen in any browser but I don't use other browsers to play videos so I have not tested my theory. All I know is that the problem is very consistent.
 
I am using Flash Player 10 ActiveX version 10.0.32.18 in XP Pro SP3.

View 6 Replies

ActionScript 3.0 :: Sound Continues Playing When Replaying Movie

Jul 20, 2010

I'm fairly experienced with AS2 and not very with AS3. I've run into a problem with sounds repeating and have set up some simple test files. Yes I'm sure they could be set up in a smarter way, what I'm curious about is why the AS3 behavior is different from AS2.

I'll explain what I've got:

A file with five frames. Nothing on frames 1-4. On frame 5 there is a stop() action, and a movieclip with a sound embedded into it set to "Stream". There is also a button that triggers a gotoAndPlay(1) event when clicked.

In AS2, clicking the button stops the sound (because the clip doesn't exist on frames 1-4), replays the .swf and on frame 5 starts the sound over.

In AS3, the .swf replays, but the sound continues to play (in spite of the clip not being on frames 1-4) and on reaching frame 5, starts playing a second copy of the sound over the first.

View 3 Replies

ActionScript 3.0 :: Animation Pausing When Lost Focus, But Sound Continues?

Jul 9, 2010

I have an issue with an animation/movie thingy i am making

When the user for example, Switches a tab in firefox or something. The sound on the video will continue to play, but the animation will pause. Leading the animation to become out of sync with the sound.

Is there a way to make the animation continue playing even if the tab has been changed??

View 8 Replies

ActionScript 3.0 :: RemoveChild And Stop All Animation/Sound?

Mar 15, 2011

Im trying to removechild and at the same time stop all the on going animation and sound, in a way reset them so that if this child is added again it plays like it did the first time.

I've tried these scripts but non work, either i get an error or the sound doesnt stop and the animations stack:

//==================================================
1.
bgFarm.stopImmediatePropagation()
2.
while (bgFarm.numChildren != 0)

[Code].....

View 1 Replies

Actionscript 3 :: Error #1006 RemoveChild Is Not A Function. Timer Delay RemoveChild

Mar 29, 2010

I'm trying to build a conditional statement that will addChild and removeChild at different Timer Delays. Before I go any further, I thought, I should mention that I'm usinig TweenMax to ease the alpha of ease Child from 1 to 0 and back during the process to imitate a fade-in/out.

I'm getting issue with only one line - inside a conditional statement.It's running "OK". The movie runs as I want it, but the remove/addChild transitions are not at the speed I want it at. I am getting an error message in the output, but other than that, the movie runs fine.

stop();
import com.greensock.*;
import com.greensock.easing.*;
import com.greensock.plugins.*;

[code]....

View 2 Replies

ActionScript 3.0 :: FLV Audio Continues To Play?

Dec 11, 2007

Into my main SWF, I'm loading an external SWF with anUlLoader component. This external SWF plays an FLV using thatrespective component. Everything works fine, except that when Iclose the external SWF from within my main SWF, the FLV audiocontinues to play.

View 3 Replies

Stop The Movie From Continues Play?

May 16, 2009

when i play the movie and click on any ball it shows the subpage one by one continuously rather than to stop as per the number of their page order.

View 4 Replies

ActionScript 3.0 :: Flv Continues Playing After Unload?

May 5, 2011

I have an air project which every seconds reads a txt file. Depending on the content of this file it loads an external swf file (the contents of the file is changed from an external program periodically)Every external swf file gots a flvplayback2.5 inside which loads and play a flv video (everthing is done locally).

The problem comes when the contents of the txt file changes and I have to unload the previous swf and load the new one.Despite the new swf loades plays fine I can still hear the audio of the previous swf playing in background.For the project I used only one Loader in which i load the external swf files. Before loading another swf inside it, I call the Loader.unload() but no luck.I thought that this method would remove also the loaded object but the Adobe reference about the unload() method says:

"Removes a child of this Loader object that was loaded by using the load() method.The property of the associated LoaderInfo object is reset to null.The child is not necessarily destroyed because other objects might have references to it; however,it is no longer a child of the Loader object.As a best practice, before you unload a child SWF file, you should explicitly close any streams in the child SWF file's objects, such as LocalConnection,NetConnection,NetStream, and Sound objects.Otherwise,audio in the child SWF file might continue to play,even though the child SWF file was unloaded.To close streams in the child SWF file,add an event listener to the child that listens for the unload event.When the parent callsLoader.unload(), the unload event is dispatched to the child."
 
I don't know how interal structure of the external swf is,beacause the customer gave to me only the compiled swf (I guess there's not a lot inside that swf, i think only the flvplayback control, but if i don't know the name of the flvplayback I can't invoke any stop method on it).So, do You know any method to brutally unload the loaded swf, by destroying it,no matter where it hides itself in the dark and misterious jungle of the Flash Player?

View 5 Replies

ActionScript 3.0 :: RemoveChild(); RemoveChild()?

Feb 21, 2009

I cant do 2 removeChild(); 's beneath eachotherSo their always will remain 1 child how can i delete that one?

addChild
removehild does work
removeChild

[code]......

View 2 Replies

When Hit UP Key To Jump The Character Continues To Move Up As Hold The Key Down

Feb 3, 2010

A) When I hit the UP key to jump the character continues to move up as I hold the key down.

B) When I stop moving forward the frame of the stickman symbol for walking keeps playing and I want it so the frame labeled "idle" will play when I release right or left.

C) Is it possible to have an action for holding 2 keys at once? I want to have it so i can hold SPACE and RIGHT/LEFT to run.

[Code]...

View 2 Replies

ActionScript 3.0 :: Video Continues To Load After Removal?

May 31, 2009

Below is the function I use to remove the swf which holds an FLVPlayback component and the button that runs the function. The function stops the video then removes the swf. The swf disappears and the sound stops but if I look at the task manager I notice the video is still loading usually at about 1 meg every 5 seconds. I know I'm supposed to be able to use the closeVideoPlayer method which should stop the netstream but I don't how to make it work

function goHome(e:MouseEvent):void   myMovie.stop();  this.parent.parent.removeChild(this.parent);// myMovie.closeVideoPlayer(0);  meCombo.removeEventListener(Event.CHANGE,

[code].....

View 7 Replies

ActionScript 3.0 :: Video Continues To Play When Go To Another Frame

Dec 11, 2009

My video continues to play when I click another button, I have tried using soundMix, but that cuts off all the sound to my other videos. Iam new and have been trying to serach for this problem for over 2+ weeks.

View 1 Replies

Professional :: Stop A Button Over An FLV That Continues To Play?

Jan 25, 2010

I'm trying to fade in a button over a looping video clip however, it fades in and disappears after a few seconds. I tried adding stop() to the button but it stops the whole movie instead of just the button.

View 1 Replies

ActionScript 3.0 :: Loop This Code So The Animation Continues To Run?

Apr 1, 2011

This was originally a tween, i converted it to code and removed the tweens.[code]....How can i loop that so the animation continues to run, because right now it only runs once.

View 4 Replies

ActionScript 3 :: Platform Game - EFrame Continues To Run

Mar 13, 2012

I am making a platform game in flash. I have a goal class (the class which contains code for the goal sprite, where when you hit it, it continues to next part of game). Inside the goal constructor, 2 event listeners are added, they are as follows:
addEventListener(Event.ADDED, beginClass);
addEventListener(Event.ENTER_FRAME, eFrame);

The beginClass function is fine, and only runs once, but eFrame is what checks if the player has hit the goal, so it is constantly running. The problem is, once the player hits the goal, eFrame continues to run, while in a menu describing the next scene to the player. My eFrame function is below.

private function eFrame(event:Event):void{
if(hitTestObject(_root.mcMain)){
var lastScore:int = _root.mainScore;
_root.mainScore = lastScore;
while (_root.lvlHolder.numChildren > 0) {
[Code] .....

Frames 2, 3, 4, are frames with just text and a button that display a message to the player, and then the player hits continue. My problem is that eFrame is still trying to be run, but the class has not been instantiated, and the method is causing extreme amounts of lag once the player continues.

View 3 Replies

ActionScript 2.0 :: Stop A Button Over An FLV That Continues To Play?

Jan 25, 2010

I'm trying to fade in a button over a looping video clip however, it fades in and disappears after a few seconds. I tried adding stop() to the button but it stops the whole movie instead of just the button.

View 9 Replies

ActionScript 3.0 :: MovieClip Continues To Be Dragged And Not Dropped?

May 11, 2010

ActionScript Code:
public function Inventory(arrayOfItems:Array, stageRef, invSprite)
{

[code]......

View 1 Replies

ActionScript 3.0 :: Function On Child Swf Continues After Its Removed

Mar 2, 2011

A function within a child swf is continuing to go, even after I remove the child swf from the stage... this wouldn't really matter, except that there are sound elements called from within this function, and those sounds continue to play!

[Code]....

View 2 Replies

Actionscript 3.0 :: Center Content And Continues Background

Apr 27, 2009

I have a project in which the client would like the contents to be centered on his browser but the background to fill the whole window... this would be simple enough if the background was a solid color... the problem I am facing is that the background has a design to it (see attached). I found a good tutorial on: [URL] ...that is the basics of what I am trying to achieve, but not quite there. The RED bars on my attachment would be the center of the content...

View 4 Replies

ActionScript 2.0 :: Movie Continues After All Sounds Played?

Feb 28, 2008

I have this...

Code:
waveNoise1 = new Sound();
waveNoise1.attachSound("waveNoise1_snd");
this.waveNoise1_mc.onRollOver = function() {
waveNoise1.start(0,1);
};

Is there a way to detect if this sound has been played, and then (and only then) will the movie continue to the next frame.

p.s. can this be applied so that multiple sounds have to be played through once to continue?

View 1 Replies

ActionScript 3.0 :: Button Rollover Continues Playing?

May 10, 2011

I am working on an application for an advocacy group for people with learning difficulties. I have ran into a few issues though that I can't really figure out.http:[url]....

If you go to the above link and make your way to the menu, you will see that a black arrow flashes when you hover over a button. Then when you click it, it moves the next page, however when you click the menu button to go back, the black arrow will still be flashing, instead of returning to its first button state. The main menu is removed before it procedes to the next screen, like so:

Code:
public function confSubMenuOneScreen():void {
subMenuOneScreen = new SubMenuOne();
removeChild(mainmenu)[code].....

View 2 Replies

Professional :: Flash FLV Playback Continues When Change Scene?

Jan 26, 2011

I'm creating a programme on flash where some of the scenes have FLV players playing various videos. They all work fine, stopping and playing etc. However when I leave the scene by clicking my "home" button, the video stops, but the outline of the player stays up in the new scene!
 
my code is reading;
stop();button_24.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_98);
function fl_ClickToGoToScene_98(event:MouseEvent):void{    MovieClip(this.root).gotoAndPlay(1, "catchup");   

[Code]...

View 1 Replies

ActionScript 2.0 :: Movie Clip Continues Main Timeline When Done

Apr 2, 2004

I have the main timeline of stop just as a movie clip begins to play. When that clip is done, what is the command i put into the last frame of the timeline of the movie clip to make the main movie timeline get going again?

View 3 Replies

ActionScript 2.0 :: Continues The LineTo Making A Realistic Skid?

Jun 12, 2005

i have seen it done before in a tutorial which i cant find anymore.what they did is that;

1. when space is pressed it begins a lineTo from the point of an object resembling the back left wheel.

2. from there it continues the lineTo making a realistic skid.

3. after a small amount of time the skids deletes.

View 13 Replies

ActionScript 2.0 :: Music Continues To Play After Leaving Site?

Apr 28, 2006

I have a mp3 player in a stand alone swf that I load into level 30 (or something). It works just fine, plays music and stop when I click the button. However, it continues to play after I have left my site and are browsing other pages, and at that point you have no way of turning it off. This is if course a big problem and I have taken the music.swf down for the time being.

Code:
stop();
// Preloader variables
var t = 0;
var l = 0;
var p = 0;
// Stop the stop button from morphing
//this.control.gotoAndStop(1);
[Code] .....

So, what is happening here? Why does it continue to play when I leave my site.

View 3 Replies

ActionScript 2.0 :: Movie Clip Continues Main Timeline When Done?

Apr 2, 2004

I have the main timeline of stop just as a movie clip begins to play. When that clip is done, what is the command i put into the last frame of the timeline of the movie clip to make the main movie timeline get going again?

View 3 Replies

ActionScript 3.0 :: Use A GetTimer Method That Takes To Another Frame - Continues Counting

May 27, 2010

I am trying to use a getTimer method that takes me to another frame (frame is "memory") after a certain amount of time after the movieclip has been loaded. The frame that I want it to go was given the name already. The timer itself does count when tested, but it just continues counting.

[Code]....

View 2 Replies

UnloadMovie To Remove It From The Stage, But The Audio Clip Continues To Play ?

Dec 15, 2009

i have a audio track in a movieclip that i am loading into a target and i am doing an unloadMovie to remove it from the stage, but the audio clip continues to play until it hits the end/loop point... so my question is, how to i make it stop as soon as it unloads?

View 3 Replies

AS2 :: Animation Continues At Odd Point If Movie Is Loaded And Unloaded Quickly?

Feb 2, 2012

I have a flash file that has three main buttons on top. When a button is clicked the timeline moves to a that frame (designated with a label) that loads in a particular external SWF corresponding with the button. Those movies are loaded into the same empty movieclip called "presentation"using:loadMovie("splash.swf","presentation"); In one of the external loaded SWF's there is a tween animation (on first frame using TweenLite), that takes place upon loading the SWF. The issue is that when I click a button and go to another frame (which loads another SWF) mid-way through that animation, and come back to that same page with the animation. The animations starts mid-way as if it was running in the back, such as fading in things that shouldn't be faded in yet, etc..? Any clue as to why? EDIT: Maybe this is the cause? The animation code in the first frame of the loaded SWF:

//Animate the bouquet
var bFadeIn:Tween = new Tween(bouquet,"_alpha",Back.easeInOut,0,100,1,true); //106.95
bFadeIn.onMotionFinished = function() {

[code].....

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved