ActionScript 3.0 :: FLV Audio Keeps Playing When Navigating To Different Frame / Moveclip

Feb 10, 2010

1. I have a swf contains a FLV paly back component playing a movie .I have used flash cs4 import movie tool to create it. Name of the files are >movie1.swf movie2.swf

2. In the main movie I have a movie clip which loads the movie1.swf and it start playing .Now  user can move from move1 to movie2 by clicking a button

However when I click to view second movie sound of the first movie is still playing .Even if I click to go back to movie1 another sound will be playing and a big mess.[code]...

View 3 Replies


Similar Posts:


Professional :: Movie Clips / Sound Keeps Playing After Navigating Off Frame/page?

Aug 17, 2010

Basically I have a flash website built on different frames of the timeline, the simplest way I think.Some of these frames have movie clips embedded into them using the flv playback component class.The problem I have is the following, the site works fine and videos play fine, but whenever I navigate offa part of the website to another, from a frame to another - the sound of the clips that were playing keepsplaying on the background and never stop and it keeps building up every time I navigate of.f each page.I want to remark that I believe is not only the sound that keeps playing "invisible" but the whole clip butThis is the AS code for my buttons on an example frame, would you be so kind to tell me what I should add or change

stop();cvbtn15.addEventListener(MouseEvent.CLICK,onClick25);function onClick25(event:MouseEvent){  gotoAndStop(27);}showbtn15.addEventListener(MouseEvent.CLICK,onClick26);function

[code].....

View 3 Replies

ActionScript 3.0 :: Playing Video - Unable To Stop Audio After Moving To The Next Frame?

May 3, 2011

I'm having the problem that my video, which sits in a movie clip, does not stop the audio after moving to the next frame, even though the video instance is removed. Here is the code from the main timeline:
 
import flash.events.MouseEvent;
next1_btn.addEventListener(MouseEvent.CLICK, ongoPage2);
function ongoPage2(Event:MouseEvent):void {[code]....

View 4 Replies

ActionScript 3.0 :: Checking Moveclip Current Frame

Dec 6, 2009

im working on a small app and i have a question about checking the current frame of a movie clip. I have a movieclip and inside the movieclip i have a few frames on the timeline. I use myMovieClip.gotoAndStop(14); to move between the frames but what i want to know is if i can find out the current frame of a movieclip timeline.
 
If myMovieClip timeline is on frame 14 then do ....

View 1 Replies

ActionScript 3.0 :: Detect When A Playing Audio File Has Reached The End (stops Playing)?

Aug 31, 2009

I have some animation (programmatic, I'm NOT using keyframed animation in timeline), and some music I want to play in the background. Once the music file reaches the end (about 30 seconds long), I want to trigger the end of the animation functions.I figure I could either use an actionscript timer to trigger the end of the animation or a keyframe with actionscript that is placed on the timeline near the end of the song but these methods assume knowledge about the duration of the wave file. If I changed the framerate or updated the external wave file, these triggers would possibly no longer sync upIs there some sort of event listener or other detection method for an audio file to signal it has finished playing? Or maybe there is a way to get the duration of the audio file to use in the timer

View 3 Replies

Streaming Audio / Loading Audio Into Swf First / Then Playing It?

Jan 28, 2012

I think it is loading the whole audio first into the swf, but I would like to get confirmation from someone more knowledgible.[code]I want it to stream the audio when the button is clicked only so that 100 of these swf will not slow down a whole webpage from loading.[code]I only start getting concerned when I noticed that on FF and Chrome, the page loads really quick but when I open the page in IE, it takes a very long time for the page to appear.

View 3 Replies

ActionScript 2.0 :: Navigating To A Specific Frame?

Mar 26, 2003

I have a back button that should take you back from the first frame of one url to the last frame of another. However I can't figure out how to do this. It always brings you to the beginning.

tried this:

on (release) {
getURL("about :history.back(-1)");
}

but this won't always work because they can get there from a menu so the last thing in the history will be that menu instead of the last page of the section before.

tried this:

if(back == "true"){
gotoAndPlay(27);
}

as the variable that is checked at the start of my movie to see if it was opened from another movie

and:

on(release) {
getURL("introduction2.html?back=true", "_self");
stopAllSounds();
}

and this on the back button from the other movie

basically i just need to figure out a way to navigate to a specific frame in a different url.

View 12 Replies

ActionScript 2.0 :: Navigating To Frame Label

Jun 21, 2008

I am having trouble with the last part of the function were gotoAndStop ('sec' + myNum); needs to go to frame label sec1,sec2,sec3 etc.

[Code]....

View 1 Replies

ActionScript 3.0 :: Navigating To Previous And Next Frame Label / Stumped

Dec 9, 2007

i have a couple buttons that i want to move the timeline to previous or next Frame Label. i have tried one way that didn't work and i see there is an array that i could use for Frame Labels but i don't know how to work with it to get what i want.here is the class that i made, it currently has the initial try which dind't work and just the basic array set up:[code]btw, the traced array returns (and in the final version, no frame labels will be right next to each other on frames):[code]

View 9 Replies

ActionScript 3.0 :: Navigating Frames - Whole Game Project Runs On One Frame And Nothing Is On The Maintimeline?

Mar 8, 2009

Since my project uses class actionscript files my whole game project runs on one frame and nothing is on the maintimeline so there is only just one frame on the timeline. Just wondering how I could make it so that I could have the first frame with game instructions and a description which then goes into the game being second frame and when gameover goes to third frame using actionscript. or any tutorials or some peice of advice

View 3 Replies

ActionScript 3.0 :: Flash - Stop Audio From The Last Frame When I Go To The Next Frame?

Jan 29, 2011

I'm working on a Flash CS5 file, with action script 3. I have a layer with all the audio for each frame. When I click the Next button, the audio from the last frame plays over the audio of the current frame. The only code I have in flash is:

stop()
btn2.addEventListener(MouseEvent.CLICK� forward);
function forward(event:MouseEvent) {[code].....

View 3 Replies

IDE :: Audio From Unloaded Swf Keeps Playing?

May 28, 2009

I'm trying to load a successive series of swf, each containing audio, into a loader. As each ends, it's unloaded and the next one loads. I'm using the following code:

Code:
var ldr:Loader = new Loader();
var c:int = 0;

[code].....

View 2 Replies

ActionScript 2.0 :: Keeping A Disabled Button Disabled After Navigating Away From The Frame

Aug 2, 2008

I'm making a VERY basic Jeopardy game, and I need buttons to be disabled after being clicked on once.

Oh, and I'm working in CS3, but I'm using AS 1&2 because that's what I learned... I have no idea how to use AS 3...

example: frame 1 has btn11 in it. btn11 when clicked takes the person to frame 2. when done with frame 2, they click on return.

the return button (btnReturn1) has the following AS

on (release) {
gotoAndStop ("Round1",1)
btn11.enabled=false;
}

the problem is that it works at first - the button disables when I get back to frame 1, but the next time I click a different button then return to frame 1, the first button I disabled isn't disabled anymore.

my actionscript so that my disabled buttons stay that way no matter how many times I come and go from the frame? or if you have a better way to do it, that'd be great. basically, it's like the jeopardy screen, and after "songs" for 200 is clicked, I don't want it to be clickable again at all.

View 1 Replies

ActionScript 3.0 :: Importing The Video In The First Frame While Navigating The Video Sound?

Mar 9, 2010

I attached the code here. The problem is after importing the video in the first frame while navigating the video sound is heard which means the video is still playing. How can I stop it when moving to other section. Here is code

[Code]...

View 2 Replies

ActionScript 3.0 :: Audio From Unloaded Swf Keeps Playing?

May 28, 2009

I'm trying to load a successive series of swf, each containing audio,into a loader.As each ends,it's unloaded and the next one loads.I'm using the following code:

[CODE]var ldr:Loader = new Loader();var c:int = 0;var clips:Array = new Array("dmt1.swf","dmt2.swf","dmt3.swf","dmt4.swf")addChild(ldr);ldr.load(new URLRequest(clips[0]));
addEventListener(Event.ENTER_FRAME, loading);[/CODE]...........

Each swf loads just fine, but the audio from the previously loaded swf start playing again, so there's a layered audio mishmash.

View 1 Replies

Professional :: Playing Audio At Certain Scenes?

Feb 8, 2012

im trying to play an audio file through 2 certain scenes in my project. for some reason i cant manage to do it, only to stream in through the entire project.

View 9 Replies

Actionscript 3 :: Audio Not Playing In Flash

Oct 22, 2010

I've been trying to play an external sound file in Flash and failing miserably.[code]...

The problem with this code is, I can only run it while it's on a live server (the link is obtained from a MySQL database via XML), so I can't tell if any error when it's being run. Then again, I can't see how the above code can lead to any problems.

View 1 Replies

Flash :: AIR 2.7 For IOS Playing Audio In The Background?

Jun 23, 2011

Update: With the latest Adobe AIR 3 Beta, Adobe added this functionality to their SDK.

http:[url]....iOS Background Audio Playback Support — Developers can now write multitasking iOS applications that can play audio while in the background, including music or voice chat from a conferencing application.

With the new release of AIR SDK 2.7 and Flash Builder 4.5.1 you can "Take advantage of new features in iOS 4 like multitasking..." (from http:[url].....Searching a bit I found out that this "multitasking" does not include true background process, like playing audio while the app is in the background.I know this is new but does someone knows if it is possible to keep audio playing in the background?

View 3 Replies

ActionScript 3.0 :: Audio Will Not Stop Playing?

Aug 3, 2009

I made a simple audio player following a tutorial on Youtube. It seems pretty good, except that the tutorial just starts and stops the sound file. I need it to be playing and for it to pause and resume.As it stands now, the music does play, but the pause button does nothing.Here is the script:

Code:
var loadSnd:URLRequest = new URLRequest("http://jeffreyworthington.com/intro_music.mp3");
var thisSnd:Sound = new Sound();

[code].....

View 6 Replies

ActionScript 3.0 :: External Swf Audio Keeps Playing?

May 21, 2010

I have a big problem that the audio of the external swf keeps on playing on top of other swf after clicking another button.

I have about 22 external swf files that are called up after clicking on their respective button. However, the audio keeps playing on top of the new swf that is selected. It thought the "removeChild(loader);" would work but it doesn't remove the audio.

I don't know if this may be an issue, but along with every swf that plays there are 3-4 .flv videos that are included in the swf. I have included the code.

import flash.display.MovieClip;
var Xpos:Number = 220;
var Ypos:Number = 105;
var swf:MovieClip;

[Code].....

View 6 Replies

Actionscript 3.0 :: Captured Audio Is Not Playing

Jun 4, 2009

I am using red5server and flash cs3 and as3.0 and windows xp. i am trying to capture audio when user clicks on button start. next i will keep capturing for a maximum of 10 seconds or user clicks on stop button.once the maxtime ie 10 seconds reached or user clicks on stop then capturing will be stopped. my application working till this point.but if he clicks on play button then it should play the captured audio. [code]...

View 2 Replies

CS3 Delay - Button To Play Frame 10 To 40 Then After Playing From Frame 10-40 The Movie Stops

Jul 3, 2010

how to code this on a button

onrelease
gotoandplay(10); // i need delay here before activating the next code below//
gotoandplay(80);

the trick is.. i want the button to play frame 10 to 40 then after playing from frame 10-40 the movie stops and then play frame 80 to 100

View 4 Replies

Actionscript 3 :: Stop Movie (from Current Frame) Playing When I Click On Next Frame?

Apr 8, 2010

I have four movie clips (.f4v) in 4 frames in a movie with watch buttons.. This movie has them been imported into a main movie container that has next and previous buttons. However if i play a movie then hit next frame, the movie continues to play in the background. The code below shows one of the actionscripts for a movie clip and then the main actionscript in the main movie.[code]...

View 1 Replies

ActionScript 2.0 :: Playing A Movie Clip From A Certain Frame To A Certain Frame With A Button

Jan 7, 2009

I have an invisible button and only one mc, the mc loops 3x then stops, this is defined with as in mc.

Now i want to play the movie from the invisible button but only loop it once. Which means i would like to play it from frame 1 to frame 215.

And also when u rollout i would like the movie to stop and go to frame 1.

this is my button code so far

Code:
on (rollOver) {
tellTarget ("loader")
{

[Code]......

View 12 Replies

ActionScript 3.0 :: Stop The Background Song On Frame 1 And Have Frame 2 Playing?

Aug 7, 2010

I have 5 frames in which a different song will be playing, this is the code i used on each frame:

var mySound:Sound = new Sound();mySound.load(new URLRequest("frameone.mp3"));mySound.play();

If im on frame 1 and click on the navigation button to see frame 2, both songs on these frames play simultaniously. how can i stop the background song on frame 1, and have frame 2 playing?

View 11 Replies

ActionScript 3.0 :: Video Audio Won't Stop Playing

Jul 8, 2008

I'm trying to build a simple portfolio website, which displays images and videos. I imported a video, and got it to play when a certain button is pressed. But when I press another button (to go look at an image, for example) the video's audio keeps playing. How do I make the audio stop whenever another button is pressed?

View 2 Replies

Audio From Video Keeps Playing When Click On New Page

Aug 2, 2009

My dillema is that on my site when you load a video on one page then click on another page the audio keeps playing. I've had a look around other topics but nothing seems to work for me. I've put in things like videosname.stop() with no success.

View 25 Replies

Make Audio To Stop Playing Soon After Loading?

Feb 25, 2010

I am new to Flash action script and i have problem with action script code. Even though i comment the mvMyVid.play(); still the audio plays for fraction of second and stops.[code]...

View 1 Replies

ActionScript 3.0 :: Audio From Flv Player Won't Stop Playing?

Nov 17, 2010

I have a swf loading in another swf that has a video player in it. When I remove the swf from the stage, the swf goes away but the audio from the swf keeps playing. Is there a way to tell that swf to stop playing from the parent swf?

View 7 Replies

Professional :: Cannot Seem To Get The Audio To Start Playing Upon Entry

Sep 9, 2011

I have a sound control file that works great, however, I cannot seem to get the audio to start playing upon entry. I have tried the using the code:: samplesound.play();and it plays but when you click the play button, the audio repeats and the sound file that started upon entry do not respond to the controls.URL...

View 3 Replies







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