I have an mp3 that when it loads it doesn't sound loud enough. I tried raising it with the following code, but it didn't work. I can raise the volume to 200% in VLC. How can I raise the volume to 200% in flash???
Code:
import flash.utils.*;
var audioURL:URLRequest = new URLRequest("Irving.mp3");
var exsound:Sound = new Sound(audioURL);
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.
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.
I have an app with a canvas which content changes dynamically. In my app there is a progressbar which I want to show while the canvas update is executed. Is there any event to call just before the update starts?
i have 12 buttons, and i wish to raise counter number for 1 when i click on it. When i click on the same button second time i dont want to count. Then when i click on another button i want to raise the counter number for one. But the problem is when i click back again on the first button the first number shows, but i want that the counter counts to 12 successively, and not when i click on the same buton shows its "count" number. here is my code for 2 butons:
stop(); this.nevidni_vongola.onRelease = function(){ gotoAndPlay("dondola"); var count:Number = 0;
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].....
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.
I'm well & tired of the volume of crashes from Flash CS5. Some are more predictable, like now every time I try to import an FLV it's crashing, so I'll try repairing permissions, and rebooting the computer. Some are more random, like I'm moving something in the Library and it'll just crash out. It's really a terrible experience working in the Flash IDE. I love Actionscript 3, and the Flash Player seems pretty stable. But my God, what do you do when Flash starts bugging out?
i want to control sound in my movie clip by the button which i designed in flash. for ex.: my default sound is 100% on home button & when i click on contact(last button) the volume level goes to 20% same as in between buttons.i use this script to call the sound in flash
bgSound = new Sound(this); bgSound.attachSound("sound1"); bgSound.start(0,99);
now tell me what i put in buttons to manage sound level.
This is the code am using to create a mp3 player,everything is fine but the volume controls,not able to mute or increase the volume,kindly tell whats wrong in the code
I'm pretty new to AS3 (building my first site) so I hope this isn't too much of a newbie question.
I've got two commands which each work on their own in my mp3 player
channel = snd.play(pausePosition); starts the song from wherever it's paused channel = snd.play(0, 1, sTransform); starts the song at the volume set by the volume knob.
How do I put both the pausePosition and sTransform bits on to the same snd.play command??
Is it possible for flash to access the windows xp system volume controls?I assume flash can't by it's self, but can flash be used to trigger a function in another language that can access and alter the system volume? At least detect if the audio is muted on the system and give the option to turn it on.The flash movie would be embedded in a browser. The content of the movie has audio that is required. We want the user to be able to control the system volume from within the flash movie.
I'm working on a project for my Flash class that seems to be above everyone's heads. What I'm trying to do is figure out how to take sound from a microphone, register the level/volume of that sound in flash. So if the level is 25 then a movieclip and a different sound is played back. Problem is I don't know what coding I can use to register a microphone and take whatever sound is put into the microphone and display a movieclip.
I have a flash movie playing some music, but the slider controlling the volume has become unresponsive. I have no idea why. msg me if you want the see the actionscript.
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...
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.
I am working in Flash Slide Presentation mode. I have a started a sound file playing on the "master" slide and I want it to play throughout my entire presentation. However, on a couple of slides, I want to play some short voice clips. How can I "turn down the volume" a bit on the main sound file so as to hear the short voice clips? And then turn it back up when the voice clip ends?
I am trying to fade out some audio, using the code below, but I keep getting this error - ReferenceError: Error #1069: Property volume not found on flash.media.Sound and there is no default value. at gs::TweenLite/initTweenVals() at gs::TweenMax/initTweenVals()
public function AudioStream(url, loop:Boolean = false) { _sound = new Sound(); var req:URLRequest = new URLRequest(url); var context:SoundLoaderContext = new SoundLoaderContext(8000, true); _sound.load(req, context);
I have this site I'm doing in Flash with an embedded video.The site has background music that is loading automatically, but when the embedded movie loads, the volume on that is mixed in witht he sites music.If you mute the sites background music, it mutes the video sound as well. Make sense?How can I seperate them out or make the sites background music not load on that particular page.
The video player (aka moogaloop) on vimeo.com has a neat visual effect for the audio volume slider. There are a number of sound bars that rise and fall when the mouse hovers over them. The volume level is shown by a blue filled area under the bars with pixel precision.
how can the multiple masks (bars) be used to cover a single blue rectangle?
Update: Masks in flash: "the mask item acts as a window that reveals the area of linked layers beneath it [...] A mask layer can contain only one mask item". How do I get multiple masks to clip over one layer?
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?
I want to add tracking to our Flash-based media player so that we can provide analytics that show what sections of videos are being watched (at the moment, we just register a view when a video starts playing)
For example, if a viewer watches the first 30 seconds of a video and then clicks away to something else, we want the data to reflect that. Likewise, if someone watches the first 10 seconds, then scrubs the timeline to the last minute of the video and watches that, we want to register viewing on the parts watched and not the middle section.
My first thought was to collect up the viewing data in the player and send it all to the server at the end of a viewing session. Unfortunately, Flash does not seem to have an event that you can hook into when a viewer clicks away from the page the movie is on (probably a good thing - it would be open to abuse)
So, it looks like we're going to have to make regular requests to the server as the video is playing. This is obviously going to lead to a high volume of requests when there are large numbers of simultaneous viewers.
The simple approach of dumping all these 'heartbeat' events from clients to a database feels like it will quickly become unmanageable so I'm wondering whether I should be taking an approach where viewing sessions are cached in memory and flushed to database when they become inactive (based on a timeout). That way, the data could be stored as time spans rather than individual heartbeats.