ActionScript 2.0 :: How To Make Knob That Turns Volume

Jan 11, 2009

i want to create an mp3 player with volume ,frequency, bass, treble and speed knobs any pointers to any scripts that might help me would be great, but at the moment i am just trying to work out how to make a knob that turns.I assume i would use drag over and some kind of rotation function.

View 0 Replies


Similar Posts:


ActionScript 3.0 :: Maths - When Click On The Knob It Turns 90 Either Left Or Right Depending - Get The Angle In Whole Numbers?

Mar 11, 2011

Code:
knob_mc.addEventListener(MouseEvent.MOUSE_DOWN,turn);
stage.addEventListener(MouseEvent.MOUSE_UP,endTurn );
function turn(e:Event):void[code].....

This is the code I'm using to move a knob the challenge is when i click on the knob it turns 90 either left or right depending where i click, I'd like it to stay still until I turn the knob, and second how do I get the angle in whole numbers??

View 3 Replies

ActionScript 3.0 :: How To Rotate Circle And Use It As Volume Knob

Apr 22, 2009

I want to rotate a circle so I can use it as a volume knob. I can change the volume with a slider but not a knob.

View 1 Replies

ActionScript 3.0 :: Volume Knob Doesn't Follow It's Associate Track

Jun 2, 2009

I built an FLV player that scales to full-screen and on fullScreen, the control bar resizes in a non-uniform manner. The whole control bar is scaled down to 33% of original so the controller isn't barbarically huge. Then the progressBar scales in X to fill up the width now empty due to the uniform scale-down, and the elements to the right of the progressBar all move over in X to appropriate positions to distribute nicely across the width of the remaining video screen. Problem is that the volume knob that is attached by the FLVPlayback component to the volumeTrack that I've moved in X does not move with the volumeTrack. It just sits in it's original position and stays there until you mouseDown on it, then it pops over to the volume track's new position and behaves nicely.

I've tried to set volume on the fullScreen event, thinking it would pop the knob back into place over the track, but that doesn't work.... And I can't find any method of the FLVPlayback class that you can call to reevaluate the position of all of the UI elements to current, etc....

I also can't find any onClick handler for the assigned volume knob so that I could call it directly, etc. Does such a handler exist in the FLVPlayback class and I just can't see it??

View 5 Replies

ActionScript 3.0 :: Capturing Microphone Turns Down Volume

Dec 19, 2011

In our application, we are using a Microphone object, that is published to a server (via NetStream).The recording works well.But unfortunately, while the microphone is active and the NetConnection+NetStream remain, all other audio from inside the flash application (and I guess other active flash applications as well, at least it does it with grooveshark) has its volume turned down.This is completely against the flow of our flash application, as you have to hear certain sounds clearly while speaking into the microphone.How can this turning down of the volume be disabled?

View 3 Replies

ActionScript 2.0 :: Make A Mute Button For The Video That Can Instantly Make The Volume 0?

Nov 22, 2009

Im have an flv playing on my stage. I want to make a mute button for the video that can instantly make the volume 0 or 100 depending on what it is.So i have tried using this code:

ActionScript Code:
m.onPress = function() {

[code]........However, it doesn't seem to work.

View 0 Replies

ActionScript 3.0 :: Make Moving Objects Leave A "ghost" Impression Of Itself Behind That Automatically Shrinks And Turns Invisible?

Mar 22, 2009

how to make moving objects leave a "ghost" impression of itself behind that automatically shrinks and turns invisible. I've managed to get the original particles to drop, but now I'm looking for a way to get the particles to actually leave disappearing non-moving prints behind them.

View 2 Replies

ActionScript 3.0 :: Rotate Knob On Radio Object Using Keyboard?

Jan 11, 2010

I am using Flash Cs4 actionscript 3. I want to be able to rotate a knob on a radio object left or right using the left or right arrow keys on the keyboard. I've been reading tutorials and trying different things but can't seem to get it to do what I need it to. Here is some of my code.

stage.addEventListener(KeyboardEvent.KEY_UP,rotate Up)
function rotateUp(e:KeyboardEvent):void
{
if (e.keyCode == 38)

[Code].....

View 1 Replies

ActionScript 2.0 :: Making Knob Pan Center - Only Go Left / Right Between Ranges

Jul 9, 2010

How to accomplish making the knob pan center at 60 for 60 Hz and only go left and right between the ranges of 59.95 to 60.05 in increments of 0.05? I am illustrating synchronizing between two power systems. I got the scope and and voltage wave forms down but making the knobs work the way we need is driving me nuts.

View 0 Replies

ActionScript 3.0 :: Make A Volume Control?

May 9, 2011

How to make the slider component into a volume control in ActionScript 3.0.

View 3 Replies

ActionScript 2.0 :: Make A Volume Control?

Oct 29, 2010

I'm doing a game. sounds are too hard. how i make volume control

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 2.0 :: Make Volume Up And Down With Two Buttons?

Mar 7, 2012

I want to make a variable sound level. I want to be able to lower the sound with one button and make it louder with another button.

the buttons are name btnplus and btnmin. I thought using the current sound level and the change it, but the code i am using doesn't work.[code]....

View 4 Replies

ActionScript 3.0 :: Make Ipod Like Volume Control?

Nov 16, 2008

How I to go about making an ipod like volume control in AS3 ?

View 9 Replies

ActionScript 2.0 :: Make A Volume Slider For An FLV Player?

Mar 25, 2010

Explain the code, or point me to a good tutorial for making a volume slider for an FLV player?

View 6 Replies

ActionScript 3.0 :: Update Radio Channel Info In Text Window As Knob Turned

Jan 11, 2010

I now have radio dials on my radio which rotate when the user presses the left and right arrow keys. I now am trying to update the numbers in a display window of the radio so that as the user turns the knob the digital numbers in the radio will increase or decrease accordingly.

Here is the current code:
var gasAmount:Number=0
stage.addEventListener(KeyboardEvent.KEY_DOWN, spinPointer)
function spinPointer(ke:KeyboardEvent):void {
trace(ke.keyCode)
switch(ke.keyCode){
[Code] .....

View 2 Replies

ActionScript 3.0 :: Simple Volume Slider That Controls The Master Volume Of The Entire Swf?

Oct 6, 2009

does anyone have an example of a simple volume slider that controls the master volume of the entire swf?

View 1 Replies

Flash :: AS3 - Make Player Fullscreen The Scrubber And Volume Bar Everything Become Too Big In Size

Dec 16, 2009

I am working in a player and when am trying to make it fullscreen the scrubber and volume bar everything become too big in size.

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

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 2.0 :: Make Volume Slider For Those Sounds Inside Movie Clips

Apr 13, 2003

I have seven loops in total. I imported them into the library. i've put each of them in a seperate movie clip with the names loop1,loop2,.In those movie clips, the first (key)frame contains the action stop(); . The second frame is a keyframe too and from here on the sound starts. And of course they loop.Okay, now the buttons to control the movie (Prev, Stop, Play, Next) work fine, but let me explain the system i used. I used a var loopnumber and everytime you click Next or Prev, it '+'es 1 or '-'es 1. I also set a variable number_to_play = "_root.loop"+loopnumber, so you would get _root.loop--number--, where --number-- is 1,2,3,4,5,6 or 7. To actually play the sound, i used tellTarget(number_to_play) {gotoAndPlay(2)}.That's why i added stop(); to the first frame of those clips.how can i make a volume slider for those sounds inside my movie clips ? I've checked this forum already for questions like this but they don't use the system I use.

View 4 Replies

Actionscript 3 :: Volume Controls - Volume On Or Off Through The Games?

Apr 12, 2012

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].....

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

Bmp Image Turns Into A Red Square?

Feb 23, 2004

I've been using flash for a whopping 3 days now, and I've stumbled onto a problem that I can't seem to find a way around. I'm using flash 4, due to the fact that #1 it's all I've got, and #2 the new flash mx 6 won't run on the old ass computer I'm using. This is my problem: I import a .bmp image and edit it in flash to make portions of it animated. The image is a symbol (I think it has to be anyway to animate it...) Everything runs fine when I use the basic play/rewind buttons to test the animiation, but when I make it into an executable, or when I go to the menu and hit "Test Movie", the image shows up as a red square. The animation I added still runs, but the actual image I imported is a red square.

View 5 Replies

ActionScript 2.0 :: Make A Fade Volume Between Songs To Songs?

Jan 27, 2009

i want to make a fade volume between songs to songs...this is the function i have made... what's wrong?

Code:
fade.onEnterFrame = function() {
new_volume = 0;[code].....

View 9 Replies

ActionScript 3.0 :: Detect When The Cursor Turns To A Hand?

May 17, 2011

I would like a function to run when a user clicks anywhere on stage. But this function should not run when the click is on buttons & on url:s inside a dynamic html-formated textfield. How can I detect this? I do realise that the cursor turns to a hand when you hoover over a url inside a textfield & you can set the hand to appear on buttons as well (which i always set it to do). So is there a way in realtime to detect when the cursor is & is not a hand? I've tried the following:

Code:
btn_mc.buttonMode = true;
stage.addEventListener(MouseEvent.MOUSE_DOWN,down)
function down(E:MouseEvent)

[Code]....

View 2 Replies

ActionScript 1/2 :: Html Turns To Percent Signs?

May 28, 2009

I am trying to load html into a text box from a website. when i load to the text box, everything goes fine except that it is loaded as something that looks like this:
 
"%20Cheese%20Croissant= %3B%3Cimg%20src=%22http%3A%2F%2Fwww%2Ehousi ng%2Eumich%2Eedu%2Fdining%2Fmenus%2Fm%2Dfit%2Egif%22%20alt%3D%22%2A%22 %3E%3C%2Fdiv%3E%3Cdiv%20class%3D%22Desserts%22%3EOat%20Bran..."

I wouldnt mind if the html tags were there, because I can deal with those, but I don't know what to do with this. Here is my loader:

[Code]...

View 8 Replies

Within MovieClip - Pasteboard Turns To Color Of Stage

Jul 14, 2009

Flash CS4. When I enter a movie clip to edit the timeline the pasteboard turns to the color of the stage. The result: I can't see the edges of my stage. This is only within the MC. And only within one particular MC (I created another one and the pasteboard stayed 4% gray). When I take the content in the bad MC (via copy frames) and move it to the good one, the same thing happens: Pasteboard turns to the color of the stage. I've tried SFT-CTL-ALT double click. No luck. Strangely, this isn't happening in every FLA. I know it must have something to do with the content on that timeline, but what that is I have no idea.

View 3 Replies

Arrays :: All Color Values Turns Into CurrentColor

Feb 20, 2011

I'm trying to make an array with different color values. My problem is that when I do...
teamColor[i] = currentColor...
All color values in my array turn into the currentColor. (I would upload more code, but that would be a massive mess, considering that I have code everywhere with references from movie clips that are as far as 3 layers deep. However, this would be irrelevant anyways (probably), because I tested this with color values on my main timeline, without any references to or from anything deeply nested). I would like to add that I tried adding strings in there and that the strings remained their original, intended, value, while the color exhibited the same phenomenon.

I changed my code by creating separate variables for each color instead of putting the variables into an array (not what I really wanted to do, but it works). My code looks like this:
if (teamColor != 0) {
this["team"+teamColor+"Color"] = new ColorTransform(0,0,0,1,currentColor.redOffset,currentColor.greenOffset,currentColor.blueOffset,)
teamColor = 0
namebox.addboxes()//function in a movieclip
}

TeamColor is now an int that is changed based on which box a user clicks from a movie clip that has a dynamically generated name, based off of what the variable value in a loop was when it was created.
(E.G: 'tempboxname[ttns].name = i;')
teamColor is then equal to that name when the user clicks it. I have another movieclip with colors in it and the above function is called to check if any teamColor change has occurred, and if it has, act accordingly. (The idea of having teamColor equal to 0 is so that if the user clicks twice, nothing changes. I other conditionals for other colors, all within the same function). That is how I fixed me code. It's not what I wanted, because it's not an array (meaning a seemingly infinite number of teamColors, and thus, teams) but it'll do for me.

View 2 Replies

ActionScript 3.0 :: Tweener - Mouseout Turns Off OnClick

Sep 1, 2009

Basically, I have a button that when moused over it makes rivers go to 50% opacity (they start at 10%), then when clicked they go to 100%.
What I want: Then the rivers stay at 100% until the user clicks the button again.
What is happening: Currently though the mouseout is fading the rivers back to 10%. I know that my code is telling it to do that and want to know how to make it stop.

Here is my code for this:
function shipMouseOver(event:MouseEvent):void {
Tweener.addTween(rivers_mc, {alpha: 1, time:2});
Tweener.addTween(this.dashboard_mc.ship_btn, {alpha: 1, time:2});
} function shipMouseOut(event:MouseEvent):void {
[Code] .....

View 1 Replies







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