Flash :: Setting Volume Does Not Work On One Of Computers?
May 23, 2011I am using this code to set the volume of my Flash video.
public function setVolume(loudness:Number):void
{
// soundControl is a SoundTransform object
[code].....
I am using this code to set the volume of my Flash video.
public function setVolume(loudness:Number):void
{
// soundControl is a SoundTransform object
[code].....
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 RepliesI'm having problems with the flash buttons on the flash website i made for a client. or some reason the buttons in the top and bottom menu work on some people's computers but on some they don't. I don't know what to do, i had this code for all the buttons,
on (release) {
getURL("http://legaldepartment.ca/","_self");
}
and they worked on my computer but on others the buttons didn't work at all so i added this code to each button also
on(press) {
_root.getURL("http://legaldepartment.ca/","self");
}
and they still work on my computer and some other people's computers but still some they don't work on some people's computers.
I have three frames in my main timeline. The first contains the preloader, the second is the entrance animation and the third is a menu loop. In the second frame (entrance animation), I've place this script on the main timeline in an "actions" layer:
[Code]...
Every piece of info I can find about how to set the volume of a sound in Flash with setVolume, mentions that you need to reference the movie clip where the sound is stored....to target just that sound, and not the whole timeline.Is there a relatively easy way to set the volume of different sounds that are loaded into the same movie clip? I'm loading my sounds with AS on the first frame of my movie, and would prefer not to have to create separate movie clips for each sound..
View 2 RepliesIs it at all possible to set the volume of a sound equal to a score.Say i have a sound called "beep1", could i set the colume of that sound to something called "score" using a code like this..._root.Sound.beep1.setVolume(_root.score) or something?
View 14 RepliesI am trying to make a volume control in my flash movie with actionscript 2.0 Here is my code:
[Code]....
but the problem is the first time I lanch my movie it comes in a good volume.As soon as I hit the up or down button to lower or increase the volume firts the volume goes down a lot and then starts to increase or decrease its volume.
Mac OSX 10.4.11 - CS4. I have a supplied video.flv that I have in Flash with a skin control and exported as video.swf and inserted into a GoLive site, all is well apart from the excessive sound. The volume controller is defaulted to max and I would like to reduce the default volume by about 50%. Is this possible to do in Flash before exporting the video.swf.
View 10 RepliesHow to insert the volume control for this player and set a default value.
//Declaracion de variablesvar duracion:Number=10000000000000;
var flv:String='../../../'+unescape(_root.flvFile);
//trace(flv);//var flv='video.flv';//aviso.text=flv;
//trace(flv);
var conexion:NetConnection = new NetConnection();
[Code].....
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 am trying to use the Flash + Set the browser to a desktop agent on the Galaxy Tab.
mWebview.getSettings().setUserAgentString("Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.11) Gecko/20101019 Firefox/3.6.11");
mWebview.getSettings().setPluginsEnabled(true);
So the issues is, when the UserAgentString param is enabled, flash player wont load as many websites like Iplayer don't recognise the browser in the WebView.
This may be a bug in the Samsung browser. Anyone have any desktop agents that the WebView will accept whilst enabling flash?
So i am working on a widget and I cant seem to get the volume and balance sliders to work right. Can someone take a look at my code and see if you know what going wrong. The web address of the widget is [URL] . The only slider that works is the first one for now. Till i figure out why this one wont work. and the action script is below.
View 6 RepliesI have an issue with an Mp3 player that I've built. The volume controls work fine in the original mp3 swf, but then when I load it into a movieclip in a different movieclip, it no longer works. I've tried the lockroot function, defining the sound class to "this". See the last function for the vol controls. Let me know if it's more convenient to get the original .flas, I can give a link to the source.
see my code below:
this._lockroot = true;
function getSound(url:String) {sound.stop();delete sound;sound = new Sound(this);sound.onLoad = function(success:Boolean) {
[Code]....
I built this mp3 player from a tutorial.But the volume control doesn't work, and suddenly the player doesn't want to play the music.[code]
View 1 Repliesit 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!
I have made small site:[URL] But I can manage to work my on/oof music button with my slider. Can somebody give me the most simple codes for this? I have already song inside the project, so it doesn't need to be loaded from the web. I have try everything, but nothing. I manage to turn on/off music, but to slide it... noup...
View 2 Repliesi have a orgin server and 2 edge servers and a load balancer
first off im confused in each edge server i set them to be remote, rtmp and changed the routeentry to <RouteEntry>*:*;96.44.***.***:1935</RouteEntry> on both servers
orgin server is just local
what my question is im streaming to orgin and its getting sent to 1 edge and other edge is doing nothing no traffic the stream i set it this way url:
'rtmp://173.254.***.***/live/live_test',
which is the 1 edge thats working if i setup another channel pointing to the other edge server ip adresss it doesnt work.. what am i doing wrong isnt all this supposed to be load balanced or am i missing steps...or did i do it wrong on the flash player config.
I have an array that I have set up that would go with a series of movie clips, and I am trying to combine them with functions that upload xml pictures--firstImage(), secondImage(), and so forth.Here is the array that I have:
ActionScript Code:
var currentButtonId:Number = 0;
var buttons:Array = [btn1, btn2, btn3, btn4, btn5, btn6];
function buttonRelease() {
[code]...
It enables and disables the movieclips depending on which one is clicked.
I want to make the xml functions (firstImage(),secondImage()...) go with the buttons in sequence. So once btn1 gets pressed the firstImage() xml function gets called.
I'm not sure what I'm doing wrong. I am not very familiar with flash, in fact the only reason I used it was to add a player to my movie. I saved the skin and what I think is the movie file .swf on my desktop in the same file and it plays just fine. As soon as I try to play it on another computer the icon looks different (doesn't have the S on it anymore) and just looks like a foreign file. I am trying to get this to play asap if you could help to tell me if I'm missing a file that goes with it or something. When I hover over the two files they say Shockwave flash object.
View 1 RepliesI made a program using Flash Professional 10 and AS3, i published it. It all compiles and works fine on my coding computer. But when I try to view the program on other computers, via internet, or physically putting the files on the computer, it only displays as 5 dots counting up, over and over.
View 5 RepliesI am trying to play flash video on one computer and get a flash program (on another computer) to know what content is being played, so it can respond appropriately with related content.Has anyone got ideas on the best way to achieve this?I have tried using socket connections through a Java server with a policy file request, but after receiving delivery of the policy file as text over the socket, Flash won't reconnect to talk to the server. I can't figure out how to enable policy file logging either.
View 1 RepliesWhy is it that my movieclip is unclickable after i set the z property? rollovers and all work fine. I'm setting the z of the parent movieclip.
View 1 RepliesWhy wont AS3 work with any of the combo boxes text boxes button etc? swithcing the publsih settings from AS2 to 3how can i get these to work? and why are they still avalible formthe components menu when you in AS 3 publish settings if they dont work?
View 1 RepliesI am using Flash CS4 on Windows XP x64 and onion skinning does not work when publish setting are set to Actionscript 3. Is there a workaround for this or am I just SOL?
View 2 RepliesI've got a problem with following example code in flex:
Test.mxml:
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" [code]..........
When I start the application and press Tab to cycle through controls, the focus jumps to the first text box, then to the first radio button of the first TestComponent, and then directly to the last textbox missing the second and the third TestComponents.
UPD: Explicitely setting tabIndex does not work either:
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"[code]...............
I have a scroll bar ( fl.controls.UIScrollBar ), which i create dynamically in a class, and add it to the stage.
[Code]...
does anyone have an example of a simple volume slider that controls the master volume of the entire swf?
View 1 Repliesthere is an app that has been finished (i hope) and it seems to work ok, this flash loads about 1Mb of flash app, then loads some stuff from the server via xml, generated through a script. as i said, it works ok in some computers, but somebody tells me that in other devices, the flash loads fine, but it gets stuck while loading from the server (it wont go further than the splash theat says 'loading contents'). Since is flash, i assume it is computer independent (it is not like the html, where each device may chow it different according to browser and setup; since is flash it will show and load just as the flash would load everywhere else); but as it seems it gets stuck right when loading the xml, after the flash has loaded (the flash loads the xml from the server), what may be causing this? is there any 'flash option' that may be interfering the flash from loading the xml content?
View 6 RepliesI have a videochat app (as3) developed in CS5, when I test the movie (ctrl+enter) it compiles and shows no errors, then I upload the file to the server and does not work at all. the xml paths are perfect, in fact when I go to the page on the machine with FLash CS5 it loads fine, but from a friend's computer does not work at all.
View 2 Replies