ActionScript 3.0 :: Stopping UILoader Loaded Audio Of A .swf Video?

Jan 21, 2010

I have 3 buttons (and 3 .swf videos).Each button makes the main timeline go to a specific frame and stop.Each Frame tells the UILoader to load a different assigned .swf video (source parameter).

Problem: when playing the project's .swf in the Flash Player, "VISUALLY" the videos properly switch,but the Audio continues, so the Audio for all 3 videos are playing simultaneously.How do I get the current video's Audio to stop when the new video is loaded ?I experimented with enabled = false;"(and other methods) between the changing videos .

switch(eventMLR.target.name) ...
case "myVideo1MLR_btn":
for (k= 0; k < sndArrayMLR.length; k++){[code]..........

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Stopping Loaded Audio?

Feb 20, 2004

I have scene that loops over and over if the user clicks on the wrong button. The audio is loaded at about half way through the scene.when the scene loops around again, and the user clicks the right button I want the audio to stop. BUT it doesn't and I'm using the same code as I've used before (it works normally)Is it becuase the second time round, at the time the user clicks the button the audio hasn't actually loaded and started playing. All you're listening to is what's left playing from the first loop?

View 3 Replies

ActionScript 3.0 :: Back Button Stopping Audio On A Video Component

May 16, 2010

I am putting together a basic video portfolio and have everything working except when I click the back button to get back to the thumbnail page (contained on frame 1) the audio from the video continues to play.[code]

View 4 Replies

ActionScript 3.0 :: Accessing A Loaded Video's Audio Tracks?

Mar 14, 2012

Is it possible to access a video's audio tracks when playing an flv, mp4, m4v, etc? I am trying to build a player where I can switch between different language tracks but can't find how to access this property.I am using the FLVPlayback component:

ActionScript Code:
mPlayer = new FLVPlayback();
mPlayer.width = 957;

[code]....

View 0 Replies

Flash :: Actionscript - Remove The Audio - Put The Audio Into A Byte Array And Then Re-add The Audio To The Flv Video?

Aug 6, 2010

If I import an FLV video is there any way to remove the audio, put the audio into a byte array, and then re-add the audio to the flv video?

View 1 Replies

ActionScript 3.0 :: Unload Flv Audio From External Swf Using UiLoader?

Aug 22, 2011

I have a small flash website where one of the pages has an embed flv video with sound. I need to it unload when the next swf is called through uiLoader. This is the code I am using to call the swfs.

Code:
but1.addEventListener(MouseEvent.CLICK, loadsSWF);
but2.addEventListener(MouseEvent.CLICK, loadsSWF);

[code]......

View 0 Replies

ActionScript 3.0 :: Stopping Audio On A FLV?

Nov 26, 2010

Im currently making a website but ive run into a problem. i imported a flv onto the stage, all was fine. i tested it and when i navigate onto the page it starts automatically. when i navigate away from the page the audio keeps playing. is there anyway i can stop it playing automatically and have it halt after i navigate away from the page.

View 1 Replies

ActionScript 2.0 :: One Swf Is Stopping Another Sfw's Audio

Nov 14, 2007

I have a game that has sounds for specific user actions. The second that the first sound is activated, sounds in all other flash movies stops. For example, mp3 streaming swf's or video streaming swf's from youtube, will halt, the very second the user clicks in my game. What's going on and how can I patch this?

View 2 Replies

Professional :: Stopping Audio On A New Scene?

Apr 8, 2011

I was wondering how do I stop my audio when I enter a new scene?

View 3 Replies

ActionScript 3.0 :: Stopping Audio In An External Swf File?

Nov 18, 2008

I managed to use a loader to load an swf that has a video/audio track encapsulated within it. It starts and plays fine. Because of property rights considerations, I must use the provided swf with the video within it rather than converting it to an FLV.

And using the unload command I get the video portion to stop, but not the audio.

I know that I need some kind of audio stop to stop the audio, but haven't been able to figure out exactly how.

The parent swf is pretty simple, no buttons, it just plays 6 external swfs under control of another program that starts it and stops it with no other interaction.

View 6 Replies

ActionScript 2.0 :: Starting And Stopping Audio Files?

Jan 10, 2007

I have 4 sets of 2 buttons (on and off):

Each set of buttons I want to trigger and stop a different audio file. (4 audio files in total)

I would like for the sound files to be saved within the .fla file.

I have done lots of searching but I still haven't been able to get this to work.

View 1 Replies

ActionScript 3.0 :: Stopping Audio Streaming Inside A Layer?

Oct 8, 2009

Sometimes I get ahead of myself and have to stop and say how the hell did I do this before?'m referring to a simple stop button I need to put in a flash animation. I know how to code calling a sound from the library, starting and stopping. But how do I stop audio that is streaming inside a layer from a button ?

d(new URLRequest("yoursoundfile.mp3"));var my_channel:SoundChannel = new SoundChannel();//2.play_btn.addEventListener(MouseEvent.CLICK, playSound);stop_btn.addEventListener(MouseEvent.CLICK, stopSound);//3.function

[code].....

View 3 Replies

Professional :: Playing - Pausing - Stopping Audio In A Timeline

Feb 23, 2010

I don't use Flash that much so the question may sound simple, but how do I pause audio in a timeline? I have added the audio, play and stop button. When I test it works fine, but I can't figure out how to add the pause button, or the play/pause button.

View 2 Replies

ActionScript 2.0 :: Stopping Flash Audio When Link Is Clicked?

Aug 20, 2010

This is really confusing (the title of this thread probably doesn't make any sense at this point), and I'm not actually quite sure what I'm trying to do is possible, but I figured I'd throw it out there.

Basically, I have created a speaker-looking button (speakerON_btn) that plays the audio in Flash. It works fine -- starts automatically and stops when it's at the end or when somebody clicks on it.

Then, I put this Flash file into an HTML... works good. However, on this HTML page, I also have a PDF link (that links to what the audio is discussing). I have been asked to stop the audio when the user clicks on the PDF to open it. I don't want the PDF to open in the same window, so I can't use that as a method to stop the audio.

Is there any ActionScript I can add to the Audio Flash file that will tell it to stop when a user clicks on a link outside of Flash?

Also, if the above is impossible, would it be possible to add ActionScript to stop the audio if I were to build the entire HTML page as a Flash file? If that's a possibility, what ActionScript would need to be added to the my speakerON_btn?

View 1 Replies

Media Server :: Fms 3.5.2 - Video / Audio Streaming Application - Audio Stops Or Lags Behind

Aug 25, 2009

I ran a simple live video streaming application for the first time with actual users and ran into a couple of serious performance issues that had not turned up during testing. In this instance there was one video stream from a live web cam and used FMLE at 150 kbps using VP6 and MP3 @22k. There were 16 clients and everything worked pretty good for about 30 minutes. (although some clients said their audio and video were out of sync by up to 3 seconds)

Then individual clients would have either the video freeze or the video would continue and the audio would stop. These clints had to "disconnect" and then "connect" again to the application. This happened to all of the clients at one time or another for several minutes. I stopped and restarted the FMLE with progessively lower bandwidth settings down to 75 kbps but still clients were having the same issue.

I eventually stopped the FMLE and used the applications built in publisher at 45 kbps and that seemed to eliminate the freeze/dropping issue. But of course the video quality was very poor and some clients still reported that the audio was out of sync with the video. The server hosting the FMS application is a quad processor dell with lots of memory and network connectivity. The Flash Media Admin Console performance graph showed the total Bandwidth as 3 Mbps at maximum.

View 8 Replies

ActionScript 2.0 :: Stopping The Audio Loop Without Stop The Entire Animation

Mar 21, 2009

I have a problem with an animation because I want to stop the loop sound without stop the entire animation what can I do to make correctly this action please? I tried to make a movieclip to control individually of the center time line but i dont get good results.

View 4 Replies

ActionScript 3.0 :: Set UILoader Loaded Content To Position Top?

Nov 25, 2010

I have UILoader that loads images 427x240, then I thought to load an external swf dimensions 427x273. So I resized UILoader to height 273, now the images on load are positioned vertical middle, gap top and bottom, i need this to be absolute Top. How do I set UILoader loaded content to position Top?

View 2 Replies

Fadein A Background With A Alpha Tween After It's Loaded In By An UILoader

Apr 14, 2010

I want to fade in a background with a alpha tween after it's loaded in by an UILoader. Everything seems to be working great when I do a Test Movie (in Flash) or view it in IE. However, I encounter a problem when viewing in Firefox. Somehow the alpha does'nt come up to 1(100%). Sometimes my background image is barely visable and sometimes it's at ~90%. It seems to be completely random.

Quote:

//load random background (1 to 10)
var randomNumber:Number=Math.ceil(Math.random()*10);
trace(randomNumber);

[code]....

I've tried increasing the final value (Regular.easeOut,0,1,2,true) and this will change something but doesn't solve the problem. I've also tried instead of fading in the background to fade out a overlaying vectorshape, but same result.Is it possible it has something to do with other script/my background img size/??.

View 2 Replies

ActionScript 3.0 :: Resize External Images Loaded Into UiLoader?

Aug 18, 2011

Please help I've been researching this topic for like 2 days straight and it is driving me insane because I can't seem to find a specific answer for what I'm trying to achieve and I know it can be done because I've seen end results on the web. Here is what I'm doing:

1. I created a simple museum gallery with 3 portraits hanging on the wall
2. Inside the museum portraits I created 3 different uiLoaders with a black background
3. I gave all 3 uiLoaders their own unique movieClip names
3. Inside each uiLoader will be a loaded external image via a URL
4. I DO NOT want to resize the uiLoaders - I want to scale the external images proportionately to fit inside the entire contents of the uiLoaders and still remain centered

URL...As you can see currently the 3 random external images are loaded perfectly inside the uiLoaders but you see black background and I want the photos to fit the entire contents of the uiLoaders yet still remain proportionate.[code]

View 6 Replies

ActionScript 3.0 :: UIloader With Autoresize Is Pixelating Loaded Images On Different Resolutions?

Jul 1, 2010

My publish settings are Flash Player 9 with Bottom up Load order, and the Size of the stage has been set to 900x561.The HTML is published to load the SWF file as 100%x100% Additionally I added the following to the HTML Headers to disable scrollbars:

<STYLE TYPE="text/css">
<!--
body {overflow:hidden}
-->
</STYLE>

I writing the movie with AS3, and I am building a 4 image, gallery.I have 4 Adobe UIloader components that are side by side and have arrows that allow you to browse the images back and forth. The UIloader is configured to auto-resize the images that it loads.The UI Loader Size Is:

W: 175.0
H: 264.0

I am using an XML file to hold image info and I use an URLLoader to import the data into an array which is then feed to the UIloader to load via URLRequest().

Here is my AS:

// Stop the timeline
stop();
// Import functions

[code]....

I first created an image that is the exact dimensions of the URLLoader and it looks OK but somewhat pixelated 1024x768 but on larger resolutions the images are very pixelated. So I created a picture that was 1024 x 1542 and again this looks OK on larger resolutions but is horrible on smaller resolutions.

View 1 Replies

ActionScript 3.0 :: Remove Instancia Of Image Loaded Via Object UILoader?

Feb 17, 2009

I am carrying an image object via UILoader. Use the method unload () to remove this image display. Whenyou remove this image of the disk the system claims that this imageis in use.P.s. This image has been loaded by the function load ().Question:Besides the method unload (), there is another procedure todelete all references to that image loaded?

View 3 Replies

ActionScript 3.0 :: UILoader - Error #2124: Loaded File Is An Unknown Type

May 31, 2009

i have an UILoader called img and an image in my DB wich i can access by "[URL]" (its Content-type is set to image-jpeg), when i run:

[Code]...

View 2 Replies

Actionscript 3 :: Stopping An Externally Loaded Swf From "playing" When Another External Swf Is Loaded?

Nov 8, 2011

I have a homepage with five "links" to each swf. Now the first swf I have a custom cursor that hides the mouse. When I click on that link it plays and when I quickly go to the homepage again it hides the mouse there when it's not supposed to do it.

Same with every other link. When I was busy with the first swf and want to go to the last swf of the five, my mouse just disappears! It is almost as if it keeps on "playing" without seeing the swf...

Here is the code that I have so far!

var currentpage:uint = 0;
//one loader object per project:
var loadingobject1:Loader = new Loader();
loadingobject1.x = 445;

[Code]....

View 1 Replies

ActionScript 3.0 :: Stopping A Loaded Swf?

Oct 2, 2009

I really need help on this. I have an As3 swf that loads an AS2 swf but when user clicks and button it should the AS3 movies should unload the as2 movie and stop all the sounds and scripts running in AS2 movie.

I am loading the AS2 swf in a loader and then simply removing the loader from the display list to stop AS2 actions and sound. BUt this is not working and even after removing the AS2 movie from display list it still keeps playing in the background.

View 2 Replies

ActionScript 3.0 :: Multi Video Player - Audio From The Last Video Remains Playing Even When Prompted To Stop??

Jun 2, 2010

I built a timeline based player with 2 menus and many videos that you can play.The buttons move the timeline to a frame label and the video plays. The back button has a stop function built in it so the video stops playing when its hit.It plays wonderfully locally but once on a server after a few clicks it boggs down and sometimes the audio from the last video remains playing even when prompted to stop. I was pointed to use the add and remove child functions to prevent this but being very new to Flash and 100% self taught i have zero idea on how to do this. The link to the player is[url]....Even if its a link to a tutorial or something.

View 3 Replies

ActionScript 3.0 :: Stopping A Sound In A Loaded Swf?

Jan 4, 2010

Is this possible? I've loaded an external swf into my movie - the swf stays on stage but loses focus throughout a users interaction.When it loses focus, I need the sounds within it to stop.It was mentioned that I should cast my swf as a movie clip but when I try I get errors.

View 4 Replies

ActionScript 3.0 :: Loaded Custom SWF Not Stopping?

Feb 9, 2010

I have created a SWF file using a class I created as the main class for the swf. this swf is a movieclip with a frame labeld "open" and a stop action at the last frame

the main class of the SWF (PageSwf):

ActionScript Code:
package {
import flash.display.MovieClip;
public class PageSwf extends MovieClip {

[Code]....

View 5 Replies

Swf In Flv Not Stopping, Video Keeps Playing?

Jun 4, 2010

I'm making a basic flash website, and have already created the site structure, but I'm having trouble adding FLV and SWF, as they aren't responding as I would like.

1) I have built a basic flash photo gallery, and it works great. I have exported the SWF, but when I add that to my main sites keyframe, it plays non stop, and the buttons on that embedded SWF don't work.

2) After adding a FLV video to a keyframe, it works as I would like. Except that when I click to another keyframe after starting the video, it keeps playing. How would I be able to pause/stop the video if a navigation button to other keyframes are clicked.

View 1 Replies

Starting And Stopping Video And MP3

Aug 5, 2009

I can't seem to get around my video and audio files starting when I arrive at the page. I'm even using some example code with start and stop buttons. This is in CS4 Flash. I expect it's because the ActionScript is in the wrong place because when I run the movie it flashes through all of the pages on the site without stopping at the home page. Is there some generic code that will allow me to simply swap out the name of the video or audio file I want to start. If there is, do I need to locate it on its own layer at the top of the timeline?

View 6 Replies

Professional :: Video.swf Not Stopping?

Mar 22, 2011

In my website design. I have a swf video that doesn't stop when i go to another page in my website. How can I fix this?

View 13 Replies







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