Code AS3 volume slider doesn't work do not

I added a volume slider that slides back and forth works, but it does not change the volume. Am I done wrong or missing code? I'm different audio streaming on each image.

Here is the code on the main timeline:

SoundMixer.stopAll ();

var pP1:Number = 0; playback position

var playing1:Boolean = false;

var mySound1:Sound = new Sound();

var myChannel1:SoundChannel = new SoundChannel();

mySound1.load (new URLRequest ("Physiology Slide 01 INTRO.mp3"));

myChannel1 = mySound1.play ();

SoundMixer.stopAll ();

function EnterFrame(event:Event):void {}

chnange volume if the drag the volume slider

var volumeLevel = myChannel1.soundTransform;

var newLevel:Number = volumeSlider.slideKnob.x / 100

volumeLevel.volume = newLevel;

myChannel1.soundTransform = volumeLevel;

}

PlayPause1_btn.addEventListener (MouseEvent.CLICK, togglePlay1);

togglePlay1 (null);

function togglePlay1(event:MouseEvent):void {}

playing1 =! playing1;

If (playing1) playS1();

of other pauseS1();

}

function playS1() {}

myChannel1 = mySound1.play (pP1);

PlayPause1_btn.gotoAndStop (1);

}

function pauseS1() {}

pP1 = myChannel1.position;

myChannel1.stop ();

PlayPause1_btn.gotoAndStop (2);

}

Nevermind, I found this tutorial:

How to create a Volume slider in Adobe Flash CS6. -YouTube

Tags: Flash Builder

Similar Questions

  • HP Pavilion dv6-2005tx volume slider doesn't work do not

    I recently upgraded my OS to Windows 7 32-bit to an operating system of windows 7 64-bit manually and it erased all my drivers. I managed to get all of their return with the exception of this embarrassing a volume slider.

    Someone know where I can get this particular pilot?

    Thank you

    Hello

    Download and install MediaSmart SmartMenu (version 3.1.2.2 for 32/64-bit Win7) to here.

    Important note!

    Until you install software that you need to have installed at least a MediaSmart product above. The best choice will be in my opinion:

    MediaSmart DVD here (version 4.1.4328 for 32/64-bit Win7)

    If you do not use any additional software you can download and install 3VRX (ver 2.5 for 32/64-bit Win7) from here.

    Note:

    Here is YouTube video that shows what can be done with the 3VRX software.

  • above my keyboard volume slider doesn't work anymore,

    original title: Volume
    Have my slider volume above, my keyboard no longer works, I watched by chance? any suggestions would be helpful.

    Hello

    -Are you referring to the volume key in the keyboard?
    -What is the brand of your computer?
    -Did you change on your computer due to which the question has begun?

    If the problem occurred recently, perform the System Restore to the point that the key was working normally.

    If this does not work, contact the manufacturer of the computer.

  • Code Windows XP disk doesn't work do not

    I replaced my hard drive on a Pavilion dv6000. When I went to reinstall the operating system using the Windows XP CD that was shipped with the computer, the validation code has not worked.

    Is it because I changed the hard drive?

    Can I get a new CD of Windows XP of HP?

    Thanks for your help

  • Volume button doesn't work is not with Vista Business

    Everyone knows what software Toshiba should I install in order to use the volume button in Vista Business? I have a Qosmio G20-102. Thank you.

    Hello

    Are you could not change the level of sound volume under Vista?

    The problem is that only some unique Vista drivers have been released for Qosmio G20 and not all functions can be used.
    But don t give up Andrej! There is a hope! Thanks to all the forum users who post proposed solutions!

    I found this very long, but interesting and useful article about the installation of Vista on Qosmio G20.
    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=20494

    The user FranciscoJr is a guru of the G20 Vista + Qosnio ;)

    A hint; some of the objects of Toshiba value added package for the G30 can be installed on the G20.
    Install only the selected items. Otherwise, you will have conflicts with the windows Mobility Center.

    Good luck

  • IPhone volume button doesn't work is not as trigger

    Hello

    I was impressed by Lightroom Mobile on my new iPhone 7 more, but everything ended with a major feature missing.
    Using the touchscreen for trigger is really awkward, so for years all iOS camera apps allow you to take a picture by pressing the volume button. In this way, you have a completely different handle and more stable on your phone, essentially using it as a regular camera.
    For some reason, it's missing in iOS Lightroom. I hope that this will be addressed soon in an update. I'm really looking forward to use Lightroom as my default camera app, now is not ready yet.

    In addition, the switch between the scale and telephoto is very slow, with a noticeable pause. On the application of default instant sound camera. Not a deal breaker, but I wonder why this delay happens.

    Hi michaljanowski

    Please add your vote here Photoshop community customer family so can engineers can study the issue.

    Kind regards

    Assani

  • [AS3] scroll bar doesn't work does not correctly :(

    I created a simulated Panel (buttons, switches and text to explain the functions of the button & switches). It works really well on most computers, but on some the scroll bar flashes "component" and does not work properly is this a bug or?

    2 users with the same excat version of working Flash player 9 correctly we do not. all the ideas I'm stuck :(
    Thanks in advance for your help.

    Thank you for your ideas is what I found when I reinstalled the flash even if it is the excat same version it worked. It seems that our system update for flash 9 did not work properly so I'll have to push a new update on all computers on the network (it's funny, it works ok on some and not others in my company, firefox is not an option

  • with firefox 43 yahoo and yahoo mail doesn't work does not correctly

    With the help of win 7 and firefox 43.0.1, I have 4 computers and now all have problems with yahoo and yahoo mail doesn't work does not correctly. Loading sites, but most of the features are missing and clicking on what whether changes to the lists of text. I have disabled flash / anti-spam etc., cleared cookies and cache and even firefox loaded down once again and have upgraded, no help. I'm forced to use IE now.

    I tried Yahoo support, they said try Firefox... In any case, it's Firefox and I found a solution using the 'Refresh Firefox' button. Whatever the problem was fixed on two of my computers so far. Got to update my setting again but it's 10 m, compared to the 10 hours I spent trying all that is nothing.

    Thanks for the help!

  • spell check doesn't work is not in outlook on windows 7

    Hi the spell checker doesn't work is not in my outlook for windows 7. This can be corrected?

    Sincerely, Robert H.C.

    Outlook.com has a manual spell at the top next to the options button controlIt won't appear that if you write an e-mail AND if your browser is not checking spelling himself. In most modern browsers the spell checking is done by the browser itself and may need to be enabled in this browser

    IE , it depends on the version you have.
  • DNG Converter doesn't work is not on a camera called raw photo

    DNG Converter doesn't work is not on a raw photo camera that always comes back with this Message "check if the camera is recognized.   "

    Supported cameras Camera Raw plugin | Compatible cameras

  • LR 5 doesn't work is not on the new Macbook Pro.

    LR 5 doesn't work is not on the new Macbook Pro.  Have tried 2 CC downloads, download licensed 5.6 and 5.5 download licensed, all the results in the same thing.  It comes up with the screen base but no signs and gives that an error occurred when changing the modules.  Nothing I have tried seems to help.  He also said "start with lightroom mobile at the top on the left, although it said it's Lr 5.6.  Anyone else having problems?  Calls to adobe are no help and have to wait until Monday for technical support.  Surely this must run on a NEW laptop with any other installed software!

    Setup logs was very good.  Application installed but is not working properly.  Finally got Adobe support and it turns out be a file permissions error.  Had to add applications and myself as accessors of the Lightroom folder under ~/Library/Adobe/ path and set permissions to read & write (was read only for everything except system) and apply to all the cases closed.   Works fine now.  Including this here in case when someone else is going through this issue.

  • Lenovo IdeaPad K1 - volume rocker doesn't work?

    I bought Black Friday. It is new, but the volume control is not working. Only the down volume button works, but not the increase of volume one. However, when the volume option appears on the screen, I can change it.

    I have no warranty, but I'm looking to see if this is normal on others or what. The volume decrease button is harder the volume button to increase.

    Try a factory reset in settings. I have mine set to back up on google's servers, although I admit to not knowing what is actually saved it. ALO check your camera settings on your google dashboard.

  • AEA Action code doesn't work do not

    Hello

    I do a simple test to help learn Adobe Edge animate (AEA).

    I created a new composition and created an image of rounded rectangle (RoundRect). RoundRect selected I click the Actions button open and:

    I add a click event

    Under Choose an Action I click on enable/disable/hide

    Under Select a target I click RoundRect

    The following code is generated by the AEA:

    Define a toggle to show or hide an item

    If (sym. $("RoundRect») .is (": visible ")) {}

    SYM.$("RoundRect"). Hide();

    } else {}

    SYM.$("RoundRect"). Show();

    }

    When I publish and display in the browser, the RoundRect iniitially appears and when you click it it disappears, as expected. However by clicking anywhere on the screen won't get it to reappear.

    The Javascript console on my browser is not errors or messages.

    My expectation was that, given that this code generated by AEA it would work. Anyone see what I'm missing?

    Thanks in advance for your help,

    Rich

    Hi rich,

    Here's the thing element.hide (): when you use masquer(), the div can no longer be clicked or see other mouse events. That is why if you enable/disable/hide the element itself, you can hide, but then can not show it again. It should really be a note in the comments, warning users of this situation (I'll pass it along to the team).

    So ideally, you should put the extract to activate/disable/hide on another element and then target the element you want to hide/show. If you really want it to be on the element click you on, you can fake by adding extract to an element placed above the one you want to hide/show and set the Opacity of the element to 0%.

    HTH,

    Joe

  • IPhone 6s off right speaker doesn't work is not on the helmet

    IPhone 6s off right speaker doesn't work don't not on the helmet, tried 3 different sets of headphones, have tried to clean shooting, reloading the OS etc., checked the slider etc, still no joy, any suggestions very welcome. It works on both speakers if I don't push the CAP fully home (but he then falls easily).

    Are you sure that you're pushing all the way?  If you are, this looks like a connector damaged in the phone. As a 6 s that it is still under warranty, then take it to an Apple store.

  • Microphone doesn't work is not in Windows 7

    my sounds work but microphone doesn't work on my win 7, I have a driver realtek hd audio, please give me solution, please...

    Hello

    What application you use to record microphone?

    Method 1: Run the troubleshooter and check if the problem is solved or not.

    Open the troubleshooting of Audio recording

    Method 2 : perform the steps in the article and see if the problem is resolved or not.

    Adjust the microphone volume

    Method 3 : record the sound of the sound recorder and see if it works or not.

    Record audio with Sound Recorder

    Hope that helps.

Maybe you are looking for

  • Brightness buttons do not work for laptop HP 15-r022TX

    Hi friends, I installed Windows 8.1 and install most drivers FRO HP recommended link. Even after that I am unable to set my brightness and WIFI. Please suggest.

  • Applications not ANSWER DO NOT

    Flock, IE8, Firefox, Adobe Audition 3, you name it, I have and no one escapes the latest innovation of Windows Vista: "ANSWERS DO not. It happens on 3 of my machines Vista (32 bits of a 64-bit desktop and two laptops). Windows 2000 SP4 NEVER had this

  • How do I expire the app in blackberry?

    Hi friends, I'm new to blackberry. I developed an application. So I wanted to put in expiration date. Is it possible to set the date. Please help me. Thanks in advance

  • Help Message of blackBerry Smartphones

    When I created first my email address personal yahoo on my phone, a message with a yahoo flag icon appeared next to my original message icon. However, when I received an email, the Red astrick appeared on my e-mail Inbox icon AND my original (sms and

  • compatibility iPod with the laptop HP Pavilion g6

    But I have an ipod from a friend. Tried to use it on my HP Pavilion g6, but it does not work. It installs the program itunes and everything, but does not work when I open the file or the shortcut. What's wrong?