ActionScript 3.0 :: SoundTransform Of A Steaming .FLV?

Mar 31, 2010

So I followed a tutorial and got my video player working perfectly, then hit a wall when trying to replace the volume slider with volume up and down buttons.

attached is the current working video player, I didn't bother uploading the .XML and the .FLV files, but I will if you're interested.

Here is the code which handles the SoundTransform object, but I can't figure what to apply to my EventListener on the Volume Up and Down buttons.

[Code].....

View 6 Replies


Similar Posts:


Media Server :: FMSS Or FMIS For Live Steaming Application

Oct 6, 2009

I'm a bit confused for a choice for my streaming application. I'm note sure if I need the FMSS or the FMIS. We want to place several encoders at clients with FME and they have to stream there source to a Flash Media Server. I want to use flowplayer at the client side. Do I need to have FMIS or FMSS for this live streaming application?

View 3 Replies

ActionScript 3.0 :: Attaching SoundTransform To A Movieclip

Feb 3, 2012

I am trying to create a button to switch the sound in an embedded movieclip (mc_1) on and off. I believe should be able to use something like

[Code]...

View 6 Replies

ActionScript 3.0 :: SoundTransform Volume Performance Bug?

Jun 22, 2009

I have this code, and it works perfectly fine for the most part:

soundTrans.volume = 0.1

What this does, it plays the Sound at about 10% of its total volume.But about 1 out of 10 times, there seems to be a bug, that causes it to play 100% of its volume for like a split second then it goes down to the 10%.Like if the soundTransform is applied after the sound has already started playing, and the Player just sometimes cant synchronize it perfectly? I tried to play around with trying to set the soundTrans BEFORE starting the channel, like:

soundChannel.SoundTransform = soundTrans;

but to no effect, it seems the player Applies the soundTransform always just when the Sound starts playing.(or actually just a bit after)This is especially annoying if you are trying to Fade in a music slowly maybe over the course of 5 seconds, and then it starts with a big BANG, and then it goes down, then it fades in, ruining the whole effect.

View 1 Replies

Media Server :: Check If Steaming Is Changing "on Fly"?

May 20, 2010

my application is using dynamic stream (using smil file). FMS server and HTTP server are installed locally. Can you please tell me the best way to test if dynamic streaming is really working? How can I check if steaming is changing "on fly"?

View 7 Replies

ActionScript 3.0 :: SoundChannels, Soundtransform And Volume Question(s)

Feb 2, 2012

Trying to reduce frame overhead in my game, im trying to figure out how to speed it up.These are some 'simple' questions if you know your way around sounds and channels so i'm hoping you'll read on and perhaps give me some insights.
 
I'm noticing that playing soundclips sometimes make it stutter so im looking for the best way to use sounds and channels.The main question is below: how costly is a soundtranform.volume and is it persistent on a channel?secondairy; does it matter howmany soundclips i drop into the same channel?What i noticed: The channel.soundtransform.volume only works after playing the sound. Q: How costly is a channel.soundtransform.volume?&; Will it stay this volume on the next sound that plays? or do i have to reset it each time?
 
Also: playing a lot of sounds in 1 channel isnt a good idea.So i created a channel for each gameobject that could produce sound.On each sound play i calculate distance from main player and set volume accordingly.

1: I could just pre create like 10 channels set the volume from 0.1 to 1.0 accordingly then play each sound in the specific range channel This way i wouldnt have to do soundtransforms on the fly.If however every sound producing object would be at the same distance it would clutter 1 channel with a lot of clips to play at the same time.
 
2: I could pre create 10 channels as a queue. On every play i would pick the next free channel, looping & wrapping through them as i go.
Here however i will have to set the soundtransform volume again on each play according to distance.

View 5 Replies

ActionScript 3.0 :: Pause Stream SoundTransform / Channel

Nov 6, 2009

I am really close I can feel it. I am doing something stupid I know. I have a file where one button simply controls stop and play of a looping audio stream. (by overlapping the buttons and making them visible or invisible depending on buttonClick) I have it where it does work for stop/start but I really need to to Play/Resume.

[Code]....

View 2 Replies

ActionScript 3.0 :: SoundTransform Object Giving A Null Reference?

Jul 15, 2009

Somehow my class is giving me the following error, after I added a SoundTransform object.What am I missing  The issue is somewhere with the

private var soundTrans:SoundTransform;
soundTrans = new SoundTransform();
Why would that be happening?

[code].....

View 5 Replies

ActionScript 3.0 :: 046: Type Was Not Found Or Was Not A Compile - Time Constant: SoundTransform

Feb 18, 2010

I am having trouble with my flash program. im trying to make a media player but the tutorial that i am using told me to enter SoundTransfor into the action scripts but when i run the program all i get is an error... 1046: Type was not found or was not a compile-time constant: SoundTransform.

View 1 Replies

Flash :: Videochat Netstream SoundTransform Not Working For Volume Control?

Jan 3, 2012

I have a video chat application where there can be 6 participants. What I would like to do is give the option to each publisher to control their own stream's volume. The code I have looks like this.

[global]
private var volumeTransform:SoundTransform;
[In the init method where ]
outgoingStream = new NetStream( nc );

[Code]....

A possible solution can be this : Calibrate the slider and set the microphone gain, a gain of zero effectively is mute and a gain of 100 is full volume.

View 1 Replies

ActionScript 3.0 :: Flash SoundTransform: Stereo Play Sound From Left To Right Not Working

Sep 6, 2011

i'm trying to play a sound from left to right using actionscript3. i have putted in the first keyframe the code. what i have wrote is:

Code:
var soundClip:Sound;
var channel:SoundChannel = new SoundChannel();
var trans:SoundTransform = new SoundTransform();

[Code]...

View 1 Replies

Actionscript 3 :: SoundTransform Is Muting The Sound But Sound Still Plays

Apr 6, 2010

I am using the following code, in the last line when I play the sound I can still hear it even when I have transformed it to 0.

[Code]...

View 1 Replies







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