Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Audio Control With ActionScript



Hi,

I have just followed the tutorial here -

http://www.flashkit.com/tutorials/Au...-703/index.php

on how to make my background music fade out on command - it fades out just fine.

After it has faded out, I have stopped Flash from wasting the computer's processing powr by telling it to stop playing this music altogether -

_root.myMusic.stop();

When I return to this particular scene I want my music to fade in and I have this working successfully when I don't use the above myMusic.stop(); command on the fade out part. However, when I do implement myMusic.stop(); there seems to be nothing I can so to make the tune start playing again! I have tried _root.myMusic.play(); but this doesn't seem to work, I'd appreciate any suggestions that you have to offer!

-Nex



FlashKit > Flash Help > Flash ActionScript
Posted on: 11-23-2002, 03:59 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Streaming Audio With Actionscript Control
Hi all, I've been trying to figure this out but i can't get it. I want to have music that streams but can be controlled with actionscript, like volume, stop, play. So basically im saying i want an event sound that streams. I dont need the synchronization, because my little flash movie just loops from a certain point to the end every 5 or so seconds. So i want an event sound that will keep playing, but i can still control with actonscript. And i only want the flash file, no external mp3's if its possible. First i tried using the actionscript linkage for the mp3 file. It worked, but it needed to load the whole movie before it started. so then a friend recommended using something called a "kicker" where you make a layer and put your sound in it on stream mode, but set the volume for 0. then when you want to actually play your music, since it doesnt start immediately, i put an event sound on another layer, and flash will use what it has already downloaded from the stream in the event. so in effect id have a sound acting like an event but it actually streamed. the only problem with this was i couldnt control it with actionscript. so it seems the only way i can use actionscript is if i set up the linkage for actionscript to load on frame 1. then it has to download the whole movie. how can i control a sound with actionscript, but still have it stream to the user. am i forced to use an external mp3?

Can You Control Individual Volume Levels Of Multiple Audio Files W/ ActionScript?
Hey All:

I’m trying to write a little code that will play multiple audio files, or tracks, simultaneously, and which will mute/unmute individual tracks while not affecting the volumes of other tracks.

I have a function that triggers every frame and says basically (this is not the actual code):

If (MuteTrackA == true){
trackA.setVolume = 0;
} else {
trackA.setVolume = 100;
}

The result of this is that if I click on a button to turn MuteTrackA as true all the other audio tracks that I have playing mute also, … so it turns all the audio of, instead of just the file or sound object (TrackA) that I want to mute.

Any idea why this is happening and how to get around it?

Thanks so much for your help with this! I'm really in jam...
-Ross

Advanced Flash ActionScript 2.0 Load Video/audio Control Question.
I am loading two external Flash SWF files into my present Flash movie. The first one that loads is a music player. The second movie I am loading upon the click of a button and it is a external SWF that contains a
Flash video.

Right now I am simply loading the video SWF movie into the same layer as the music player so that it will stop the playback of the music so the viewer can see the video AND hear it's audio. Please note: I am using the Flash CS3 built it component for FLVPlayBack. I have named the instance mainVideo.

Unfortunately when the video ends it just sits there on the last frame.

I would like to have suggestions as how to:
a.) Unload the SWF Flash video that has just completed playback and..
b.) resume the playback of the audio that was last playing.

I am loading the Flash SWF music with the following:
-------------------------------------------
on(release) {

loadMovieNum("/motion/flash/music/music2.swf",1);
_root.soundstatus="on";
_parent.equalizer.gotoAndStop(1);
_parent.gotoAndStop(1);
}
------------------------------------------
I am loading the external SWF Flash video with:
------------------------------------------
on(release) {

loadMovieNum("/motion/flash/video/kirklandPSA.swf",1);
_root.soundstatus="on";
_root.equalizer.gotoAndStop(1);
_parent.gotoAndStop(1);


}
-----------------------------------------------

Suggestions and help appreciated.

Thanks in advance,

Rip

Audio Control
Im makeing an audio control for my site wich has loops that i want to add...i dont know the script to make loop 1 stop when loop 2 is played..i hope i explained that right lol... it seems to easy, but its not! PLEASE HELP ME!!!! matt

Audio Control
hi!
Does anyone know how to control a background music, so i can stop and play the music? thanks a lot!

Control CD Audio?
I am making an interactive CD for my band and need to know how to get flash to control the playing of a CD. can I use Java, and if so how do I get flash to read the .dll files required to use the Java based CD player.

How To Control Audio
Hi, I have a picture viewer that loads stuff from an array, but how would you make it load mp3 files as well? It loads jpgs and several fields of text for each line in the array, but I haven't been able to use loadSound or soundAttach to load in mps files that I include in each line in the array.


Code:
//My array is like this:

arrayrow=[
["../pics/Nicholas.jpg","Here's Nicholas","King","N","_","../audio/song1.mp3"],
["../pics/BM.jpg","BM","King","N","_","../audio/song2.mp3"],
["../pics/Jen","_","King","N","_","../audio/song3.mp3"],
["../pics/Stores.jpg","Shopping","King","N","_","../audio/song4.mp3"],
// .........
["../pics/church.jpg","Voice","King","N","_","../audio/song327.mp3"]
];

//And my loader is like this:

if (TargetIN._alpha<10) {
loadMovie((arrayrow[counternumber-1][0]), TargetIN); //this loads my jpg
CurrentName = (arrayrow [counternumber-1][1]); //text field
Street1 = (arrayrow[counternumber-1] [2]); //text field
StreetDirection = (arrayrow [counternumber-1][3]); //text field
??????????????????????????? //sound loader (!!!?)


Thanks again, please pass on *any* ideas...

Audio Control Help
hello everyone,

i have a site that consists of four frames on the main timeline. The various frames are sections of the site , they all have lables and stop commands. I also have a layer that has one keyframe that spans all four frames. On this keyframe is a movieclip with two frames , and on button on one, and an off button on the other. When the user clicks the audio button the button movieclip advances to frame 2 and all sounds are stopped. Well this works fine until the user navigates back to the first frame in the main timeline. At which point im assumin the button movieclip is reinialized to its default state where the audio is on. Ive tried declaring a global variable as a boolean , to maintian the state of the audio. However, when the first framein the main timeline is active the music restarts. Can anyone think of a way fix this ?

Audio Control Help
Hey folks,

sorry I just saw the 'no actionscript' tagline below this forum in the main list...mods feel free to move it....

I'm using Flash MX and have a project where the root level has two buttons: forward and previous. These buttons jump to specific labeled keyframes that contain a movie clip that contains an audio file placed on a layer.

When I test it, and move forward through the project, the audio clips stop, and then the next one will begin nicely....however when I use the previous button, multiple audio clips will play at the same time.

The same happens when I use the 'table of contents' buttons to jump to a specific section...all button actions are the same, for example:

on (press) {
stopAllSounds();
gotoAndPlay("four");
}


Is there a better way to handle audio when jumping from one keyframe to another on the root level, and the audio is contained within a movie clip?

any guidance will be greatly appreciated.

Control Audio
Hi People,

I have been searching online for ages to find a tutorial for flash which allows me to play/pause/resume audio and also skip forward/back to a specific keyframe.

Now i am no expert when it comes to actionscript so if anyone manages to help me out here please put the answer in the simplest way possible. So i can them implement it into my Movie.

thanks

Audio Control
hey guys, whats up? check this one out :

on my site, i have an audio track and i also have one of those spectral analyzer animations going on with the bars moving up an down.
anyways, i want to have a stop music and play music button so viewers can turn the music on and off when they want. i was wondering if anyone out there could help me with the actionscript to make the music stop and start and also, when the music stops, the spectral analyzer stops moving to.
i know this is probably a lot to ask, but i just started learning about action script and i'd love some help.

Control CD Audio?
Hi all,

I'm trying to develop a small standalone audio CD Player (to be included on a cd) which plays the audio tracks, also located on the cd.
I've done a lot of looking around for solutions and the only thing that comes close is FlashJester's JCD, which executes functions with fscommands from flash but it still doesn't provide controls such as volume, drive selection etc

So is there any other real way to control audio cds in flash? ...and if there isn't, what would be the best approach to creating a cd player?

I've read suggestions of including .mp3 versions of the tracks because flash can play them but how do you fit a whole album's worth of .cda tracks plus the .mp3 tracks on one cd?

Any advice would be really appreciated
Thanks!

Audio Control
hello,
i was wondering if anyone could help me out on where to find a good tutorial on making an audio control device for a flash website......i want it to be simple?......if there is such a thing....i want it to have play, pause, stop, and be able to switch tracks. the other thing is, i am not quite sure what is the best way to put it into the movie.......i have checked out tutorials at flashkit, macromedia, and here.....also i have looked in a few books i have and i really don't see what i want or i'm not understanding.....thanks for you time and help.........teddy

Audio Control
hey guys, whats up? check this one out :

on my site, i have an audio track and i also have one of those spectral analyzer animations going on with the bars moving up an down.
anyways, i want to have a stop music and play music button so viewers can turn the music on and off when they want. i was wondering if anyone out there could help me with the actionscript to make the music stop and start and also, when the music stops, the spectral analyzer stops moving to.
i know this is probably a lot to ask, but i just started learning about action script and i'd love some help.

How To Control Audio From Library ?
Hi,

I have an Audio in Library of the shockwave file. I have called this swf file into Flash (i.e. in New File) using "Load Movie" command. In this new file I have got Audio controls which are mentioned as below. Now, how to control this Audio, which is in the loaded swf file, in Flash?

I have got 2 Audio Controls (buttons). First is Audio On/Off & the Second is Repeat Audio.
1) Audio On/Off - If the Audio is set to On mode, the Volume should be 100% whereas if the Audio is set to Off mode, the Volume should be 0%.
2) Repeat Audio - Current Audio should be repeated whenever this button is clicked.

Kindly help me in this regard, if possible send me the sample files to my mail-id: naveen@sankhyainfotech.com

Movieclip Control Audio?
Hello...

Thanks in advance for your help.

Anyway my issue is this: I have a movieclip that acts like a button. It is being used in an audio player that streams in the audio from an alternate internet site. I used the variable "s" to represent the audio that is being streamed. My problem is that I can't seem to control it (meaning, it will load and play on it's own ((I have it setup to do that)) but I cannot use the buttons to pause a unpause it). I've can get it to work if I use actually button symbols instead of mc's, but I want to use an mc. Basically, if someone can help me understand how to get the audio to be manipulated by using onRelease for an mc, I will love them forever.

Recap:

audio variable is "s"
I need various mc's that act like buttons to pause and unpause "s."

THANKS!!

Multiple .flv Audio Control
I have 2 .flv's in a banner. I want to have the audio for BOTH .flv's turned off.
So this way, the user is only seeing both of the videos play without any audio. But the catch is, the user will need to have the ability to turn the audio on or off for either .flv. So this way they can hear the audio for which ever .flv they choose to hear the audio for.

any suggestions?

Trouble With Audio Control....could You Help Me? :(
all the problems have been fixed, thank you for your support.

[CS3] Control Bar Not Controlling Audio
I am working on a project and the client requested a scroll/control/seek bar so they can go back and forth if they need to. There is an audio voice track to go along with it.

Unfortunately when I export it, the sound just disappears completely. The control bar controls that animation fine, but no audio comes out.

I tried to sync it up by pulling the audio out and placing it in its own mc ("audio"), but it won't quite match up. Any ideas of what I might be missing? I am using AS2.

Here is the code on the scroll/control bar

Code:
onClipEvent (enterFrame) {
_root.stageMovie.gotoAndStop(Math.round(_root.controlBar.scrollBar._x/.285));
}
on (press) {
_root.stop();
_root.stageMovie.stop();
_root.stageMovie.audio.stop();
startDrag(this.scrollBar, true, 20, 20, 872, 20);
}
on (release, releaseOutside) {
_root.stageMovie.audio.gotoAndStop (_currentframe = _root.stageMovie._currentframe);
stopDrag();
}
And here is the code I am using to get it to advance:

Code:
if (_root.controlBar.scrollBar._x<= 872) {
setProperty(_root.controlBar.scrollBar, _x, _root.controlBar.scrollBar._x+.1495);
} else {
setProperty(_root.controlBar.scrollBar, _x, 20);
}
Unfortunately someone set up the video player before I started and I don't know quite enough about AS to write my own. So if anyone has any input I would appreciate it!

Thanks!

Audio Control Problems...
Got a problem with doing some basic controls with my audio on my web page:

http://www.mirageadv.com/beta

Problem: If the background music is playing I figured out how to shut it off using basic action script...

When the site site loads I have the following script to play the BGM:


Code:
mySound = new Sound();
mySound.attachSound("bgm");
mySound.start(0, 999);
and the button that control the BGM are:

Play:


Code:
on (release) {
if (_root.playing != true) {
_root.mySound.start(0, 999);
_root.playing = true;
}
}
Stop:


Code:
on (release) {
_root.mySound.stop();
_root.playing = false;
}

Now when you goto the Portfolio section.. and go into the audio... I made it so when you click on any of the audio clips it will automatically stop the BGM by doing the following:


Code:
on (release) {
_root.mySound.stop();
_root.playing = false;
clipA.start(0, 999);
playing = true;
}
and this works fine... no for the real problem...

if you goto the video section (let keep in mind the BGM is playing)... and you decide to view a video clip. It will open a separate web page and play the video file... The BGM keep s playing. Now I am using an XML gallery to display the video icons to load the external page so I can't really give it an action script to stop the BGM, but at the moment I don't have a problem with having to go back to the page to press the stop button to stop the music if I have to.

But when you do this it causes the video's audio to cut out as well... how can this be when it is not part of the Flash document from the main site?

It confuses me... how can I make my main audio stop button only stop the BGM music and not anything else... can I make flash detect when it is in a background window and pause the music... that would be the best option, but don't know how to do that.


Thanks - Have a great holiday week as well.

Audio Control Between Frames
Hi there,

I'm sorry about the basic nature of this question (I'm sure for most of you this question will be an insult to your intelligence). Here's what I'm doing:

- I have a slide show. I have "Previous" and "Next" buttons on each slide that navigate between consecutive frames. I have many (48) stills that occupy a single frame each.
- I want a clip of audio to play for each slide. This part is easy, but I want the audio to stop when the user clicks on either the previous or next buttons.
- Then I want a different piece of audio to play automatically once the user goes to the next or previous frame.

Does anybody have any actionoscript ideas or a link to a tutorial? Thanks in advance!

How To Control Audio Of Embedded FLV?
Hi,

Im creating a microsite which loads external SWFs with embedded FLVs in their timeline (each SWF has its own preloader). To control their audio (mute/unmute buttun), I have encoded & imported the FLVs & their audio tracks seperately in the SWFs. I'm controlling the audio tracks by attached them from library through the sound object.

Issue:
The FLV & audio run synced when I play them together in timeline. But they go off-sync when I play the audio though AS, rest assured that FLV & SWF have the same fps. I have even tried encoding the FLV at both the source video fps & SWF fps.

This is my main function to attach FLV audio track from library:

ActionScript Code:
var IntroMovieInstance:MovieClip = this.createEmptyMovieClip("IntroMovie", this.getNextHighestDepth());
var Intro_Sound:Sound = new Sound(IntroMovieInstance);
function Intro_attachedSounds(IntrolinkageName:String) {
    Intro_Sound.attachSound(IntrolinkageName);
    Intro_Sound.start();
}
This is the above function's call when the FLV video starts:

ActionScript Code:
Intro_attachedSounds("audio_FR_intro");
Is there any other way to control the audio (mute/unmute), considering that the preloader should load both the FLV & its audio before they start to play?

Thanks & regards,
Nikhil Pasricha.

Screaming Audio Control
Trying to control streaming audio with buttons, want to be able to select a file with one button to start stream, then select a second file with a second button. Problem is that BOTH files play simultaneously. How do you switch between files on the same page like this?

Audio Playback Control
Can someone help with the coding to control whether or not the audio playback of an external mp3 is stream, start, stop, or event? I want the sound to play continuously but not begin playing an overlapping 2nd, 3rd, etc time if the user goes back to the frame where the sound is loaded. I can see where to do this on the timeline/properties window, but I can't find how to do this with AS3.

Thanks,

Audio Control Question
I've got a page that I'd like some music to come on as soon as the page loads. I've also got a play, stop and volume slider on the page that I'd like for people to be able to use on the page.

It's actually working...sort of. Here's the problem(s):

1) The music doesn't start until I press play and I'd like it to just start (and then if people want to stop and start it that's ok. Also, I'd like to stream the music instead of having to wait for it to load completely. As it is right now, you have to wait for the clip to load, then hit play.

2) The level of the volume slider comes on at it's lowest point. It works, but I'd like it to come on at about halfway. As it is right now, you have to pull the slider over to hear anything and that's only when you've hit play (see problem #1)

I'd really appreciate any help. And don't laugh at the design, I'm pretty new at this!

http://64.226.7.185/newtiffany/tiff.html

Timeline Audio Control?
Hi i'm developing a cd-rom that needs to have the voiceover and animation sync'd.. so the only way to ensure this really I believe is to place the audio voiceover in the actual timeline, instead of loading it into a sound object from the library.. So, my question is, is there anyway to control the sound of the timeline audio?.. is there a global sound volume control, such as an fscommand or something (since the cd-rom will be running it as a projector). I've looked around and its difficult to find an answer on this, as most people suggest using the sound object, but in this case that's probably not possible unless there is some tricky actionscript that could force it to sync to the timeline and framerate. (of course there's the concern there that on slower computers that solution wouldn't work)...

so if anyone can help me work this problem out that would be great, thanks!

_CC

Audio Control Thingy
hi,
I want to make an audio control and I've looked and looked on tutorials and I don't care for many of them.

But the one on greenovia.net is pretty cool, and I was wondering how one might make something similar to it.



edit: and how did they make it so that when you roll over the audio button, the audio control shows up and when you roll out, it fades out?

How To Control Audio Of Embedded FLV?
Hi,

Im creating a microsite which loads external SWFs with embedded FLVs in their timeline (each SWF has its own preloader). To control their audio (mute/unmute buttun), I have encoded & imported the FLVs & their audio tracks seperately in the SWFs. I'm controlling the audio tracks by attached them from library through the sound object.

Issue:
The FLV & audio run synced when I play them together in timeline. But they go off-sync when I play the audio though AS, rest assured that FLV & SWF have the same fps. I have even tried encoding the FLV at both the source video fps & SWF fps.

This is my main function to attach FLV audio track from library:

Code:
var IntroMovieInstance:MovieClip = this.createEmptyMovieClip("IntroMovie", this.getNextHighestDepth());
var Intro_Sound:Sound = new Sound(IntroMovieInstance);
function Intro_attachedSounds(IntrolinkageName:String) {
Intro_Sound.attachSound(IntrolinkageName);
Intro_Sound.start();
}
This is the above function's call when the FLV video starts:

Code:

Intro_attachedSounds("audio_FR_intro");
Is there any other way to control the audio (mute/unmute), considering that the preloader should load both the FLV & its audio before they start to play?

Thanks & regards,
Nikhil.

Audio Control Question
I've got a page that I'd like some music to come on as soon as the page loads. I've also got a play, stop and volume slider on the page that I'd like for people to be able to use on the page.

It's actually working...sort of. Here's the problem(s):

1) The music doesn't start until I press play and I'd like it to just start (and then if people want to stop and start it that's ok. Also, I'd like to stream the music instead of having to wait for it to load completely. As it is right now, you have to wait for the clip to load, then hit play.

2) The level of the volume slider comes on at it's lowest point. It works, but I'd like it to come on at about halfway. As it is right now, you have to pull the slider over to hear anything and that's only when you've hit play (see problem #1)

I'd really appreciate any help. And don't laugh at the design, I'm pretty new at this!

http://64.226.7.185/newtiffany/tiff.html

Audio Control Panel
My client would like music to play in the bg of his flash movie but also to have a list of options to listen to different speakers. He wants that when you click on a speaker, the music will stop and the speaker clip will begin and when you stop the speaker, the bg music will automatically resume. Would I do this by putting an action at the end of each speaker clip to "jump" to the frame that has the bg music? thanx.

Audio Control / Transitions
Could someone please explain to me how to create a sliding audio control with artist names for the tracks, just like the one on www.seanjohn.com. I would also like to know how to do the movie transitions with the lines on that site as well if anyone has a little free time...and perhaps the .fla? Thank you

Audio Control Over 9 Scenes
Hello,

I have a flash file made up of 9 scenes (each contains different image sources) and for each scene there is an overall sound file controller (background audio - client wants it)

However, once the sound is turned off in one scene, when you go to another the sound starts again unless you turn it off, etc etc

This is annoying, and being a new builder to flash I dont know of another way to "fix" this so on ANY scene when you turn the sound off (it stays off) until you click on the controller again - I'm assuming (with my limited knowledge) that the sound is at the "root' level and can be manipulated from anywhere within the file that way?

How do I do that?

• idaryl • http://www.designedimage.com •


Audio Pace Control
Hi all,

I am a Flash action script programmer. I have come across a peculiar need in elearning courses I have developed so far.

Some of my users are not able to follow the speed at which the audio in content pages reads. I have hundreds of pages like that. I need to reduce the audio speed (pace).
Is there a way to control audio speed (sample rate) from the actionscript?

Any third party tool welcome.

thanks,
Krishna,
India

Movie Audio Control
In my movie, I have an external mp3 playing, as well as a different sound which is embedded into flash playing.
So basically 2 sounds playing at once, one external, one internal.

How can I create a mute button that will stop both? Is there a way to mute all the sounds of the movie at once but not muting other flash movies music?

thanks guys

Webagent 007 Audio Control?
I am currently making a portfolio site. I have an audio panel with about 5 different songs to choose from. Anyways, once you choose a song, it will play externally and loop forever.

The problem I have run into is when someone clicks one of my portfolio pieces with music, there may be 2 songs playing at once.
Now, I also don't want the song from the portfolio site to just be muted when a project is launched.
I want to try to do what webagent007 has done (and they pulled it off very well). Basically they somehow made it that when one of thier portfolio pieces is launched, the music fades out nicely and PAUSES. then once you are done with the portfolio piece and focuse back on the main portfolio site.. the song fades in and begins to play where it left off.

It is kind of hard to explain but go check out www.wa007.com and see how the music fades out when you view something, and in when you go back to the site.

Does anyone know of any sources/tutorials, or any suggestions on how I would being to do this?
Thanks guys.

Flash Audio Control
how did he get it to play and stop multiple sounds?

http://www.limmy.com/oldsite/project...ctro_popup.htm

i've searched the site for code and tips etc...

Global Audio Control
Good morning, or evening or night,

Just after a bit of advice. . .

Done a few sites recently with both an mp3 player and an flv player in them. I have written a class for each of them, and in my crusade for trying to keep things as centralised as possible, was wondering what the best practice is for dealing with the audio on a global level.

I would like to control both sets of audio with one set of controls. At the moment I do this by altering the volume of both in the same method, but idealy I want to set up a single global property which controls both. Is this possible?

Any ideas appreciated.

Control Volume For Streaming Audio?
I know how to control the volume when you attach a sound, but i need to know how to control the volume if you are streaming the sound. I need to be able to pause my audio and the only way to do that (to my knowledge) is to stream it.

So how would you set up the variables and slider for the sound control?

Or can you not adjust the volume for streaming sound?

Volume Control Over Streamed Audio
Is there any way of setting a button to control volume of a movie with streamed audio, there are loads on the search that control event audio, but not streamed.

Any suggestions?

Also what setting in Flash 5 do people use for the best unbroken audio when streaming with flash?

Cheers

Oscar, NY Sushi
UK

Audio-only Start-stop Control
OK...I confess...I am a clueless ActionScript Newbie

I do FlashMX, but have primarily used SWiSH for creating my basic .swf files.

Now, I need to do some Audio-only (1pixel x 1pixel screen size) stuff with <PAUSE> and <CONTINUE> control of audio segments, and need help as to exactly how to do ActionScript so that the (non-visual "movie") will PAUSE right at the end of each audio clip, and then pressing the spacebar or other key/combo will CONTINUE with the next in-sequence audio clip. Like:

Step 1 = Do this

Step 2 = Do that

Step 3 = Then...

A couple of additional questions:

1. Can you batch import audio clips (sequentially numbered) into FlashMX and auto-assign the repetitive <PAUSE> <CONTINUE> steps without having to copy & paste the code for each one? If not, this would be an awesome feature, IMHO.

2. I plan to use this as a Help Guide for a web-based program which will be in the primary Window, so am not sure how to handle the switch back & forth if there is a Focus issue.

Any help is GREATLY appreciated!!!

- flash777 -

Automatic Start Audio Control
Hi there, i am trying to create a simple audio control on my site, and wondering what the best way to do it is. I have found a few tutorials but none explain how do to exactly what i want.

There will be 1 sound on and 1 sound off button.
I want a song to start playing as soon as the page is loaded, and buttons to be for ALL SOUNDS. For eg; there are navigational buttons that have their own mouseover sound effects, so i want the sound control buttons to turn on all these sound and the off button to turn them all off. The stopallsounds behaviour doesnt seem to be working and i cant find a behaviour that allows all sounds, only a specific sound from the libary. Futhermore, when putting my music loop in the timeline, after a while it starts to play over itself. What am I doing wrong and what is the best and most simple way to accomplish what I'm trying to achieve? Thanks.

Audio Playback Speed Control
Hey everyone.

I think I've done decent research and just can't figure this one out (my ActionScript knowledge is weak)

I have a flash audio player that I use for transcribing audio. And I would like to be able to control the playback speed. So like have an mp3 file play at 50% normal speed or 150% normal speed. Depending on what I am doing. And I need to be able to load the file via URL and could it could be any file. Meaning I can't just have versions of the file at different speeds.

So my question then is how do I change the file play speed? I know I can't change it while playing. But I can load a new sound of it at a different speed somehow (I think) at the same spot, so it acts like it's just speeding up the playing file. But how?

Thanks. By the way, I have seen a video player that's sound and video slowed down with the click of a button. So I know this is possible.

Audio Sync And Control Questions
I am creating a timeline based movie which will be produced as a .swf (not .flv).

It is a narrated piece and am having a great deal of trouble matching the narration exactly with the animations. Does anyone have any tips on how to ensure that the narration will play at the same time no matter what the viewer's download speed? Do I need to use cue points or something? If so how do I do that?

I have built this using CS3 using AS3.

Any help is greatly appreciated!!!! I am desperate. Thanks!

Audio With Dynamic Control Between Levels?
Hello,
It's been a while since I posted a question here, glad to see you folks are still around.

I am trying to figure out the best way to do this. Right now I have a MC button inside level 0 that controls my "background" music (on - off pretty simple). It starts out as "Sound off", and when pressed it changes to "Sound on" and the music turns off.

But there is a separate .swf that I bring into level 5 that I would like to use to load individual sound clips (30 sec. ea.) via their own buttons, basically a sample of some music on a CD.

What I would like as level 0 is constant throughout the project, is to remove the "background" music in level 0 (turn off) by loading the new .swf audio clip (from level 5 into lets say level 10) and play this new clip, and also change the level 0 MC appearance and control position, (i.e. if a button in level 5 is selected, I want level 0 MC to respond to this and turn off the music and show that the "background" music is actually off).

I have tried this with unloadMovieNum, unloadMovie, etc. but with no luck. The music turns off but the new file doesn't load correctly and the "Sound" switch in level 0 hangs because it doesn't know that I removed the music.

I am sure that there is a way to do this, anyone willing to lend a hand or have any ideas? Thanks for the help...

Need Volume Slider That Will Control Audio
I need a volume silder bar that control audio volume when the user drags it. it needs to have the sound attached to it so that i can create multiple versions and call them via loadMovie and unLoadMovie commands.

Anyone have something i could use?

Thanks

Control Volume Of ALL Audio (incl. Of Flv)
Hi

I'm creating a flash presentation that contains some externally loaded video's (flv), voiceovers and a background music. I would like to be able to control all these audio streams with one control. So basically I'd like to change the volume of the entire movie. Is this possible?

I know there's something like the Sound object with a setVolume() method, but that's only to control one stream as far as I know.

I just need to know if it's possible to control all audio with one statement. Something like _root.setVolume() or something?

Thanks

Have Audio Level Control The Scale Of A Mc?
I saw somewhere with AS3 it is possible to take an audio wavelength and apply it to parameters of an mc. In After Effects you can also do this. Does anyone know if it is possible in AS2. Or something that would work similar in an AS2 swf? I've already tried loading an external AS3 into my AS2 swf in shear hope, but all AS3 scripting is ignored (besides the stop(); command)

Thanks for any help in this regard.

Flex Audio Player Control?
I am looking for a really simple audio player control that I could use in Flex 3. Basically just need a play / stop button, and a time slider. FF and Rewind buttons would be nice too, but not necessary. Does anyone know of something already out there? Preferably open source.

Thanks!

Need Volume Slider That Will Control Audio
I need a volume silder bar that control audio volume when the user drags it. it needs to have the sound attached to it so that i can create multiple versions and call them via loadMovie and unLoadMovie commands.

Anyone have something i could use?

Thanks

Copyright © 2005-08 www.BigResource.com, All rights reserved