Actionscript 3 :: Monitor / Change System Audio Volume In Adobe AIR?

Nov 9, 2011

I am making a game in AS3 / Adobe AIR that requires the user to react to certain sounds. Is there a way to inform the user up front if the system volume is muted? Moreover, is there a method to change the volume? If not, does an external cross-platform application exist that lets me monitor the volume and that I can call from Adobe AIR?

View 1 Replies


Similar Posts:


Flash :: Volume Slider - Volume Doesn't Change Until Mouse Over?

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

ActionScript 2.0 :: Volume Slides But No Volume Change?

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

Actionscript 3 :: Disable System Volume Reduce In Flash

Dec 17, 2010

I have a flash chat application and when app create new conversation system reduce volume of incoming sound stream at 80%(and any other sounds). How can i disable volume reduce from flash? Here is some additional information Problem with sound quality.i think only win7 has that problem because of URL...

View 1 Replies

IDE :: Monitor Change Of Movie Clip?

Apr 13, 2010

I have a movie clip to display a clock and a datagrid for showing my schedule. I want my flash to alarm with sound when the time from the clock match one time on the schedule. Here is my actionscript:

Code:
clock_mc.onEnterFrame = function() {
if (_root.timer[i]==_root.clock_mc.clock_txt.text.substr(0,5)) {
alertSound = new Sound(alertSoundMc);

[Code]....

As you can see, I use onEnterFrame to listen and check matching between time on clock and schedule but it will check all the time and when it alarmed it produced sound all the time while the time is matched. I would like my flash to alarm only one or few times.

View 3 Replies

ActionScript 2.0 :: Monitor Change In TextField?

Apr 15, 2010

I have create a clock which displaying in TextField named clock_txt. I want flash to do some thing when one more minute is added. Can I monitor this change and how?

View 12 Replies

Flex :: Datetime - Monitor The Date For A Change

Jul 9, 2009

In Flex/ActionScript 3, is there a better way to monitor the date/time to determine if the date has changed to the next day by creating a timer that dispatches every minute?

View 1 Replies

Actionscript 3 :: Monitor Change Of A Component's Displaylist?

Mar 25, 2011

I'm working on a drag-drop solution, and acting when a item is dropped on the current target (let's say an "intelligent chess-board") is a breeze, as the board fires DragEvents when items are hovering over on dropped on the it.

What I'm looking for is a way to make the board act when an item is dragged OFF the itself. Of course - when the item is dropped somewhere else, I could fire an event there and tell the board that change has been done. But this is what I want to avoid.

I wonder if there is some way to monitor a change in the displaylist of the "board", so it fires an event when a child/element is removed from "outside"?

View 1 Replies

ActionScript 2.0 :: Control Volume Of ALL Audio?

May 10, 2006

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.

View 1 Replies

ActionScript 2.0 :: Keep The Volume As It Is Once The Audio Loops Again?

Jan 14, 2009

Im able to stream audio with the following code:

Code:
sonido = new Sound();
sonido.loadSound("images/warp.mp3", true);
sonido.onSoundComplete = function() {
sonido.start();
sonido.setVolume(50);
}

I use this code to disable the audio file:

Code:
sonido.setVolume(0);
}
As soon as the audio file repeats, the volume goes up again.I need to know if I can keep the volume as it is once the audio loops again.

View 2 Replies

ActionScript 2.0 :: Change Screen Size To Fit Monitor Window?

Jul 26, 2009

Monitors are different sizes so does a flash player change to fit

i changed this as i have no replies is this not this would be common process to change, the size of the screen to fit different size browsers.

View 0 Replies

Html :: Swf Adaptative Resolution, Change Depending User's Monitor?

Aug 22, 2011

Is it posible to make a flash site, which will change the size when the vistors resolution is diferent? Practicly, every visitor will see the same size of the site, even if he has 800x600 or 1280x1024??Maybe making html go fullscreen but make the swf occupy only 80% of the screen, so it always have the same proportion to the users monitors.Do you have any example?

<center>
<table border="0">
<tr>

[code].....

View 1 Replies

Flex :: Algorithms Use For Audio Volume Level?

Jul 22, 2009

Let's say I have a slider that can go between 0 and 1.The SoundTransform.volume also ranges between 0 (silent) and 1 (full volume),but if I use a linear function,let's say SoundTransform. volume = slider.volume, the result is rather not pleasing.I really haven't studied the human ear,but I overheard once that human perception is logarithmic, or something similar. What algorithms should I use for setting the SoundTransform.volume?

View 7 Replies

Flex :: Control The Audio Volume Of A Video?

Sep 9, 2009

i have something like this

private var video:Video;
...
private function init():void {

[Code]....

which property should i change or bind a slider to in order to be able to change the sound volume ?

View 2 Replies

Actionscript 3 :: Flash Audio Player Volume Setting?

Sep 18, 2011

i am creating a audio flash player and i want to set the volume of the sound to 0 and then again to 60. Means i want to toggle between these values on a single button click.

View 1 Replies

Actionscript 2.0 :: Controlling Volume On External Audio Clip

Jan 26, 2010

I've designed a website for a client and it's completed but she's complaining that the music on the website is too loud. I made a button so you can turn the sound on and off, but i have no clue how to make a volume button for an external audio clip and i haven't found a single tutorial on the internet that can help me with this specific issue. Can someone help me with this and give me a step by step instruction, including any code i need.

View 1 Replies

Actionscript 3 :: Does The Value Of Stage.stageWidth Change As Per The Screen-resolution, Monitor-size, Browser Etc

Mar 12, 2012

Does the value of Stage.stageWidth or Stage.stageHeight change as per the screen-resolution, monitor-size, browser etc ?

View 2 Replies

Flash :: Audio / Video Element Control Volume Programmatically?

Nov 10, 2009

Flash has an API to control the volume for a Sound object. Can volume be controlled like this currently or is there support planned for <audio> or <video> html5 elements?

View 2 Replies

ActionScript 2.0 :: Volume Slider Won't Work Since Changed Audio To Streaming?

Jun 20, 2010

it worked fine when i had the audio within the swf.slider:

slider_1.onPress = function(){
this.startDrag(true, groove_1._x -8, groove_1._y, groove_1._x -78, groove_1._y);
}
slider_1.onRelease = function(){

[code]....

i thought that in this method i had named the sound object foffMusic (streaming the file ftomm.mp3). the sound plays fine but ive gone through alot of trial and error and trawled every forum for the solution bu i can't get it to work!

View 3 Replies

ActionScript 2.0 :: Creating Volume Mute Button For Audio Player?

May 2, 2008

I'm creating a mute button for an audio player that I pieced together, and it seems to be working alright except when I advance to a new track. If the volume is NOT muted and I click a new track it's fine, but if the volume is muted (i.e. at "0") and click a new track it remains at 0 and won't un-mute when I click the button.. though if I click the button to un-mute it and then select a new track it's fine, so I think there's something in my playSong() function that's interfering, I just can't tell what it is.

Code:
stop();
Player Variables
volume = 100;
current_song = 1;
[Code] .....

View 1 Replies

ActionScript 1/2 :: AS2 Independent Volume Control Of Sound Object And Streaming Audio

Mar 8, 2010

I've got a presentation that features an audio loop for background music and streaming audio on the timeline for the voice over.When I try to lower the volume of the background music (sound object), it also effects the voice over (streaming).I'm a total novice, so try to use laymen's terms.[code]And this is on the Frame that contains the movieclip with the voice over.I'm trying to fade the background music ONLY:[code]

View 10 Replies

ActionScript 2.0 :: Get The Levels Of Volume Of Multiple Sound Frequencys From An Audio File?

Jan 9, 2005

How can I, in Flash, get the levels of volume (peak levels) of multiple sound frequencys from an audio file, so that flash would recognize them?

View 1 Replies

ActionScript 2.0 :: Use Video Component Control To Set Volume For External Audio Clips

Mar 10, 2009

hope i'm explaining this the right way. i'm using the flash flvplayback component to play a video. i've stripped the audio from the flv and am playing it, along with another audio clip, on the timeline at the same time. volume has been set for both clips, but i need to allow people to adjust the volume from the volumeBar that exists inside the video player. it's built in as2.

View 1 Replies

Flex :: Get Current Operating System In Adobe Air?

Jun 30, 2009

I'm making an App using Adobe Flex/Air. I was wondering if there was a way to get the Operating System the Air app is running on?

View 3 Replies

Actionscript 3 :: Adobe AIR System-wide Storage

Jun 30, 2011

I'm working on an AIR app that will have a free basic version and a more advanced paid version that's unlocked with a license key. Ideally once a license key is entered I'd like it to unlock the application for all users of the computer. However, I haven't been able to find a suitable system-wide location for storing the license key file. All of the preconfigured locations in the File class (e.g. File.applicationStorageDirectory) are either user-specific or read-only.

Is there a standard system-wide location in AIR where I can store things like this? If not the file system, maybe shared objects, or SQLite, or the encrypted local store? Failing that, are there standard locations on each system (Windows, Mac, Linux) that I could hardcode that are guaranteed to be writable by all users? The last option is made more difficult by the lack of access to any environment variables.

If all else fails I guess I could just require the application to be unlocked per-user, but that doesn't sound like a recipe for happy customers ("What do you mean I have to buy it twice for my wife to use it? We only have one computer!"). (Okay, yes, it it's per-user I'll probably let one key unlock the app 3 or 4 times to be nice about it, but it's still less convenient for the user to activate multiple times).

View 1 Replies

Actionscript 3 :: Adobe AIR - Garbage Collection And System.gc()?

Oct 18, 2011

I'm building an Adobe AIR desktop app with Flash CS5 that makes a lot of use of bitmapdata, bytearrays and base64 strings. After a while the memory usage of the app doubles. Is it recommended to use system.gc() to free memory at that point or is that bad practice?

View 2 Replies

Media Server :: Audio Distortion - Running FMS 4.5 On A Linux System With 4GB Of RAM?

Jan 3, 2012

I'm running FMS 4.5 on a Linux system with 4GB of RAM.Whenever I do a live broadcast from the server, the audio does a very strange thing. It sounds, ever so slightly, like an old record player where someone is occasionally (4-5 times a minute) putting a small amount of pressure on the speed of the record player and altering the pitch of the music. All my buffer settings are the default settings. It happens whether I'm doing CD quality audio or dialup 11025 kbps audio. I'm using MP3 for an audio format.

View 2 Replies

Javascript :: Controlling Left/right Audio Channel Volume In A Youtube Video Player?

Sep 4, 2011

I want to know if it is possible to use javascript, flash or flex to make a youtube video player that is capable of controlling left/right audio channel volume. For example, mute the left channel and play right channel audio on both left/right speakers.

View 1 Replies

ActionScript 3.0 :: Control The Volume Of Multiple Audio Tracks Embedded Within A Movie Clip?

Jun 9, 2010

What is the script to control the volume of multiple audio tracks embedded within a movie clip?

View 1 Replies

Flex :: Capturing System-level Keystrokes With Adobe AIR?

Jul 26, 2010

As the title suggests, is it possible to capture system-level keystrokes?

View 3 Replies







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