How can I play a MC when the getVolume method reaches a number?

Someone at - it advice or suggestions on how I can play a video once my level of volume for my music a certain number/level?

Here is my code:

player_mc.volumeUp_btn.onRelease = function () {}
If (Song.getVolume (< 100)) {}
song.setVolume (song.getVolume () + 20);
If (Song.getVolume () == 80) {}
volume1_mc.gotoAndStop (2);
volume2_mc.gotoAndStop (2);
volume3_mc.gotoAndStop (2);
volume4_mc.gotoAndStop (2);
}
}
}

Something is very appreciated!

codeJunky

Kglad - Thanks for the help, I got it! My path has been twisted...

For all those who are interested in the final results of this message; Here is the final code:

player_mc.volumeUp_btn.onRelease = function () {}
If (Song.getVolume)< 100)="">
song.setVolume (song.getVolume () + 20);
If (Song.getVolume () > = 81) {}
player_mc.volume1_mc.gotoAndStop (2);
player_mc.volume2_mc.gotoAndStop (2);
player_mc.volume3_mc.gotoAndStop (2);
player_mc.volume4_mc.gotoAndStop (2);
player_mc.volume5_mc.gotoAndStop (2);
}
If (Song.getVolume () > = 61) {}
player_mc.volume1_mc.gotoAndStop (2);
player_mc.volume2_mc.gotoAndStop (2);
player_mc.volume3_mc.gotoAndStop (2);
player_mc.volume4_mc.gotoAndStop (2);
}
If (Song.getVolume () > = 41) {}
player_mc.volume1_mc.gotoAndStop (2);
player_mc.volume2_mc.gotoAndStop (2);
player_mc.volume3_mc.gotoAndStop (2);
}
If (Song.getVolume () > = 21) {}
player_mc.volume1_mc.gotoAndStop (2);
player_mc.volume2_mc.gotoAndStop (2);
}
If (Song.getVolume () > = 1) {}
player_mc.volume1_mc.gotoAndStop (2);
}
}
}

Tags: Adobe Animate

Similar Questions

  • How can I cancel my account when the need help page only allows me to go to forums and does no real contact for adobe?

    How can I cancel my account when the need help page only allows me to go to forums and does no real contact for adobe? How can I contact Adobe actually?

    Please contact support by calling/chat for cancellation requests and billing queries:

    Contact the customer service

    * Be sure to stay connected with your Adobe ID before accessing the link above *.

    You can also check the help below document:

    https://helpx.Adobe.com/x-productkb/policy-pricing/cancel-membership-subscription.html

    Please go through the Adobe - General conditions of subscription as well.

    Concerning

    Stéphane

  • How can I play a movie using the buttons?

    Basically I want just a page with 6 buttons. When you click on a button I want it to play a clip, and when the film is finished I want to return to the home page. Anyone know how I can do this? Is there a behavior or I write the script? What this script would look like? Any help is GREATLY appreciated!

    One approach might be to create a series of markers in your score, one for each video file and one for the menu/index. When the user clicks a button for a video, you access the associated marker. In this section of the partition, you have a sprite (video), which the Member is bound to the associated file. Somewhere in this period of sprite you act, either in the channel frameScript or connected directly to the video sprite, who monitors his movieTime against its duration and when these are equal it navigates to the menu/index to the score.

  • How can you play a movie on the Xoom?

    OK now my turn to ask a stupid question. How are you supposed to play a movie on the xoom? Let's say you have the file downloaded in the movies folder, what is the formal process to play this movie?

    I realize that I can use my file manager to select the movie and he will play, but it seems to me that there should be an icon or an app for it as showing a picture or play music with the icon of the music. I'm looking at this point of view of someone who isn't a geek and want to play a movie?

    TFG

    OK solved my problem. You use the App Gallery. guess who wasn't quite intuitively obvious to the casual observer as my teacher said.

    TFG

  • How can I play several animations at the same time?

    I am trying to create a map using Illustrator for my graphics and edge animate to my animations.  I want to have an effect of hovering where the State appears and adds a shadow but will lay flat when you remove your mouse of that State.  The problem that I can't seem to move is the fact that when the mouse moves from one State to hover over another, that the animation automatically starts playback and mouse on the first State will not play.  I have the same problem with the passage of the mouse on a menu when you hover over another element.

    Can anyone help with this?

    Ok. I have reproduced something like what you are experiencing. If you are on the same timeline, he cannot play two different images at the same time. So it will not work like that. If you use symbols instead, then it should work because you call 2 different calendars. Does make sense?

  • How can I uninstall a progrm when the system administrator blocks? Who is the system administrator? If its me, how will I know what to do to correct the situation?

    I'm trying to uninstall SKYPE but I am stuck because the system administrator does not allow me.  Who is the system administrator?  If its me, how can I correct the situation?

    Hello

    If you forget the administrator password, and you do not have a password reset disk or another administrator account, you will not be able to reset the password. If there is no other user account on the computer, you will not be able to connect to Windows and you will need to re - install Windows.

    What to do if you forget your Windows password:

    http://Windows.Microsoft.com/en-us/Windows7/what-to-do-if-you-forget-your-Windows-password

    Microsoft's strategy concerning lost or forgotten passwords:

    http://support.Microsoft.com/kb/189126

  • How can I play labels randomly on the timeline?

    Hello

    I'm playing a label on the timeline in edge randomly animate (CC2015), but I can't make it work.

    The animation starts and call a function which should play random one label (0,1,2,3,4,5,6,7,8,9 or 10) on the main stage.

    Here is the code I use. Does anyone know what I am doing wrong?

    ---

    var NombrAl;

    function pickRandom() {}

    NombrAl = Math.floor (Math.random () * 10);

    }

    pickRandom();

    SYM. Play ("randN");

    ---

    Help is welcome!

    Thanks in advance.

    Hello

    If you have 2 constraints:

    (1) the label must be a string;

    (2) and less than 10.

    Therefore:

    function alea() {}

    var label = Math.floor (Math.random () * 10);

    While (label > 10) {label = Math.floor (Math.random () * 10)};

    Return sym.play(1000) (label.toString ());

    });

    It can be set using the compositionReady Panel:

    SYMsetVariable("playRandomLabel", function alea() {}

    var label = Math.floor (Math.random () * 10);

    While (label > 10) {label = Math.floor (Math.random () * 10)};

    Return sym.play(1000) (label.toString ());

    });

    A trigger will contain:

    SYM. Stop();

    SYMgetVariable("playRandomLabel") ();

  • How can I keep a connectivity when the DNS server is not available?

    We have remote locations with several computers that are joined to our domain via a gateway to gateway VPN. When VPN breaks down, they lose the connection to our CD/DNS server. Their ip addresses remain the same, since they are managed by their local router but they failed to connect to other devices to their location even though the devices have static IP addresses. If I understand the use of the LMhosts file must allow me to allow them to keep local communications between computers. I think the entry in LMHOSTS should be like this for each local machine they need to access.

    10.0.0.1 SampleEntry #PRE
    Is there a better way to solve this problem, however?

    Hi Jim,

    Thanks for posting your question in the Microsoft Community forums.

    I see from the description of the problem, you have a problem with connectivity indomain computers when the DNS server is not available.

    As the computer is connected to the domain network, the question you posted would be better suited in the TechNet community. Please visit the link below to find a community that will provide the support you want.

    http://social.technet.Microsoft.com/forums/en-us/itproxpsp/threads

    Hope this information helps you. If you need additional help or information on Windows, I'll be happy to help you. We, at tender Microsoft to excellence.

  • I have a chess program that I would like to transfer (copy) to another computer. How can I download a CD when the program is too large for the CD?

    The CD can usually take 700 MB, and the chess program is much bigger.

    Use a DVD, they will hold 4.7 GB.  However, it probably won't work... you will probably need get the installation package.

  • How can I stop auto scroll when the mouse pointer is placed on the scroll bar

    When the mouse pointer is placed on the scroll bar, it goes into an auto mode, scroll upward or down very fast scrolling. Happens on file selection windowswith any application, it must be Windows.

    Too bad. It was a matter of Firefox.

  • How can recover my Skype account when the customer service is not response yet in 24 hours?

    Dear friend,

    I can not connect to my Skype account, but I changed the password. I contacted Skype customer service and signed a form. The customer service said I would reply with 24 hours. But I still don't respond after a day still.

    I'm really worried. I don't know how long it will take to recover my account. I always use the email that I use to record the Skype account. But I remember the memory register information.

    What should I do? Just wait? I need my Skype account to communicate with my clients. I can lose my job if I lose my Skype account. Please, a good man trying to help me.

    Thank you very much. I hope you all the best.

    Aaron

    God bless you. Skype customer service are very nice. They helped me recover my account. All hope so be patience with these Gentiles. Good luck.

  • How can I remove a birthday when the calendar says "contact the administrator"... but that's me?

    What should I do to remove this anniversary?

    I get this message when I try to delete a birthday of my calendar.  This is my own computer, so that makes me the administrator.

    For Apple, I suggest they add also instructions for the administrator like him say where going to allow that to happen.

    The "Birthdays" calendar is automatically generated information in your Contacts. You can't delete this calendar events. You need to update your Contacts information.

  • How can I reinstall windows xp when the computer does not start and there is no cdrom/dvd drive?

    I have an Acer netbook aspire one.  It will not boot past the windows logo.  I have a windows xp disc to reinstall windows, but the computer has no CD or dvd rom.  Can I copy cd of windows xp on startup SD memory card and reinstall windows?  Or can I run connect the non working pc a working PC to access the cdrom on the work pc to reinstall windows?

    First of all, you are mistaken when you say that the PC does not start.

    This is clearly starting. The problem comes from Windows, not with the real PC. It's actually a very important distinction!

    There are methods to repair Windows, but they can be a bit tedious. By all means, follow the advice given here to do if you're so inclined.

    If you would not rather to repair Windows (and I think it's interesting a try) or your repair attempts are unsuccessful, apparently, you would need to use an external optical disc drive and follow the instructions here:

    http://Acer.custhelp.com/app/answers/detail/A_ID/2631

  • How can I copy a document when the printer display always flashes missing cartridge message?

    HP D110 has x, os XP: is it possible to replace the touch screen to copy a document when a cartridge is missing and the display will show only this error message?  The black cartridge is there and I can still print.

    Hi mrmarquar,

    There is no option to print or copy without cartridge into the two slots in the cartridge. The printer needs a cartridge into the two slots, even if the Habs ink is low, it should always copy in black and white.

  • How can I play a clip of the position of the read head instead of from the point to?

    In first Pro CC, if I already put an in and out point in my source monitor, space plays clips of the point bar in only.  I prefer to be able to move my CTI at any place in my clip, press the space bar and play from there, but it always aligns the point in and play from there.

    The game around shortcut is a joke because he plays not the location of the playhead and loops at seemingly random intervals.

    Any thoughts?

    Yes, 7.2.1 represents the current version.

    Normal default behaviour of the organism is exactly as you want it to be. By pressing the space bar should start playing the position of the read head. Playing around should similarly work compared to the CTI.

    As to why these commands do not work as expected, I see that two causes:

    1. keyboard shortcuts have been customized. It's easy enough to check. Just open the keyboard shortcuts dialog box and research "Toggle Play-Stop" and "play out."
      Of course, the shortcuts could be the culprit if the wandering behavior is limited by using shortcuts. You have not indicated if the buttons give the same results.
    2. Something is messed up in the preferences of the AGENCY. To check this possibility, I recommend that you close the BODY, rename the folder profile- ... \Documents\Adobe\Premiere Pro\7.0, then revive the ORGANIZATION. In this way, if this measure does not resolve the problem, you can easily return to your customized preferences by removing the new profile - folder and rename the file old back its original name.

Maybe you are looking for

  • An add-on to force firefox switch to the default search engine in the search bar

    Hello I have a few search engines in the search bar of firefox. I find it extremely annoying that whenever I have change the search engine, that it stays like this, even after restarting firefox. Is there an add-on that would go to the one who is at

  • Blur the fonts - how to make it similar to Chrome?

    HelloI used Firefox for years, but the last time that I migrated to Chrome.I ' LD would go back, but I have problems with the Blur / Blur fonts on Firefox. I have create this question, I checked several subjects.-Disable HA - results-Use the Tuner of

  • Qosmio F50 - warranty for the battery problem

    I bought a F-50 from Toshiba to Saudi Arabia. He has a 3-year international warranty.But last month my battery or my adapter (No. Clue which one it is) started acting weird. I mean my battery charges to 60-65%.So I removed my battery and started usin

  • Rane MP 25

    Audio device not working not properly How many days I have to wait?

  • Re: Satellite Pro 40 synaptic pointing device does not properly

    Hello, I have a Pro L40 brand new satellite and the synaptic mouse pad stopped working.When I go to control panel > mouse I get a message teling me that the system is "unable to connect to the synaptic pointing device driver.I have installed a differ