[MX] Sound Control Actionscripting
Just a really simple problem people; wondering how to have a button that plays a music loop but will NOT play it if it is already playing...did that make sense? I know how to do it without actionscript but just wanting a quicker more efficient way. CHeers!
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 12-16-2005, 06:53 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Control Length/Alpha With ActionScripting
Right now i have a slide show that is pretty basic, it has three banners that fade in and out.... they are on there for about 10 seconds... 120 frames....
problem is when i want to change a banner out of the three, i have to go back and rebuild the flash document...
I've been reading this flash book that mentions how most timeline effects can be accomplished with actionscripting. unfourtunatly all i can find so far that mentiones alpha is...
PHP Code:
function fadeIn (bgClip) {
bgClip.onEnterFrame = function() {
if(this._alpha < 100) {
this._alpha +=20;
}
};
}
function fadeOut (bgClip) {
bgClip.onEnterFrame = function() {
if(this._alpha > 0) {
this._alpha -=20;
}
};
}
problem is, this doesnt really deal with how long the effect should last, just that bgClip should fade in or out 20% depending on its current opacity.
is there a way to specify a length, that way all i have to do is add the three banners in a single key frame, and control everything via ActionScripting??
Help With Sound Actionscripting
Hello, I'm using a Flashkit tutorial here
http://www.flashkit.com/tutorials/Au...49/index.shtml
to play and pause a sound file in my .swf. The problem with this tutorial is:
1. The sound file plays automatically when the page loads without the user having to click on a play button.
2. It doesn't deal with multiple files.
I have three sound effects I want to play in my .swf, each controlled by their own individual play and pause buttons. I want to know how to actionscript my .swf to tell it to load sound clip No. 1 when I click on button No. 1 and pause when I click on button No. 2, and so forth for the other two sound clips.
Thanks for any help you guys can give me.
Sound Through Actionscripting
I am having difficulty getting my sound file to play.
I want it to play when the user presses the up key. I cannot seem to find the code for playing a sound. My sound is called tie-3-shot and I have imported it to the library. I have also adjusted the linkage so that it exports it for actionscripting. My code is as follows:
Code:
onClipEvent (enterFrame) {
if(Key.isDown(Key.SPACE)){
tie-3-shot.start();
}
}
This is not working. I've never played sounds through actionscripting before. Perhaps this is not how it's done?
Any advice would be greatly appreciated.
Thanks
Actionscripting For Sound--Help
I'm a newbie with sound and I am creating a Flash CD-Rom business card/presentation and I have two sound clips--a voice over and some background music. I have NEVER had to use sound and have to control when it stops, volume, etc...but that's basically what I need to know. I need to stop and start the voice over at certain frames and I need to lower the volume of the background music when the voice over begins. Tried putting the sounds in movie clips and that didn't seem to work. I'm pretty familiar with actionscripting and the program itself--just never used sound really--any help is GREATLY appreciated, thanks a lot!!!
Actionscripting Sound Question
Hey all! Question...Can I attach a variable to a sound to control just THAT sound. I have several sounds playing at once and I need ONE sound to stop when the users tells it so. The sound needs to fade too, I tried the setVolume function but ofcourse it turns ALL sounds down...not good...any suggestions? To recap:
One sound out of many need to be turned down via user interference
Sound needs to fade independently of any others...
Any ideas???
Thanks all!
- Sigma
Please Explain Sound With Actionscripting To Me
Why is it when I put this on the first frame of my movie:
_level0.myTyping = new Sound();
_level0.myTyping.attachSound("typing");
_level0.myLaughing = new Sound();
_level0.myLaughing.attachSound("laughing");
and then I do this on frame 50:
_level0.myTyping.start(0,1);
_level0.myLaughing.start(0,1);
and then I do this on frame 60:
_level0.myTyping.stop();
it stops both sounds, not just myTyping.
I've also noticed that it stops a sound loop I had playing in a movie clip that I had not linked up to actionscripting at all!
It's doint the same thing as the function, stopAllSounds(); !!
Same thing occurs if I try and change the volume of one of the sounds such as
_myTyping.setVolume(50);
It affects both sounds! (As well as my movie clip with the sound loop in it!)
I thought by assinging a new sound to a variable, you could control the playback and volume settings for that one variable... I'm wrong obviously, but what is the correct theorey with using actionscripting with sounds???
Thanks much!
[Edited by bread_man on 05-14-2002 at 04:34 PM]
Playing Sound Actionscripting
Hello, I'm trying to have a button play a short mp3 on my .swf after I click on it. I want it to work like the flashtrak console on the soundloops section of Flash Kit. Can anyone tell me how to actionscript the button? Thanks for the help!
Important Actionscripting For Sound
I'm a newbie with sound and I am creating a Flash CD-Rom business card/presentation and I have two sound clips--a voice over and some background music. I have NEVER had to use sound and have to control when it stops, volume, etc...but that's basically what I need to know. I need to stop and start the voice over at certain frames and I need to lower the volume of the background music when the voice over begins. Tried putting the sounds in movie clips and that didn't seem to work. I'm pretty familiar with actionscripting and the program itself--just never used sound really--any help is GREATLY appreciated, thanks a lot!!!
Actionscripting For Sound//please_Help
OK so I've been dealing with actionscript for a while but I've just recently began to deal with sound so I'm a newbie with it. I'm doing a presentation with some background music and a voice over and I need the BG music to lower in volume when I bring in the voice over--this is the script I have:
bgmusic = new Sound();
bgmusic.attachSound("Ambience");
bgmusic.start();
and then at the frame where the voice over comes in (on a seperate layer) i put the following code:
vox = new Sound();
vox.attachSound("VoiceOver");
vox.start();
_root.bgmusic.setVolume(30);
but the volume does not change for the bgmusic--can someone help me out?
Help With Controlling Sound With Actionscripting
Hi, I've created a Mute button to stop and play the background sound ,
the problem is
when the sound starts again , it starts from the beginning of the song,
how can I actionscript it so that the song starts from where it was stopped ?
here is the actionscripting I used on the first frame;
stop();
var s1:Sound = new Sound();
s1.attachSound("bg-music");
s1.start();
============================================
and I used this code on the On and Off buttons;
on_mc.onPress = function() {
with (_root) {
s1.stop();
}
};
on_mc.onRelease = function() {
gotoAndStop("off");
};
off_btn.onPress = function() {
with (_root) {
s1.();
}
};
off_btn.onRelease = function() {
gotoAndStop("on");
};
any help would be appreciated ...
Buttons - Sound Off - Actionscripting
Hello,
I have a button with a bit of music playing as you roll over it in the over state.
What actionscript or behavior do I put on the button to make all sounds stop (for this button only) as the users cursor rolls off it?
Thank you.
dmc
Sound Fade With Actionscripting?
I have a sound clip I am looping in a movie clip named " soundloop " it is on the main time time. When I get to a point in the movie I need to start a fade out. Can I do this with actionscripting, I have flash MX.
Thanks!!
Help -Stuck In Sound Fade Out Actionscripting
Hi there!
I need some help with sound actionscripting.I'm loading a swf file with a sound and function into the main movie.I call the function from the main movie when the sound.swf is loaded.
The problem is that when using function to attach the sound i don't know how to fade out the sound when looped 10 times.
My function is:
function mysound () {
mysoundobj = new Sound(this);
mysoundobj.attachSound("idname");
mysoundobj.start(0, 9);
}
Then in the main movie i call the function from a movie clip and preload the sound.swf:
onClipEvent (load) {
loadMovieNum ("sound.swf", 1);
}
onClipEvent (enterFrame) {
percentloaded = Math.floor(_level1.getBytesLoaded()/_level1.getBytesTotal()*100);
_root.percentdisplay = percentloaded + "% loaded";
if (percentloaded == 100 && !initialized) {
_level1.mysound();
_root.gotoAndPlay(10);
initialized = true;
_visible = false;
}
}
I need to fade out the sound after the 10-th loop!
That's all.Help me.I'll really appreciate that!
Thanks in advance!!!
Sound Related Actionscripting Questions
Hello there.
i would like to create a presentation swf for a new site we opened and i have a really cool idea. What if i was able somehow to get input from a sound clip, in a way so i could know the bass levels?
I want to create a movie which will contain some movie clips that will react to the bass levels of the sound clip playing. Is this possible to do with just actionscripting? i saw a tutorial about creating a spectrum analyzer and this is certainly a way to do it, but i wanted to know if there is another, code only way to do it.
thanks!
Actionscripting Sound Functions For Buttons
I've recently been putting together a flash site for my band. I have a basic online store setup on the front page, where our fans can click a link to buy our whole album or just individual mp3s. I want to give the listener the ability to press a play button for each song, and then jump to another song and press play for that song to preview the music before they buy it.
I've been able to successfully create buttons that play a sound and stop a sound. But I still need to be able to have someone click the play button on a second song and have that play button stop the song that's already playing. That way the listener can jump between the 12 play buttons and not hear 12 songs playing at once or have to go back and hit the stop button each time.
Any help or direction would be greatly appreciated!
[FMX04] Actionscripting - Help With Pulling In Sound File Along With .swf
Hey All, Another AS novice here. I have a FLA built that pulls in external .swf files via XML files. On a button click inside the FLA I load the SWF into a small window in the FLA. I can get it to play, stop and pause... but the sound still plays because it's embedded in the SWF file. Sooo, I wanted to try to load the MP3 files along with loading the SWF files. But I can't seem to get it working. I'm sure there's some big mistake with pulling the sound file in and getting it to play - I just don't know enough about AS to see them. Any help would be GRRRREATLY appreciated! Thx!
Here is the code that's pulling in the files:
Code:
//Create the XML Object
myXML = new XML()
myXML.ignoreWhite = true
//Load XML file
myXML.load("seminars.xml?cachebuster=" + new Date().getTime());
//Make a reference to current timeline
myXML.ref = this
// Parse XML and fetch
myXML.onLoad = function(success){
if(success){
var root = this.firstChild
nodes = root.childNodes
for(var i=0; i<nodes.length; i++) {
this.ref["Title_txt"+i].text = nodes[i].attributes.name
subnodes = nodes[i].childNodes
this.ref["Comments_txt"+i].text = subnodes[0].firstChild.toString()
this.ref["Link_txt"+i].text = subnodes[0].firstChild.toString()
this.ref["Link_txt"+i] = subnodes[1].firstChild.toString()
this.ref["holder_mc"+i].loadMovie(subnodes[2].firstChild.toString())
this.ref["holder_mc"+i].my_sound.loadSound(subnodes[3].firstChild.toString(), true);
}
} else trace("Error loading XML document")
}
And here is the code for the button:
Code:
on (release) {
var lo = new Object();
var mcl = new MovieClipLoader();
var my_sound:Sound = new Sound();
mcl.addListener(lo);
lo.onLoadInit = function() {
};
mcl.loadClip(Link_txt0, "_root.mainMovie");
my_sound.start(Sound_mc0, 99);
button_mc.onRelease = function() {
};
}
And here's the XML:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE data[
<!ELEMENT title (comments, link, image, sound)>
<!ATTLIST title name CDATA #REQUIRED>
<!ELEMENT comments (#PCDATA)>
<!ELEMENT link (#PCDATA)>
<!ELEMENT image (#PCDATA)>
<!ELEMENT sound (#PCDATA)>
]>
<data>
<title name="name">
<comments>text here</comments>
<link>file.swf</link>
<image>images/imageName_sm.jpg</image>
<sound>soundfile.mp3</sound>
</title>
<title name="name">
<comments>text here</comments>
<link>file.swf</link>
<image>images/imageName_sm.jpg</image>
<sound>soundfile.mp3</sound>
</title>
<title name="name">
<comments>text here</comments>
<link>file.swf</link>
<image>images/imageName_sm.jpg</image>
<sound>soundfile.mp3</sound>
</title>
<title name="name">
<comments>text here</comments>
<link>file.swf</link>
<image>images/imageName_sm.jpg</image>
<sound>soundfile.mp3</sound>
</title>
<title name="name">
<comments>text here</comments>
<link>file.swf</link>
<image>images/imageName_sm.jpg</image>
<sound>soundfile.mp3</sound>
</title>
</data>
Sound Control With Pause Button As Well As Timeline Control
Hi there
I have a flash page, with a ambient track playing. I added a pause and play button. So you press the button then it stops, then you press it again then it plays...
So now i want to make it so that if you go to the 'WORK' page on the site, wich is on its own frame, and wich has different buttons linking to it, then i want the sound to switch off when i am on the work page as well.
So if the background ambient music plays, and you go to work then the sound switches off. Untill you switch it back on again
How is the best way for me to do that?
How To Control The Sound Volume On A Timeline Base Streaming Sound?
Hello everyone,
I have a MovieClip "Animation" with added sound as a Streaming. I have also created a Volume SiderBar which I would like to use to adjust the volume of the sound on my Flash.
The Volume SliderBar work fine and I need to some how assign the volume to the position (Value of) volume. I was wondering if someone can tell me how I can do this on a sound which is timeline based?
Thank you very much and have a great day,
Khoramdin
Sound Control Volume For Multiple Sound Objects?
I've got a file with several scenes.
Each scene has controls with different sound object defined on the first scene. There is a constant background sound object playing over all scenes. I need to control the volume of multiple sound objects playing simultaneously and setting each to different volumes from these scenes.
e.g
_root.bgmusic.setVolume(20);
_root.s001.setVolume(100);
can this be done? When I try, all sounds playing are set to the same volume.
Thanks heaps in Advance!
Sound Control Volume For Multiple Sound Objects?
I've got a file with several scenes.
Each scene has controls with different sound object defined on the first scene. There is a constant background sound object playing over all scenes. I need to control the volume of multiple sound objects playing simultaneously and setting each to different volumes from these scenes.
e.g
_root.bgmusic.setVolume(20);
_root.s001.setVolume(100);
can this be done? When I try, all sounds playing are set to the same volume.
Thanks heaps in Advance!
Sound Volume Control Using Streaming Sound In Timeline?
I am building a Flash 8 movie with animation that is synced to music in the timeline using streaming sound. At a few points I need the music to fade out and then play a video. When the video is done playing I need to come back into the timeline and have the music fade back up at the same point where it left off.
Is there a way to do this? turn down/up the volume of a streaming sound?
Sound Control Please
Hi
Can anyone tell me? Is it possible to stop the sound which has been over in first movie(swf)
And if I am loading second one to replace it. Then coming back to first movie, sound from first movie
should not play even though it has been loaded again.
1)Introduction movie has intro sound.
2)Subect movie
Both are loading on level0.
So when I load Intro movie I don't want the introduction sound to play again
Is it possible by any way putting variables somewhere in temp directory and control the movies.(just a thought)
Thanking you in advance.
Sound Control
Well short and simple. My script is this:
trackA = new Sound(this);
trackA.attachSound("trackA");
trackA.start(0,999)
trackA.setVolume(50);
now for sum reason if i have another script like this:
trackB = new Sound(this);
trackB.attachSound("trackB");
trackB.start(0,999)
trackB.setVolume(50);
if i try to fade track A out and fade B in, it will be like one is trying to control the other and will mess up. is there a way to make these independent of eachother?
Needs Serious Help With Sound Control....
Hi all,
I am not adept at actionscript at all and am hoping you flash gurus can help me with my sound problem...
I have created a flash button to control the music, I have created a movie clip that names the instance (where the movie clip with the music is)
my script is this:
Sound object script: (on the stage)
sounda = new Sound ();
sounda.attachSound(_root.sound1);
then my movie clip with the sound inside has the instance name of sound1
I progammed the off button like this: (works fine)
on (release) {
sound1.stop();
}
I put another button on the stage to restart the music and tried to script it the same as above except with:
sound1.start();
It does not turn the music back on, so what am I doing wrong?? I hope someone can help me with this, I have been searching through my many flash books but have been unable to find the answer.
Thanks so much,
Karla
Control Sound?
Hi, I realise that Flash 4 is not very good for sound management, but the problem I have is I have a presentation complete with sound the music does not need to cue to the presentation, so I have the sound file load into a separate swf (event as stream causes frame dropout) to gain some control, however when the track finishes what I want to do is to load a looping sound file also loaded into a separate swf. It appears to work apart from a time lag
Any ideas as this has taken more than a lifetime to work on!!!
Sound Control
Hi I have a problem with sound that keeps reacuring and after a while it sometimes ends up working and I don't know why? right now it doesn't. I'm trying to start to loops at the exact same time. Keeping the volume of one of them at 0 so that I can kick it in later.... here's what I got:
---------------
loop1 = new Sound(loop1);
loop2 = new Sound(loop2);
loop1.attachSound("Loop1");
loop2.attachSound("Loop2");
loop1.setVolume(100);
loop2.setVolume(0);
loop1.start(0, 999 );
loop2.start(0, 999 );
-----------------
And for some reason the sound is 0 for both..it's like as if they were the same object. I linked them as Loop1 and Loop2. Does Anyone know why this could happen???? Please help
Sound Control
I have a movie with just control buttons for an mp.3 file.
I'd like to be able to jump back and forth with the rewind or forward button to specific keyframes ( for example every 10 frames ) so, every time I push one of these buttons, it recognizes the nearest keyframe and starts again from there.
What's the script to do this?
Thanks for any help.
Stefano
Sound Control
I can control play,stop from soundfile, but without using Linkage.But using scripting ??
Sound Control?
I need little help.
I want to create movie with sound in that way that flash will "call" external MP3 file and play in specify scene and frame. For example: Scene 1, from frame 28 to frame 90 to play sound1.mp3, Scene 2 from frame 2 to frame 98 to play sound2.mp3. All mp3s are external files.
Best regards
Sound Control
hi everybobie...
does anyone noe how to turn on and off music by jus clickin on a button? and oso how to adjust the volume of the music?
thanks!
Sound Control
On _root I created a sound object:
ozadje = new Sound();
ozadje.attachSound("ozadje");
I know how to control this object from the main timeline, but I can't control it from some library instance...
I tried
_root.ozadje.start()
but it doesn't work.
What should I do?
thx
Sound Control
sound control
I am trying to fade out a sound with actionscript, without interaction from the viewer. I was going to set the volume a little lower every few frames across the timeline as a last resort, but was wondering if there was a better way to do this.
Thanks for ant time and or input, I appreciate the hell out of it...
take it easy,
g
Sound Control
I have a swf that is basically a sound (a speech of a conference), in mp3 16000Hz, mono 48kbps.
What I need is to control the play, stop, pause, rewind, foward, etc of that sound (the movie).
I´m not very experienced with action scripting son I need some help.
Thanks a lot.
Sound Control?
Hey Board! I have a quick question regarding sound control in Flash 5.
I have a soundtrak i need my movie to play on load... which i want to be able to turn off and turn on again from buttons on the main timeline. I have used the Linkage properties and newsound.attach/stop/start to control the sound as i need it to...
all seems well and fair up to this point. heres the problem: my sound will only play once without looping. now if i drag the sound onto the stage and remove my newsound.start and give the instance of my sound 500 loops. it works fine until I stop it and hit audio play (then it only plays once). My main timeline is 2 frames long (with the first being empty for my loader) and a stop action on the second frame.
QUESTION: is there a way to code something similar to a newsound.loop(500) for example???? so it will loop when its called to play and stop when its called to stop.
Thanks a bunch. Muchly appreciated.
~geoff
Sound Control
I created a movie (audio.swf) that uses sound files with a simple play and stop button. When I test this movie, it works perfectly. When I call this movie clip from the main movie of my project (main.swf) the sound clips do not play.
I am loading audio.swf on level 1 from the main movie. I am assuming that is where the confusion is taking place. Do I need to specify the path of the sound clip or something? I have tried a few different things and nothing seems to work.
Thanks for any help you can give.
be nice.
bephf
Sound Control
I created a movie (audio.swf) that uses sound files with a simple play and stop button. When I test this movie, it works perfectly. When I call this movie clip from the main movie of my project (main.swf) the sound clips do not play.
I am loading audio.swf on level 1 from the main movie. I am assuming that is where the confusion is taking place. Do I need to specify the path of the sound clip or something? I have tried a few different things and nothing seems to work.
this is the code i have attached to the play button:
on (press) {
if (playing != true) {
firstSound.start(0, 999);
playing = true;
}
}
firstSound is defined in audio.swf and linked in the library.
Thanks for any help you can give.
be nice.
bephf
Sound Control Help
ok, I have window with two arrow buttons to change songs and a dynamic text field to display the song name in a movie loaded on _level3 I have 3 different songs to choose from right now. The songs themselves are loaded on level) with the main movie in nested within movieClips to trigger a random song playing on load
Sound Control
I have managed to make a player using simple actionscript to fade between two songs. (still bit of a newbe though) ;-)
It's probably not the best way to do it, but at least it works...
but there's still one thing I have problems with.
I can't make the songs start playing right before they fade in.
If you listen to the example the songs keep playing even when they aren't used. How do you prevent that?
Similarly if I were to use the fade system in a animation, how would I script it so the songs would start playing only when they were needed, and not from the start?
Here's what I have so far:
http://www.stratyon.com/flash/shakira1.swf
http://www.stratyon.com/flash/shakira1.fla
(The sounds aren't included in the .fla or it would be 9Mb... Just add any
two sounds as event to the first frame of the sound1 and sound2 movie clips)
~Stratyon
Sound Control In MX?
Hi all,
I have a problem on my plate that I havent gotten underway yet. I need to create animations that are roughly synced with a sound file. The animation has a pause and play feature.
In my preliminary tests flash didnt stop the sound when the pause button was pushed. I cant use stopAllSounds because the play feature needs to start the sound from the point at which it was stopped. Everything with the pause/play buttons was set up correctly.
My question is...will I be able to control the playback of the sound on a timeline like i would be able to if it were a regular flash MC or say...an embedded quicktime movie.
Or...
Do I need to set the sounds up as objects and control the sound with script.
It seems like the first should work, but so far it doesnt.
Any help would be much appreciated.
-P.
Help With Sound Control
I have more than 1 swf movie and i'm controlling the transitions between them using unload(the current movie) and loadmovie(the movie i want to show next) so far so good, the problem is that i'm using sounds in some symbols of a movie that play well the first time and if i change to the next swf and them return to the previous one using the method i previous explain the sounds don't work anymore, although the animations from those symbols still work.
i'm playing the sounds this way:
on (press) {
stopAllSounds();
som =new Sound()
som.loadSound("Fala_Mascote_2_Pulmoes_v2.mp3");
som.start();
}
I'm using flash MX
Can anyone help me? I really be thankfull...
Help With Sound Control
hi i made, a external swf which i load into my main swf.
within the external one i have used attachsound to attach my tune and i also have play stop and volume control this all works fine.
then i tried to place preloader on this but it didnt work as the sound was loading before the preloader.
if i dont use attach sound and just place this sound in a frame will i still be able to control volume and on off buttons.
is there an easy way too do this??
thanks
brian
Sound Control
Ok what i have done is made a flash movie with looping background
music and what i want to do is make a button to turn off
the background music and play another song but not
looping the other song just every time you click on the
play button it start over.
i hope that makes since
please help
thx in advance
XxGraphxX
Sound Control
I am building a Flash production that will be presented on a CD.
A flash movie loads a second Flash movie that has a Quicktime movie with a sound track.
After the second movie plays, it loads back to the first Flash movie.
Problem is the QuickTime sound track from the second Flash movie keeps playing.
Can anyone tell me the required ActionScripting necessary to have the QuickTime sound track not continue playing?
Flash MX used.
Sound Control
I've got a file with several scenes. Each scene has controls different sound object defined on the first scene. There is a constant background sound object playing over all scenes. I need to control the volume of multiple sound objects playing simultaneously and setting each to different volumes from these scenes.
e.g
_root.bgmusic.setVolume(20);
_root.s001.setVolume(100);
can this be done? When I try, all sounds playing are set to the same volume.
Thanks,
Sound Control?
I've got a file with several scenes. Each scene has controls different sound object defined on the first scene. There is a constant background sound object playing over all scenes. I need to control the volume of multiple sound objects playing simultaneously and setting each to different volumes from these scenes.
e.g
_root.bgmusic.setVolume(20);
_root.s001.setVolume(100);
can this be done? When I try, all sounds playing are set to the same volume.
Thanks,
Sound Control
I'm going crazy!!!!!
I forgot how to control a sound that is contained in a movie that was loaded to a target object in the timeline using "load movie".
Here's my goal:
I have several external MC's that can be loaded as "Background Themes" which contain graphics and sound. The viewer can select each of these via a menu. The external MC is then loaded to a target object on the timeline. I also want the viewer to be able to turn the sound On and Off of the selected MC from the same menu.
The menu is of the "Drop Down/Pop-Up" type which is a MC contained in the Root. I can select the different MC fine with this menu but I just can't get the type of control I want for their sounds. (ON/OFF)
How do I code this to make it possible?
TIA
Sound Control
I already no how to attach a sound loop from the gallery using:
Code:
mySound = new Sound();
mySound.attachSound("SOUNDLOOP");
mySound.start("", 9999);
But what i want to do is have two buttons one for stop and one for play BUT i dont want them to actualy stop the music.
What i want to do is have it so when u hit stop it takes the volume down to 0 and then when u hit play it takes it back up to 100 so its like the loop fading in and out with a contant stream.
Any ideas on this ??
Thanks, Mental
Sound Control
Hi,
I just finished playing with one of the tutorials:
Volume & Pan Slide Controls
Author: Joe Jabon
http://www.flashkit.com/tutorials/Au...-721/index.php
it works great, but....
how do I set the start volume to 50% as it always starts at 100%
I cant seam to find anywhere to modify the sound.
HELP!!!
Thanx in advance
|