ActionScript 2.0 :: Flash Symbols - Cannot Get Global Sound Volume From Controller

May 12, 2010

I inherited a flash application at work that is basically a bunch of symbols with actionscript inside each of them. There is also an external actionscript file that serves as the application controller, with much of the application logic in various frames of Scene 1. Some of the symbols are supposed to play a sound file on mouse over, which they do just fine, but when I try to get the global sound volume from the controller:

E.g.
ActionScript Code:
var bVolume:Number = controller.getGlobalVolume();

It doesn't work because it doesn't recognize the controller object. This is strange because the controller is called all throughout the project, but it is not seen within symbols.

View 1 Replies


Similar Posts:


Flash :: Reverse Sound Volume Math For Volume Slider?

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

ActionScript 3.0 :: Volume Controller And External SWF

Jul 8, 2009

The first is that when loading an external swf in my main SWF I get this in the output window:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at audio_fla::list_1/frame1()
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at flash.display::MovieClip()
at audio_fla::MainTimeline()
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at audio_fla::MainTimeline/frame1()

But it still works. Its an mp3 player. The other problem is that the loaded SWF has a volume controller. When I test the external SWF by itself it works fine. When I load it on my main SWF when I start to drag the handle on my volume slider and MOUSE_UP outside the handle it still keep dragging the handle.

The code of my main SWF is:
import caurina.transitions.*;
var _currentCategory:String = "";
var percent:String = "";
var loader = new Loader();
loader.name="videoLoader";
[Code] .....

View 1 Replies

Sliding Volume Controller For Main Timeline?

Apr 29, 2009

I am trying to change the volume on my sound files which are located on the main timeline.(sync = streaming) I can use a allSound.setVolume(#) to control the sound level across the timeline.

[Code]....

View 5 Replies

ActionScript 2.0 :: Volume Controller Doesnt Start Music?

Dec 6, 2010

I have a volume controller with a simple play and stop button. I want music to start on its on when site is loaded, but music deosnt start unless play is pressed and volume is turned up.Thia is the script I have, how do I change it simply to make to song start automatically when site loads????

onClipEvent (load) {
mySound = new Sound();
mySound.loadSound("nachomp3.mp3", false);

[code].....

View 2 Replies

Media Server :: Video Chat - Volume Controller Functionality Disabled

Apr 6, 2010

I am making a video chat application. When I start the application it running fine but after some time like 30-45 it creating some problem, like I have a volume controller in it, after some time when I use that volume controller for setting volume it is not doing changes in volume. But at initial stage all the functionality worked fine.

View 1 Replies

ActionScript 2.0 :: Use A Sound Controller In A Flash Movie To Play Music?

Apr 9, 2004

I am trying to use a sound controller in a flash movie to play music and I am using loadMovieNum to load the sound controller movie at a particular point in the main timeline. I get the sound player to load up fine and the sound loads fine when a user presses play, but about a minute through the song the sound starts to play again, overlapping the song that is already playing.

This happens with no user interaction...it just takes about a minute. I also noticed that it is only when the sound player is within one of the movies. It doesnt happen when the sound player is all by itself. Is there something in my movie that is making it loop over?

View 2 Replies

ActionScript 2.0 :: Set Global Volume To Zero?

Mar 16, 2006

i have a button, and i need to to see the volume to zero when this button is pressed, and when this button is pressed again, the volume goes back to 100

i have different pieces of audio all around my flash presentation so i just need a global volume that sets my volume to 0 and also to a 100 when pressing the button.

[URL]

View 5 Replies

ActionScript 2.0 :: Best Way To Load Sound Controller?

Jan 13, 2004

I have an external sound controller that plays 10 tracks. The current way I load the sound controller is with LoadMovie and I do it on the last frame of the movie that is my actual website. However, this slows my whole site down significantly, because when I press stop on the sound controller...everything is at the speed I want it to go. What is the best way to go about preventing this slow down?

View 2 Replies

ActionScript 2.0 :: Way To Load Sound Controller?

Jan 13, 2004

I have an external sound controller that plays 10 tracks. The current way I load the sound controller is with LoadMovie and I do it on the last frame of the movie that is my actual website. However, this slows my whole site down significantly, because when I press stop on the sound controller...everything is at the speed I want it to go.

View 2 Replies

ActionScript 3.0 :: Global Volume Control For All Sounds In A Swf?

Aug 20, 2009

Does anyone know of a way to adjust the volume of all the sounds in a swf? I'm looking to build a volume controller that changes the audio level of the swf.

View 1 Replies

ActionScript 2.0 :: Global - Attach A Sound To The Main Timeline (rollover Sound)

Jun 28, 2004

I want to attach a sound to the main timeline (rollover sound) that i can call from on(rollover) button events. I will be attaching the same sound to several buttons.

View 1 Replies

ActionScript 2.0 :: Loading Sound Controller At Particular Point In Main Timeline

Apr 9, 2004

I am trying to use a sound controller in a flash movie to play music and I am using loadMovieNum to load the sound controller movie at a particular point in the main timeline. I get the sound player to load up fine and the sound loads fine when a user presses play, but about a minute through the song the sound starts to play again, overlapping the song that is already playing. This happens with no user interaction...it just takes about a minute. I also noticed that it is only when the sound player is within one of the movies. It doesnt happen when the sound player is all by itself. Is there something in my movie that is making it loop over? What happen to the search that used to be at the bottom of the page?

View 2 Replies

ActionScript 3.0 :: Flash Take The Volume Of A Sound Spoken Into A Microphone?

Apr 4, 2011

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.

View 13 Replies

Flash :: Change The Volume Of A Sound Using Keyboard Input?

Dec 4, 2009

How can I increase/decrease the volume of a Sound on key-press in ActionScript 3.0

View 4 Replies

ActionScript 2.0 :: Manage Volume Of More Than One Sound In Flash Per Frame?

Jun 27, 2007

In a code im currently working on, I have 3 sounds that I need to maintain constantly, but It seems flash can only manage 1 sound per frame.

How can I manage the volume of more than one sound in flash per frame?

View 10 Replies

ActionScript 3.0 :: Global Volume Slider (from Library) To Control Drag And Drop Xml Playlist?

Mar 3, 2011

3 circles which can be dragged over a target (one for each circle)When the circle is placed on its target it loads its respective xml playlist into 4 buttons (play, pause, forward, back)I want to be able to create some kind of function to control the volume, either using a slider or a rotary dial, whichever is easiest!

View 4 Replies

ActionScript 3.0 :: Flash Sprite Button Not Toggling Sound Volume?

Jul 21, 2010

This is a completely AS3 scripted, and dynamic project, meaning I cant use any assets from the library.

1 - This button is a mute.

� Currently the loaded sound now fades in with a timer.� I want the button to over-ride any sound elements on the stage: the mp3 and later a flv movie as well.� In the below example the button only interferes with fade, and dosen't actually override it, after the fade - it dont do jack. � SoundMixer.stopAll(); will of course kill everything but I cant toggle this(can I?)

2 - The toggle button itself� I've loaded two png's into a sprite, and created a toggle button from them using an if statement. � Is this best practice? or would you recommend something else?� Perhaps SimpleButton?

[code]....

View 1 Replies

Increase (youtube Flash) Video's Sound Volume By Means Of Script?

Jul 30, 2011

Background story: many users (including me) browse the web from notebooks that are not constructed for sound performance. That means (besides other things) that the sound volume for most videos is too low, especially if the video itself is recorded at low volume.

Therefore...

I was wondering if there is any way of increasing the volume of such a video (especially Youtube, but could be extended to other types), because I'm interested in doing it and even publishing it as Firefox/Chrome/other browser plug-in.

View 2 Replies

ActionScript 3.0 :: Flash CS5 IDE - Symbols And Nested Symbols And The Difference Between Graphics And Movie Clips And Scoping

Oct 26, 2010

I'm working through a book called Foundation Game Design with Flash, and I'm finding the Flash IDE confusing. I've been programming for several years, so working with AS3 directly is far easier than trying to understand symbols and nested symbols and the difference between graphics and movie clips and scoping issues and all that -- when tied into the IDE.

How many of you who are making games in AS3 also use the Flash IDE? Can anyone recommend a resource that is AS3 heavy and Flash IDE light? I don't care how much time I may or may not save by using things like the timeline, I just want to understand what I'm using.

View 9 Replies

ActionScript 2.0 :: Load Sound-Symbols On Demand?

Nov 14, 2005

i want to do following:

1. Create sound.fla, import some wave as Sound-Symbol in the Lib and set the linkage to �s1�
2. export that swf as sound.swf.

3. Create main.fla, load the sound.swf with loadMovie or LoadMovieNum.and than use that s1 in my main movie

I tried like this but this doesnt work

[Code]...

View 2 Replies

F8 :: Timeline Sound Volume Control

May 22, 2009

I have an application with a collection of sounds in the timeline. One sound file is recorded at a slightly lower volume than the others. I know I could change this in Audacity but I'm wondering whether I could attach a line of actionscript to its button to raise its volume slightly.I know its possible to do this when playing sounds with actionscript directly from the library, but that would be too big a departure from the development style used.

View 1 Replies

ActionScript 3.0 :: Sound Volume Control?

Dec 23, 2008

If I have library song playing using a simple code like: var mySong:Song = new Song();mySong.play(); How do I use a button to control its volume so that each time it is clicked the volume goes up or down by a little.

View 14 Replies

Get Sound Volume Of Frame With Javascript API?

Jun 24, 2009

Is it possibleto get the sound volume of of a specific frame or specific time of sound item with the Flash Javascript API maybe together with Action Script?

View 1 Replies

ActionScript 3.0 :: Set A Volume To External Sound?

Aug 26, 2010

I'm trying to set a volume to my external sound. I'm using the following code, there're no errors, but the volume is not affected...

var req:URLRequest = new URLRequest("squeeak3.mp3");var sound:Sound = new Sound();var controller:SoundChannel = new SoundChannel();var myTransform = new SoundTransform();myTransform.volume = 0.2;controller.soundTransform = myTransform;

View 3 Replies

ActionScript 3.0 :: How To Control Sound Volume

Aug 11, 2011

how to control sound volume via AS3?[code]

View 4 Replies

ActionScript 3.0 :: How To Change Sound Volume

May 17, 2011

How do you change sound volume?
Code:
Select allimport flash.events.Event;
import flash.media.Sound;
import flash.media.SoundChannel;
import flash.media.SoundTransform;
import flash.events.MouseEvent;
[Code] .....

View 2 Replies

ActionScript 2.0 :: Sound Volume Per Object?

Apr 5, 2006

I can't seem to figure out how I set the volume of a single sound object. Everytime I use setVolume on a sound, it is applied to *all* sound objects playing The code that I'm using :

Code:
music = new Sound();
music.attachSound("music");

[code].....

View 1 Replies

ActionScript 2.0 :: Loop - Set Volume Down Just For One Sound?

Sep 20, 2006

can anyone tell me how to loop 5 different sounds, drums, bass, sax etc. When i use :

[Code]...

and play them all, it's ok, looping fine, but what i want to do is to have 5 buttons that control those 5 sounds. turning of and on some of them... i tried with "secondSound.setVolume(0)" to turn off 2nd sound, but that kill them all... CAN i SOMEHOW set volume down just for one sound? OR if thats not possible, i need bass or sax sound to start again, when button is clicked, in the same position where drums sound is...
but when loop start again to start also from "0" i've also tried reading firstsound position:

[Code]...

View 1 Replies

ActionScript 2.0 :: Setting Volume Of A Sound

Aug 29, 2008

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 Replies







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