ActionScript 2.0 :: Make Volume Up And Down With Two Buttons?
Mar 7, 2012
I want to make a variable sound level. I want to be able to lower the sound with one button and make it louder with another button.
the buttons are name btnplus and btnmin. I thought using the current sound level and the change it, but the code i am using doesn't work.[code]....
View 4 Replies
Similar Posts:
Nov 22, 2009
Im have an flv playing on my stage. I want to make a mute button for the video that can instantly make the volume 0 or 100 depending on what it is.So i have tried using this code:
ActionScript Code:
m.onPress = function() {
[code]........However, it doesn't seem to work.
View 0 Replies
Jan 14, 2009
My site is nearly ready, but I still want to add two buttons: one to set the volume to a normal value; another one to set the volume to 0 (like a mute button). I don't have a background music, I just want these two buttons to make effect on several other buttons with "click" sounds attached.
I have my buttons ready, and tried using this code for the "no sound" button:
ActionScript Code:
on (release) {
set.volume(0);
}
[Code].....
View 3 Replies
May 12, 2009
I have to buttons that control the volume. They work fine just that I want to stop when the volume hit 100 and also when you go down to stop at 0. Right now it will go up and down then start the opposite way. I am not quite sure how to stop that(with a if statement).
[Code]...
View 1 Replies
Oct 8, 2010
I have an external video list (array) that is set up to load and play in an FLVPlayback component. The client wants individual audio control buttons: 1) Up volume 2) mute 3) Down volume. I have AS on each of the buttons but it's not controlling the volume of any of the videos. The only one that works is the mute or "stop all sounds." I'm unsure on how to go about getting what I want.
View 5 Replies
Oct 8, 2010
I have an external video list (array) that is set up to load and play in an FLVPlayback component. The client wants individual audio control buttons: 1) Up volume 2) mute 3) Down volume. I have AS on each of the buttons but it's not controlling the volume of any of the videos. The only one that works is the mute or "stop all sounds." I'm unsure on how to go about getting what I want.
View 9 Replies
Dec 17, 2010
I have a file with 12 roll over buttons that make a sound on roll over, but I'm unable to change the volume to lets say .5.
View 0 Replies
May 9, 2011
How to make the slider component into a volume control in ActionScript 3.0.
View 3 Replies
Oct 29, 2010
I'm doing a game. sounds are too hard. how i make volume control
View 1 Replies
Jan 7, 2011
Im trying to make a volume changer but im not succeding.
And the actions I have are:
var som_fundo:Sound=new Sound(this);
som_fundo.attachSound("som_fundo");
som_fundo.start();
[Code]....
View 1 Replies
Aug 19, 2011
For buttons like the MENU or BACK button you can just add a listener for KeyboardEvent and check if the event keyCode is Keyboard.BACK or Keyboard.MENU.However I don't see anything for knowing if the phone's volume buttons were pressed.Is there a way to listen for volume up and volume down keyUp/keyDown events in AIR (ActionScript 3)?
View 1 Replies
Nov 16, 2008
How I to go about making an ipod like volume control in AS3 ?
View 9 Replies
Jan 11, 2009
i want to create an mp3 player with volume ,frequency, bass, treble and speed knobs any pointers to any scripts that might help me would be great, but at the moment i am just trying to work out how to make a knob that turns.I assume i would use drag over and some kind of rotation function.
View 0 Replies
Mar 25, 2010
Explain the code, or point me to a good tutorial for making a volume slider for an FLV player?
View 6 Replies
Oct 6, 2009
does anyone have an example of a simple volume slider that controls the master volume of the entire swf?
View 1 Replies
Dec 16, 2009
I am working in a player and when am trying to make it fullscreen the scrubber and volume bar everything become too big in size.
View 1 Replies
Nov 21, 2009
I've created a small music player with a sliding volume control. I'm having trouble with the volume. Though it does control volume properly, if I set the initial volume to less than 100%, the volume always starts at 100% until I move my mouse over the player. At that point, the volume changes to whatever the initial volume is set to.Is this a flash bug, or am I missing something? Here is the affected code (code for other buttons/functions omitted for brevity):
var song_initvolume:Number = 100;
slider_1._x = groove_1._x + song_initvolume;
playSong(0,song_play);[code]....
I'd like to be able to set the volume at say 50%, but the above mentioned behavior happens each time.
View 2 Replies
Feb 1, 2010
I'm building a video player and am kinda stuck at the volume slider part. It's a YouTube style vertical slider, meaning if the slider is in the top position volume should be 100% and if the slider is dragged to the bottom position sound should be 0. Currently it's doing the opposite of what I want :(
Dragging the slider down will make the sound louder, while dragging up lowers it.
Here is my code below dealing with the volume slider.
[Code]....
The (-4) is an offset value so when you drag it all the way to turn it off, it's 0 and not 4. I need to reverse this somehow, so the traces above will swap... going down will make userVolume = 4 and going up will make it 30.
View 4 Replies
Apr 13, 2003
I have seven loops in total. I imported them into the library. i've put each of them in a seperate movie clip with the names loop1,loop2,.In those movie clips, the first (key)frame contains the action stop(); . The second frame is a keyframe too and from here on the sound starts. And of course they loop.Okay, now the buttons to control the movie (Prev, Stop, Play, Next) work fine, but let me explain the system i used. I used a var loopnumber and everytime you click Next or Prev, it '+'es 1 or '-'es 1. I also set a variable number_to_play = "_root.loop"+loopnumber, so you would get _root.loop--number--, where --number-- is 1,2,3,4,5,6 or 7. To actually play the sound, i used tellTarget(number_to_play) {gotoAndPlay(2)}.That's why i added stop(); to the first frame of those clips.how can i make a volume slider for those sounds inside my movie clips ? I've checked this forum already for questions like this but they don't use the system I use.
View 4 Replies
Apr 12, 2012
I've got a serious of games which in turn load off a main main swf.I have mute and unmute buttons on the main menu and the same buttons in each game.When I unload/load a game I want the volume to stay as it is so they player doesn't have to keep turning the volume off. AudioOff is the button shown when the volume is off and AudioOn is the button shown when the volume is on.The code I've got now keeps the volume on or off through the games but the buttons aren't showing up correct with this code..
if (SoundVolume.volume == 1)
{
AudioOn.visible = false;[code].....
View 2 Replies
Sep 10, 2011
I converted the slider bar and slider button to buttons. Then, I made the slider button into a movie clip.
Here is the code I placed while slider button was a button:
Code:
on (press) {
startDrag(this, false, left, top, right, bottom);
}
[Code]....
It seems right to me but I don't know. The movie button slides down the slider bar but it just doesn't affect the volume. Going to try to attach my FLA to offer better insight. Just tried to upload it and no matter if it's FLA or zipped FLA, it says it failed.
View 1 Replies
Aug 7, 2009
I have a movie clip with 15 frames. Each frame has buttons on it (mc's)... I was going to put the actions on the main timeline/stage and navigate within the MC from the main timeline. Is that possible? I can get the buttons on the first frame of the MC to work, but I can't seem to figure out how to target/make the buttons on the other frames work? I was thinking I could identify the path of the MC with the frame labels, but that doesn't seem to work. like: _root.RMChanger.(frame label).buttonOnFrame = function
I have to move a text box in and out over the MC backgrounds on the main stage... which is why I was thinking to do it this way? I've been switching back and forth bwtween AS2.0 and 3.0
View 9 Replies
Mar 20, 2011
I'm trying to make a menu that has onRelease buttons on top of onRollover buttons (the onReleases are on a separate layer from the onRollovers). The onRelease buttons take the user to different urls, and the onRollover buttons are supposed to allow different parts of the menu to appear.
The onRelease buttons work fine, but I can't get the onRollover buttons to work consistently. Sometimes the onRollover buttons will correctly advance to a different frame, and sometimes they "stick" and do not advance. The script has no errors and I've tried changing the sizes of the onRollover buttons (in case they were too large and the cursor was hovering over more than 1 at the same time), changing the order of the code for the onRelease and onRollover commands (in case the onRollovers were being superseded by the onRelease commands), and countless variations of the layers and frames.
I'm sure that you'll want to see the script, but I don't think that pasting it all on this post would be reasonable? So I've put the .fla and the .swf on this page for reference: [URL]
View 6 Replies
Jan 27, 2009
i want to make a fade volume between songs to songs...this is the function i have made... what's wrong?
Code:
fade.onEnterFrame = function() {
new_volume = 0;[code].....
View 9 Replies
Apr 16, 2009
I have 4 buttons which i have to make them draggable. The problem is that i have 3 conditions
condition #1. Only 1 button/mclip is draggable in its axis [done].
condition #2 .The 4 button/mclip must be dragabble at the same time, that is, when i drag one, the others should drag at the same time in their own axis.
[Code]...
View 2 Replies
Dec 16, 2009
I am a new comer to flash and I have been teaching myself actionscript 2.0 and I am now trying to move to action script 3.0 this seems a dumb question but for the life of me i can't figure out how to make my buttons work.i am trying to have the user click at button that connects to a movie clips and plays the movie, the movie stops then goes to the next frame of animation.
View 1 Replies
Mar 15, 2009
How can I make my buttons (pic 1 and 2) more rounded ? (pic 3)
View 6 Replies
Jul 28, 2009
I've tried to make rollover buttons, following a bunch of tutorials. I'm a noob, but I'm sure I've done everything correctly!Basically, the compiler shouts at me, while, another .fla that I downloaded and tried to follow with tutorial works perfectly.
View 2 Replies
Sep 5, 2009
I'm new to this CS4 world and I can't make my buttons work...I'm trying to make a portfolio. I have a button created named "books". I created a new layer just to insert the AS of that button and to stop the movie clip...the button is inside that movieclip.
Here is what that layer contains:
[Code]...
EDIT I took off the ":void" part and the compiler doesnt show me any errors. But still it doesn't go to the "design" frame.
View 2 Replies
Jun 8, 2009
ok i'll try and explain this best i can, on my site i have a menu that takes up the whole of the content area.. the plan is that when the user clicks the menu button within a content page the menu would appear over the top however with a slightly transparent background so you can still see the last visible content page in the layer underneath.. i've got this to work however the buttons within the content page are still active.. is there a way i can make the menu layer 'solid' so the content below is only visible but not accessible?
View 5 Replies