ActionScript 2.0 :: Use AttachSound Method To Load 2 Or More Sounds To Play At The Same Time?

Feb 23, 2005

Can I use attachSound method to load 2 or more sounds to play at the same time? If yes, how?

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Load 2 Or More Sounds To Play At The Same Time?

Feb 23, 2005

Can I use attachSound method to load 2 or more sounds to play at the same time? If yes, how?

View 2 Replies

ActionScript 3.0 :: Optimization On Load Time (Large Images And Sounds)

Jan 27, 2011

I have an all flash website that works by having each portion of it to load and unload in the center of a frame based off the navigation chosen.Load times on everything but one part of my site are ok.The dimensions of the part inside the frame are 968x674.I know that's relatively large for a flash file, but that can't be changed at this point.Within the page there are objects that come up when you find an item on the screen.Its a dialog box and it shows text, an image, and has a voice over that reads what the text says.After you're done looking at it, there is an x-button to dismiss the window.There are 15 of these and they are exported to the actionscript.I add them in the actionscript via addChild.
 
The other huge thing is there is a ton on the screen.It starts you off in an environment, and when you click 3 different sections, it zooms into that portion allowing you to look for the items you're trying to find.There is also a man that talks and animates in the beginning and at the end.We are planning on taking out the end part and putting a text box up. URL...The two parts of the site we are trying to optimize is the main menu when you first are at the site, and the "Explore" section.(Just click on the cloud on the front page.

View 2 Replies

ActionScript 2.0 :: Does AttachSound Load MP3 Into SWF File

Jun 15, 2006

I have the following code:

PHP Code:

var soundPlay = true;var mySound:Sound = new Sound();mySound.attachSound("mySoundFile"); 

Does the above load my sound into my SWF file? This is what I want.

View 1 Replies

Action Script 3 :: Get Sounds Total Time And Current Time?

Nov 18, 2009

i have a player in flash action 3. i need to take a the total time of the sound file and current time of the sound file. how can i code like this.

function onPlayProgress(evt:Event):void {
var sndLength:int = Math.ceil(snd.length /(snd.bytesLoaded / snd.bytesTotal));
var seekbar = 100 * (channel.position / sndLength);

[Code].....

View 1 Replies

ActionScript 2.0 :: AttachSound MC "speaker" Is Two Levels Deep In A Fla And Will Not Play?

Jul 24, 2009

The following AS2 code is placed inside MC "speaker":

ActionScript Code:
var homeSound:Sound = new Sound(this);
    homeSound.attachSound("page1Sound");[code]....

The MC "speaker" is two levels deep (inside an MC, which is inside an MC) in a fla and will not play. However, when I copy the MC "speaker" (and associated sound file) to a new fla it plays fine.

View 3 Replies

ActionScript 2.0 :: Certain Time Play Certain MC Or Load Certain Swf?

Jul 27, 2005

ok does anyone know or can link me to a right tutorial on to set time condition:

if system idle for certain time it wil play certain MC or load certain swf.

View 14 Replies

ActionScript 3.0 :: Swf Load Unload - Play An Animation Each Time Before A Question Comes Up

Sep 14, 2010

I am working on a quiz, I need to play an animation each time before a question comes up. On clicking next button I fire this code

[Code]...

View 1 Replies

ActionScript 1/2 :: Button Sounds In Play Scenes But Not In Play Movie

Oct 11, 2009

I have five different scenes all including three different buttons. When I test the buttons in "play scene" - all buttons sounds correctly in all scenes. But when I play movie, there is sound only with one button (the same button in every scene). I have looked for differences, but this button seem to have all the same parameters as the others.

View 10 Replies

Flash Dual Video Player - Load And Play Two Videos At The Same Time?

Sep 17, 2011

Has anyone seen a Flash video player out there that will load and play two videos at the same time, such as for comparing videos? A potential client is looking for something along the lines of this. I've not been able to locate anything out there,and I'm wondering if there's a usability reason for this...Obviously, you wouldn't want the audio playing for both at the same time, and the bandwidth issue for something like this might be a concern too. My feeling is that you wouldn't want to restrict a user to just playing both videos at once, but give them the option to play them separately or at the same time, with controls for each audio and playback.

View 1 Replies

Actionscript 3.0 :: Simple Method To Mute All Sounds

Mar 5, 2009

My flash application plays and streams lots of sounds at different and random times.it also has some loaded swf with sound...is there any simple method to mute all the sounds using as3.

View 2 Replies

Flash :: Unloading Swf Using The UnloadAndStop() Method, But Video Sounds Remain Audible

Feb 16, 2011

I have tried many approaches to unloading my swf, but to no avail, the video sounds within my laoded swf keep playing even once the swf has been loaded.

I have created a universal loader as follows:

var loader:Loader = new Loader();

I then load various swf's into a movie clip named mov_contentLoader, for example the video swf is loaded as follows:

loader.load(new URLRequest("video.swf")); //assign SWF url to loader
mov_contentLoader.addChild(loader); //add loaded content to movi clip

I then have a generic "exit" button, based on the state of the application, certain windows are closed, swf's are unloaded etc. For my video.swf file, when the exit button is clicked, I call the unloadAndStop(); method on the loader as follows:

loader.unloadAndStop(); //unload all content, do some garbage cleanup
mov_contentLoader.removeChildAt(0); //just to be safe, a second layer of reassurance ??

The SWF is unloaded, but for the life of me I can NOT get the sounds to stop! I even resorted to adding stage listeners on the video.swf to listen for an exiting state, but that still did not stop video sounds.

If I load the video.swf in again and play a different video, the two soundtracks play ontop of each other.

View 4 Replies

ActionScript 2.0 :: Play A Sound Using "attachSound" And "start" With A "hitTest"?

Jul 24, 2006

What im trying to do is play a sound using "attachSound" and "start" with a "hitTest". I've exhausted everything i can think of and it still doesn't work.

View 2 Replies

Flex :: How To Play Several Sounds One By One

Mar 3, 2012

I have several sounds, how can I play them one by one. When I just use play(), the sounds play simultaneously. I also tried to handle SOUND_COMPLETE event, but it doesn't work.

sampleMP3A.play().addEventListener(
Event.SOUND_COMPLETE,
function(event:ResultEvent, o:Object):void {

[code].....

View 1 Replies

ActionScript 3.0 :: Possible To Play Sounds With A .swf?

Nov 26, 2008

I have an AS2 .swf that I'm loading into an AS3 file. The AS2 .swf uses the old AS2 Sound Object, which of course works fine when I play the AS2 .swf directly, but when I load it into the AS3 file the sound stops working. Everything else in the AS2 .swf works fine. I'm loading the AS2 .swf with this:

Code:
// Load AS2 .swf into AS3 holder
var myMC = new Loader();

[code]....

View 4 Replies

ActionScript 3.0 :: All Of Sounds Play At Once?

Dec 20, 2010

Now all of my sounds are playing at once! Each symbol has its own MP3 file in it (MP3 file names are the same as the symbol names for ease, so smokescene.mp3 goes with smokescene and etc.)

import flash.events.MouseEvent;
// make the characters invisible
birthdayscene.visible = false;
dancescene.visible = false;

[Code].....

View 1 Replies

ActionScript 3.0 :: Cant Play More Than 32 Sounds At Once

Feb 28, 2010

can somebody explain me this 32 sound channel limit, i am not sure i quite understand it..does this mean i cant play more than 32 sounds at once, or i cannot externally load more than 32 sounds (without actually playing more than 1 in any given time)?i am saying load because i am planning on preloading multiple sounds and have them ready for playback as soon as i want.

View 1 Replies

ActionScript 3.0 :: First Time Load A Miracle Second Time Load A Nightmare

Sep 20, 2011

I load an external movie fine with:
 
f_btn.addEventListener(MouseEvent.CLICK, finteractiona);
function finteractiona(event:MouseEvent):void{
var loadera = new Loader();

[Code].....
 
It takes 2 clicks to close (or unload) Why?

View 10 Replies

ActionScript 3.0 :: Muting Or Stopping Time Line Sounds Of A MovieClip?

Jul 30, 2010

I'm doing a project that has a lot of time line animation.There are 5 buttons. Each one plays a multi-frame MovieClip containing sounds embedded in its timeline.Then there is a button that stops any of the playing movie clips. Of course, this doesn't stop the soundsormally, I'd just use...ActionScript Code:SoundMixer.SoundTransform.stopAll();Problem is, I also have non-timeline sounds that I have playing on a loop for background music, and the SoundMixer would stop the music too. But I don't want the music to stop.Doing some research, I think any MovieClip can have a SoundTransform property you can adjust, so I should be able to control the sounds just inside specific MovieClips. But I can't figure it out.

View 1 Replies

ActionScript 2.0 :: Looping Sounds Multiple Times (time Dependant)

Apr 8, 2004

Ok say for example I have a sound of a bell chime. I want to play this sound independent of the mainstage and have it key off local system time. So naturally I want to have my sound loop twice at 2am/pm and eleven times at 11am/pm etc.

View 3 Replies

ActionScript 2.0 :: Looping Sounds Multiple Times (time Dependant)?

Apr 8, 2004

Ok say for example I have a sound of a bell chime. I want to play this sound independent of the mainstage and have it key off local system time. So naturally I want to have my sound loop twice at 2am/pm and eleven times at 11am/pm etc.

View 3 Replies

ActionScript 2.0 :: Play FLV Mute All Other Sounds?

Jun 8, 2009

I have some background music playing on my website and when I click to play one of my FLV on the site I want to background music to mute. Also when the FLV is finish (complete) the background music back on.

how to do this, I'm a little rustly on this but know it is easy to do, seen it done many many times?

View 2 Replies

ActionScript 1/2 :: How To Play/pause Sounds

Feb 28, 2010

I have several swf file that will be loaded into the main swf file. In the sub swf file I coded & attached sounds and play it. And the problem is that when it is loaded in the main swf file the play/pause button won't work.

View 9 Replies

ActionScript 3.0 :: How To Play Multiple Sounds

Aug 5, 2010

I am making a slide show, for every image i want sound on it. For example if it the "Tiger" in the image, it says "Tiger". I have all the voice in .wav format.
 
Right now my slide show is xml based and in as3, i have made another attribute for voice.
 
Let me know how i can play different sounds for different images.

View 5 Replies

Actionscript 3 :: Possible To Play Chain Of Sounds

Apr 11, 2011

Is it possible in actionscript 3.0 to play chain of sounds (i.e. several mp3s)?Or should I manually start playing first sound, wait for SOUND_COMPLETE event, then start second sound and so on?

View 1 Replies

ActionScript 2.0 :: All Sounds Play On Publishing

May 24, 2010

I am new to flash and have made a presentation in Flash 8 using preloaded presentation formats.i deleted all the codes in actionscript that were there in the template.Now when i publish my presentation, sounds of all screens start to play together in the first screen.

View 1 Replies

ActionScript 3.0 :: Sounds Wont Play?

Nov 16, 2011

Im testing out playing sounds, I've looked at lots of articles and I feel my code is correct but no sounds are playing.Declare

ActionScript Code:
var testSound:Sound = new Sound(new URLRequest("sfx_test.wav"));
var soundChannel:SoundChannel = new SoundChannel();

[code].......

View 6 Replies

ActionScript 2.0 :: Play Sounds On A Key Press?

Jul 28, 2004

I'm trying to play a sound on a space bar press. I am using Flash MX

View 3 Replies

Professional :: Play FLV And Stop All Other Webpage Sounds

Sep 5, 2010

I have a website that has two flash items on it. I have a swf that calls mp3s that plays on the page load, and I have a FLV that plays on page load. What I would like to happen is: on page load the FLV plays when the FLV Finishes the swf starts to play the mp3s. What already happens is that the pages load in _blank pages so they are in new windows. This is good because while you navigate the site, the music from the homepage is still cycling through the swf's mp3 playlist. The problem comes in when you navigate back to the homepage from a new window, and the homepage is still open within the first window. That means that the video plays over, while the music is playing, and the music doubles up. Now the video playing isn't bad, it's that music is doubling up. Can't it sense itself playing a 2nd instance of itself on another webpage and stop it?

View 3 Replies

Actionscript 3 :: Play Sounds In An Array In A Sequence?

Mar 20, 2012

I want to push a button, and play through the entire array one sound at a time. When the first sound stops, the second begins, etc. all the way until the last sound plays. When the last sound finishes, all sound should stop, and if you push the play button again, it should start over at the beginning, and play through all sounds again.

I'm thinking the SOUND_COMPLETE needs to be used... I'm just not sure how, hence the empty function. I only want to have to push play one time to hear the entire array in a sequence.

var count;
var songList:Array = new Array("test1.mp3","test2.mp3","test3.mp3");
count = songList.length;

[Code].....

View 1 Replies







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