ActionScript 1/2 :: Change Movieclip._alpha Depending On Volume Output Of Music

Dec 24, 2011

how to change the volume, asking how to detect the actual volume (not the set 100 volume) of music/sounds. does flash even detect the actual volume output? So when the volume is 0 (e.g. maybe at the end of a song) the ._alpha is 0, so all I need is a variable for the output volume of a song.

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Change Speaker Output Volume

Aug 22, 2011

Is there any way by which I can change the volume of the Speaker?
 
When I use Microphone class, I can set the mic.gain to set the gain in the microphone, likewise can I change the volume of the speaker?
 
I have seen, some websites allow you to change the decibel gain of the speaker in Flash.

View 4 Replies

ActionScript 2.0 :: Change The _alpha For A MovieClip?

Aug 20, 2010

I'm trying to do something fairly simple. I have a movieclip that when clicked with change it's alpha = 0.This is the script I'm using for the movie clip:

ActionScript Code:
onClipEvent (mouseUp) {
_alpha = 0;

[code].....

View 4 Replies

ActionScript 2.0 :: Set The _alpha Property Of MC1 And MC2 Depending On The Location Of The Button On The Slider

Mar 27, 2004

In the library, I have a movie clip - DraggableButton that has OnPress with StartDrag with parameters and OnRelase with StopDrag. I have a slider with this Draggable button and a bar to slide the button on. I also have two movie clips Clip1 and Clip2. In my main movie I have two instances MC1 and MC2 of Clip1 an Clip2. I have an instance of the Slider. I want to set the _alpha property of MC1 and MC2 depending on the location of the button on the slider.

I think I need to save the location (_x) of the button on the slider in a variable in the OnRelease even of DraggableButton and use this variable in the SetProperty method. I need to know in which event and which object's event should I use the SetProperty method. Or if what I am thinking is not correct what do I need to do?

View 4 Replies

ActionScript 3.0 :: MovieClip Change Animation Depending On Key Pressed

Jul 26, 2009

I have started to make an interactive movie where pushing keys moves a movie clip around the stage! And I can obviously make the movie clip do what I want, so here is the question: I want to make the movie clip change its animation depending on which keys are being pushed i.e. Left key the movie clips moves left, and my stick man changes to a running animation. Push nothing and it changes back to his standing still animation.

View 2 Replies

ActionScript 2.0 :: Change Frame Of Movieclip Depending On Relation To Mouse?

Oct 28, 2010

This is a CS4 file so and I have CS5 so if you give me either it will be awesome

I have a movie clip that follows the mouse..

Its not done yet but its gonna be a dog chasing a/the mouse...

I want to have it where the if the mouse is left or right of the following movie clip it shows it walking toward the mouse... so something like

if mouse positions is less the the cursor + 10 (pixels) goto and play frame with dog walking left and one for right up down (I want this to walk till its directly under or over mouse and then laydown or jump only when over or under mouse..

(say its a 20 pixel wide object and 10 on each side will cover the whole thing and not just the exact center pixel, thats what the 10 + movie clip position is for, but Is there a way to tell it to goto and play whatever_frame when mouse is left of any graphic on the sitting dog section??? like the equivalent of onRollLeft or whatever.)

this is the code i have.. its the top statement that doesn't work the bottom 2 do..

Code:

if (_xmouse < detail.x+10) {detail.gotoAndPlay(61);
}
detail.onRollOver = function() {
detail.gotoAndPlay(31);

[Code].....

I already created the shapes and placed them in the appropriate frames.. you should only need to mess with the actions on the instance "detail" (the dog face in frame 1 of scene 1 in layer "follower" ---- just the actionscript needed for that instance is needed in the reply.. you should not need to chage any of the layers, but if you do just tell me what you did and why.

my fla is to big to upload to this form so im placing it on my website here

View 2 Replies

ActionScript 1/2 :: Change Frame Of Movieclip Depending On Relation To Mouse?

Oct 28, 2010

Its not done yet but its gonna be a dog chasing a/the mouse. I want to have it where the if the mouse is left or right of the following movie clip it shows it walking toward the mouse... so something like
 
if mouse positions is less the the cursor + 10 (pixels) goto and play frame with dog walking left
 
and one for rightup down(I want this to walk till its directly under or over mouse and then laydown or jump only when over or under mouse.. (say its a 20 pixel wide object and 10 on each side will cover the whole thing and not just the exact center pixel, thats what the 10 + movie clip position is for, but Is there a way to tell it to goto and play whatever_frame when mouse is left of any graphic on the sitting dog section???like the equivalent of onRollLeft or whatever.)

[Code]...

View 3 Replies

ActionScript 3.0 :: Make The Coverflow Animate And The Movieclip Change Angle Depending On The Side

Aug 12, 2010

I'm attaching the file so that you guys can see that? pretty basic. My main problem is to find out how can the mouse check the mouse position on stage and make the coverflow animate and the movieclip change angle depending on the side, I have to animate only 5 itens, here?s the AS:

[Code]....

View 8 Replies

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 2.0 :: Volume Dragger With Percentage Output

Aug 14, 2009

Im trying to make a volume bar that shows the volume percentage in a dynamic text box (with an instance of 'percOutput') while you are dragging. I cant even see how to do this, im having real trouble.[code]

View 4 Replies

ActionScript 3.0 :: Music Player With Volume Slider?

Dec 11, 2010

I'm trying to make a music player with play, pause and stop buttons aswell as a volume slider.However, I'm getting these three errors:

Line 12 1046: Type was not found or was not a compile-time constant: Rectangle.
Line 12 1180: Call to a possibly undefined method Rectangle.
Line 12 1180: Call to a possibly undefined method Rectangle.

Here is my code:

Code:
package {
import flash.events.*;
import flash.display.*;[code].....

View 1 Replies

ActionScript 3.0 :: Music Embeded Or It Should Be! Mute-volume Control?

Dec 7, 2009

I have an .mp3 file which is supposed to be embedded in the timeline. Since it is 6 minutes long, it not practical to run it streaming  on to the 7,200 frame. Consequently, in order to get it to run I have set the property to Event rather than sound. Also I have set it to repeat 99 times. How can I put in a volune control, or mute button. Can anyone help as I am quite new to this.

View 1 Replies

ActionScript 1/2 :: Control A Background Music Volume Using This Code?

Apr 6, 2010

I tried to control a background music volume using this code

soundInstance = new Sound();
soundInstance.attachSound("1");
soundInstance.start(0,999);[code]....

"1" is a linkage identifier. everything works perfect...music plays and volume decreases.but not only the attached sound... the whole movie volume changes even the swf I've loaded in my clip. I just need to control the background music("1" linkage) not all the sounds. what's the problem here? how can I make this happen?

View 2 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

ActionScript 2.0 :: How To Create Music Volume Control Triangle Slider

Oct 24, 2009

I have a music controller that I can turn on/off, but I would like to add a triangle slider volume control too and also set the default volume to be 50% so the users can choose if they want to turn it up/down.

View 1 Replies

ActionScript 2.0 :: _alpha = 0 When Clicked Outside Movieclip?

Oct 30, 2006

how to have a MC have _alpha = 0 when clicked anywhere outside the mc

View 9 Replies

ActionScript 3.0 :: Mute/unmute The Volume For An Internal Aif Music File Using A Button?

Mar 9, 2009

I need the code to mute/unmute the volume for an internal aif music file using a button.

View 2 Replies

ActionScript 2.0 :: Manage To Work On / Of Music Button With Simple Volume Slider

Nov 24, 2005

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 Replies

ActionScript 3.0 :: Sound Detection And Visual Output - Trigger A Video When It Hits A Certain Volume

Dec 15, 2011

So i found a code on the adobe site which pics up input from the mic. I need that to trigger a video when it hits a certain volume. I'm a complete novice to AS3 and i need this for a proof of concept in the morning. Here's the code that i'm using to pick up the mic -

[Code]...

View 0 Replies

ActionScript 2.0 :: Create A Flash Music Player - Play - Pause - Stop - Volume And Show The Track?

May 12, 2008

the player needs to have a play, pause, stop, volume and also needs to show the track I'm currently listening to (play list).

View 1 Replies

ActionScript 2.0 :: If _alpha >= 100 Do This, If _alpha <=0 Do This?

Feb 25, 2004

I have a movie clip (dnk) 7 (not key!)frames long, with 7 different objects (mc's) inside, named dnk0-dnk6.Then, on the mc (dnk) I have:

onClipEvent (enterFrame) {
strDnk = "dnk"+(_currentframe-1);
alpha = getProperty(strDnk, _alpha);[code]...

So, the idea is, to have this mc's (dnk0-dnk6) fading one after the other in a sequence. Which happens as it is supposed to, but what I am trying to do now, is reverse it. With no luck, as you can see from the top script .I was thinking about a solution in a way of telling when _alpha is below 0, than the _alpha would start to rise, until it reaches a hundred, then it would start to fall again.

View 2 Replies

ActionScript 2.0 :: Change Sky Depending On Time?

Aug 24, 2006

changing a colour of something depending on the time on the system of the user?

View 14 Replies

ActionScript 3.0 :: Change A Textfiled Depending On A Variable?

May 11, 2011

I have several textfileds in a movie clip and I want to change text in a textfiled depending on which textfield you have clicked on. So if I have clicked on at textfiled named "text1" i want:

[Code]...

And then will text1 have the same text as "inputfield", but this dosen't seems to work only if you had a textfield called "textvariable" but that is not what I want. So any ideas how you can make this function?

View 6 Replies

ActionScript 2.0 :: Get Text To Change Depending On The Playhead In Another MC?

Mar 7, 2007

Im trying to get my text to change depending on the playhead in another MC. This is my code... someone have a peak at what may be wrong

Code:
btn.onPress = function() {
ball.gotoAndPlay("start");
if (_root.ball._currentframe>2) {

[code]...

View 2 Replies

ActionScript 2.0 :: Change Key Frame Depending On Dates

Nov 29, 2011

Quite simply I need a piece of code which jumps to a certain frame based on the actual dates below.

1-4rd Dec - gotoAndStop(1);
5th Dec - gotoAndStop(2);
6-7th Dec - gotoAndStop(3);
8th Dec - gotoAndStop(4);

I have found bits of code which allows you to specify which days, but not dates. My actionscript is very beginner so I can't work out what to do.

View 2 Replies

ActionScript 2.0 :: Change The Frame Depending On Which Button Was Pressed?

May 1, 2003

The first prob I had was when i used the load movie command the swf file was loading in the wrong position, it kept loading down and across the page. I had

PHP Code:

_root.myemp.loadMovie("banner.swf", 0); 

I dont know why this is happening but I just fixed this by doing:

_root.myemp._x = 0
_root.myemp._y = 0

The next problem Im having is that I want to change the frame depending on which button was pressed. If button two was pressed I wanted to load "banner.swf" and gotoAndStop("pg2"), If button three is pressed gotoAndStop("pg3")Ive tried some things but cant get this part right such as:

_root.myemp.gotoAndStop("pg2")
"banner.swf".gotoAndPlay

I just dont know the syntax...

View 2 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

ActionScript 2.0 :: Make A Volume Change?

Jan 7, 2011

Im trying to make a volume changer but im not succeding.

And the actions I have are:

var som_fundo:Sound=new Sound(this);
som_fundo.attachSound("som_fundo");
som_fundo.start();

[Code]....

View 1 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







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