Control Sounds: play, return, pause
Hi All,
I have a movie clip that i want to add sound to! I currently have three buttons, A) return, B) pause, C) Play. So return brings the movie clip back to frame one to begin again, pause pauses at the current frame, and play resumes play after pause. All this functionality is working properly. However I also want to do this with sound. I found a workout around by going to properties -> Sync -> Stream. Which allows these buttons to also control the sound...im not realy sure how or why?! But what I want to know is there a way to hard code it? I tried stopAllSounds(); but this did not work.
Here is a code snippet I am currently using for controling the movie clip to give you an idea:
case returnBt:
gotoAndPlay(1);
break;
case playBt:
play();
break;
case pauseBt:
stop();
break;
Thanks all, im curious to hear if there is a way to hard code it.
AS2 and AS3 answers welcome.
Look into using the Sound class for playing/controlling sounds. If you search Google using terms like "AS3 Sound tutorial" you should find what you need to implement this.
Similar Messages
-
Flash button that controls breeze play button
Is it possible to create a flash button that is scripted to
control the play and pause button on the breeze playbar? What I am
looking for is a way to have a button that would start a slide
again after it has stopped and is waiting for the user to start
again.Hi!
If you want to control the viewer with a Flash button you've
embedded in a powerpoint slide (prior to using presenter to convert
it) try this:
(1) Make your button in Flash, and add this Actionscript to
the first slide (replace [btnName] with the name of your button
instance:
btnName.onRelease = function () {
_root.m_controlBar.m_slideNextBtn._onRelease();
(2) Insert your button's swf in the PPT presentation and
compile with Presenter. Now, when the user clicks the button, it
will simulate pressing the "next slide" button in the viewer's
control bar.
Here are some of the other button names; to use these
instead, just replace "m_slideNextBtn" in the above code:
Play/pause button "m_playBtn"
Next slide button "m_slideNextBtn"
Previous slide button "m_slideBackBtn"
View changer button "m_viewChangeBtn"
Attachment Button "m_attachmentsBtn"
Volume Button "m_volumeBtn"
Hope that helps!
~Marc B -
Ipod Touch 3G no longer plays clock alarm sounds and just pauses and shows alarm messages.
All of a sudden, I am no longer able to hear clock alarm sounds like I used to. Until recently, I was able to just play a music file, set the clock alarm with any sound from the selection while being able to preview the sound before I saved it, and then have it play at the time I set the alarm. Now, whatever music I'm playing just pauses while the alarm goes off and the alarm messages are visble on screen. I went to settings--->general-->sounds and everything is on. What happened here?
Yes, I did. All I needed to do was raise the volume from zero to above using the *actual buttons on the side* of the device instead of just the touch screen volume control. If you try to adjust the volume using *only* the touchscreen volume control, the sound of your music and videos will be affected directly as you desire, BUT if the volume control from the *actual buttons on the side* is completely down, the alarm clock will not sound.
I hope this helps. It may not make sense right off the bat but do give it a try. -
Play and pause button and control bar are missing below xfinity player
when I want to watch a video noticed play and pause button and control bar are missing below xfinity player.
For the two soundchannel sounds you have, you will need to keep track if and which one is playing so that you can use some logic to stop the sound right after you mark where the sound was (position) so that you can resume playing it again when the play button is selected.
So if the stroke sound is started, you could assign a boolean variable named something like 'strokeplaying' to be true (setting the other sounds similar boolean false). Then, in your pause function you would test to see if strokeplaying is true and if it is, store the position property and stop the channel playing.
When play is selected, similarly, you test if that sound is true and if so you restart it using the position value you stored as the starting point. You do the same for the other sound... remembering that it is possible neither is playing when pause it clicked. -
my iPod nano screen is frozen and will not respond. It shows the song which was playing is paused, but will not resume playing. I have held down all controls, and changed the slide switch, but nothing happens
Hi Goofy Goat,
Welcome to the Apple Support Communities!
It sounds like you have done some great troubleshooting for your iPod nano that is not responding. In this situation, if resetting it did not resolve, I would suggest restoring the iPod back to its factory settings and then sync your content back onto it from iTunes. Please use the following article as a resource for restoring.
Restoring iPod to factory settings
http://support.apple.com/kb/HT1339
Have a great day,
Joe -
Controlling keybaord Play/Pause button
Hello:
I have a PS2 keyboard that I cannot find a good replacemnt for, so I will keep it (Windows Natural Multimedia Keyboard). Most multimedia buttons on it works, but not Play/Pause, which I would really need. Spacebar works as a Play/Pause toggle, but only if the iTunes window is visible on the monitor screen. (Play/Pause would probably work on a USB keyboard, but, as I said, I cannot find anything but black keyboards, and my eyes are saying "No!".)
Now, I can program buttons, and I wonder if there is any way to control iTunes Play/Pause via some command or such?
Grateful for tips.
Regards,
Hans LCostco has an awesome return policy -
90 days
opened box,
full refund..
and they dont check serial #s)
(Honestly i have no idea why Apple allows their iPods to be sold under so lenient a returns policy)
Anyway, this info is facts. Do with it what you will. -
The play and pause buttons in control center
the play and pause buttons in control center some times work and some times not !!!
any solution please ? !Hi m-tillawy,
Thanks for using Apple Support Communities. I would try a restart/reset of the iPhone:
iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
http://support.apple.com/kb/HT1430
If the issue persists after that, I would attempt a reset of all settings as per this article:
Reset iPhone Settings - iPhone User Guide
http://help.apple.com/iphone/7/#/iph7a2a9399b
Reset iPhone settings
Reset iPhone settings. Go to Settings > General > Reset, then choose an option:Reset All Settings: All your preferences and settings are reset.
Cheers,
- Ari -
How to code a button to play and pause sound using load sound?
how to code a button to play and pause sound using load sound?I have used load sound methos to attach the sound.Can anyone help me?
Hey thnx,
I have used this code on sound's button's frame.and my stop n play button is on another screen.main sound button and stop button is on diffrent screen.
Here is my code-
stop();
adaDrut1.onRelease = function () {
mySoundC = new Sound(this);
mySoundC.loadSound("F#/Bhajni1.ark", true);
mySoundC.onSoundComplete = function() {
_root.mySoundC.start(0,999); }
gotoAndPlay("play2");
_global.myTaalLaya = "Low1";
adaDrut1 is a sound button.And there are lot of buttons with diffrent sound.
Thanks.. -
I go to multiple websites that contain embedded media, such as billburr.com, tunein.com, and forums where members embed media from sites like YouTube. When attempting to access or use that media, using the available play, stop, pause, and volume control buttons, FireFox doesn't respond. For example, If I'm on billburr.com and attempt to play the podcast, I can click the play button over and over again and nothing will happen. The play button lights up like the site realizes I'm clicking it, but the media will not play, at least not the first time. I might get it to work after several fast clicks. However, if I need to pause it, I have the same trouble. These sites work perfectly in IE 9. I've already started FireFox in safe mode, but encountered the same problem. Has anyone seen this?
That is a Flash player on the billburr<i></i>.com site.
You can try to install the 32 bit Flash player for Firefox from this page.
*http://www.adobe.com/special/products/flashplayer/fp_distribution3.html
For Firefox on 64 bit Windows, you need the 32 bit Flash version version because Firefox is a 32 bit application. -
My Bose SIE2i volume control does not work. (pause/play does work). This is the second set - the apple store in Sydney replaced the first set that had the same problem. It was working OK and has stopped.
Thanks again V.K. I did check the layout, and it was listed as alphabet when I inputted the password. So that doesn't seems to the the issue.
Just finished a truly mystifying experiment, but I put in a shorter password in the way mentioned earlier and it worked. I then systematically kept increasing the characters of that password and it seems that if the password starts to exceed about 16, it stops recognizing it. I am fairly sure it is not the password itself since it never gives an error when typing in the verification password. So unless I systematically make the exact mistake twice at the setup screen, and then don't or make a different mistake every time at the login screen, I don't think its my typing skill.
So problem solved for now, but I am still a bit worried. Maybe I should completely reinstall and use a shorter password.
Is there supposed to be a length limit? -
AS3 play and pause timeline as well as soundchannels
I am trying to make global playback control buttons to play & pause the timeline as well as the sound channels. I have managed to get the buttons to function correctly with controlling the timeline but I need them to also work with the soundchannels too.
Here is the code I created for the buttons:
btnStop.visible = true;
btnPlay.visible = false;
var movieclip:MovieClip;
function stopMovieClip(mc:MovieClip):void{
mc.stop();
for (var i:int = 0; i < mc.numChildren; i++)
var mcChild = mc.getChildAt(i);
if (mcChild is MovieClip) stopMovieClip(mcChild);
btnPlay.visible = true;
btnStop.visible = false;
function playMovieClip(mcPlaying:MovieClip):void{
mcPlaying.play();
for (var j:int = 0; j < mcPlaying.numChildren; j++)
var mcPlay = mcPlaying.getChildAt(j);
if (mcPlay is MovieClip) playMovieClip(mcPlay);
btnStop.visible = true;
btnPlay.visible = false;
btnStop.addEventListener(MouseEvent.CLICK, stopAll);
function stopAll(event:MouseEvent):void
stopMovieClip(con);
btnPlay.addEventListener(MouseEvent.CLICK, PlayMC);
function PlayMC(event:MouseEvent):void
playMovieClip(con);
And the code for the soundchannels:
import flash.media.SoundChannel;
var strokeVOSound:strokeVO = new strokeVO();
var strokeVOChannel:SoundChannel = new SoundChannel();
var bleedVOSound:bleedVO = new bleedVO();
var bleedVOChannel:SoundChannel = new SoundChannel();
yellow_mc.visible=false;
blue_mc.visible=false;
strokebtn_mc.addEventListener(MouseEvent.CLICK, displayStroke);
strokebtn_mc.buttonMode = true;
function displayStroke(e:MouseEvent):void {
trace ('Clicked')
yellow_mc.visible=true;
blue_mc.visible=false;
bleedVOChannel.stop();
strokeVOChannel = strokeVOSound.play();
bleedbtn_mc.addEventListener(MouseEvent.CLICK, displaybleed);
bleedbtn_mc.buttonMode = true;
function displaybleed(e:MouseEvent):void {
yellow_mc.visible=false;
blue_mc.visible=true;
trace ('Clicked')
strokeVOChannel.stop();
bleedVOChannel = bleedVOSound.play();
The soundchannels are triggered by a movieclip which acts as a button.
Any help would be much appreciated.
ThanksFor the two soundchannel sounds you have, you will need to keep track if and which one is playing so that you can use some logic to stop the sound right after you mark where the sound was (position) so that you can resume playing it again when the play button is selected.
So if the stroke sound is started, you could assign a boolean variable named something like 'strokeplaying' to be true (setting the other sounds similar boolean false). Then, in your pause function you would test to see if strokeplaying is true and if it is, store the position property and stop the channel playing.
When play is selected, similarly, you test if that sound is true and if so you restart it using the position value you stored as the starting point. You do the same for the other sound... remembering that it is possible neither is playing when pause it clicked. -
Sound plays only on certain functions
I can play music on my iPad (either through files saved on iPad or streaming through Pandora) but I cannot hear someone when using Skype. Also the sound from one of my games has "disappeared".
I've checked the sound settings and volume buttons just in case. Things worked fine a week ago.If you lose sounds for keyboard clicks, games or other apps, email notifications and other notifications, system sounds may have been muted.
System sounds can be muted and controlled two different ways. The screen lock rotation can be controlled in the same manner as well.
Settings>General>Use Side Switch to: Mute System sounds. If this option is selected, the switch on the side of the iPad above the volume rocker will mute system sounds.
If you choose Lock Screen Rotation, then the switch locks the screen. If the screen is locked, you will see a lock icon in the upper right corner next to the battery indicator gauge.
If you have the side switch set to lock screen rotation then the system sound control is in the task bar. Double tap the home button and in the task bar at the bottom, swipe all the way to the right. The speaker icon is all the way to the left. Tap on it and system sounds will return.
If you have the side switch set to mute system sounds, then the screen lock rotation can be accessed via the task bar in the same manner as described above.
This support article from Apple explains how the side switch works.
http://support.apple.com/kb/HT4085 -
Netflix has suddenly stopped working my MBP. Movies appear to load but don't actually play, as if they have been paused. I get NO error message. The transport controls are there and I am able to manually move to different points in the movie timeline,
but the image always remains frozen no matter where in the timeline it is. When I click on the PLAY button, the icon toggles back and forth between PLAY and PAUSE, but nothing else happens. Audio does not play and the time remaining in the movie does
not advance. The exact same problem occurs in both Chrome and Safari, so I assume the problem is with Silverlight. I have completely uninstalled and reinstalled Silverlight, to no avail. I have the latest Silverlight 5.1.10411.0 installed. If this issue can't
be fixed, I fear I will have to cancel my Netflix account. Please help!Hi,
I'm not sure this will help or not, please give it a try:
Fix Silverlight in
Safari or Firefox on a Mac
According to Microsoft, the
minimum requirements for a Mac to run Silverlight 4+ are Intel-based 1.83 GHz (or
higher) processor, running Apple's OS X Tiger (version 10.4.11
or
later) operating system with at least 512-MB of RAM, and a current version
of the Safari or Firefox browser (click "Download Microsoft
Silverlight" or in the Related Articles
at the end of this web page).
To fix Silverlight problems in Safari, progressively try
each of the following steps until the problem is resolved. (For Firefox, see step 1 and step 7.)
Close all your browser screens (Safari and any other browsers).
Re-open your browser and use it to verify which version of
Silverlight is installed either by clicking on the "Verify
Installed Version of Silverlight" link, or
in Safari, verify that Silverlight is recognized as
installed by selecting Help > "Installed Plug-ins"
in Firefox, verify the version and status of Silverlight by selecting
Tools > Add-ons >Plugins
Uninstall any version of Silverlight earlier than version
4
(i.e., uninstall version 1, 2 or 3 if listed).
Note. While version 5 is the current version, if it is not working
correctly in your browser, you may want to replace it with version 4. (See "Uninstall Silverlight on Apple
Mac" above, or step 4 below)
Re-open your browser and try to log into CTI Navigator Web again.
Open Safari's Menu (gear icon if Menu is hidden) and select
Preferences
> Security > Web Content:
verify "Enable
plug-ins" is checked
verify "Enable Java" is checked
verify "Enable JavaScript" is checked
If one of these preferences was not already enabled, try to log into CTI
Navigator Web again.
Under Safari's Edit menu
(the gear icon if Menu is hidden), un-check "Block Pop-Up
Windows" and disable any other pop-up blockers or add-on filters. Try to
log into CTI Navigator Web again. If the initial installation was corrupted, you
may need to uninstall and
re-install Silverlight with these filters disabled.
If the Silverlight error persists, uninstall
Silverlight:
Close all browser screens
Browse to the hard drive where Silverlight is installed
Select/Open Library > select/open Internet
Plug-ins
Click on Silverlight plug-in and drag to Trash
If displayed, also click on "WPFe.plugin" and drag to
Trash
Empty Trash! (You may need to
restart your computer to ensure all file components are removed.)
Re-install Silverlight (see "Install
Silverlight in Mac" above). Then
try to log into CTI Navigator Web again.
If Safari on your computer still will not support the Silverlight plug-in,
download and install a current version of Mozilla
Firefox.
If Firefox or its extensions do
not function properly, follow the steps described in the MozillaZine article "Standard
Diagnositic - Firefox".
That silverlight tutorial website's requirement for silverlight is version 4, so did it popup a dialog to allow update? Could you force no update?
Mark Yu - MSFT
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help. -
The mission control,launchpad ,two brightness button,reverse & play & pause button are not working on my apple wireless keyboard,please help me
Try resetting the PRAM (if you are able to do so).
Otherwise, I would take it in for diagnosis.
Barry -
Why do my speakers not play music? I know they work because when I go I change my ringtone all the sounds play. I am not a very happy costumer right now and would like an answer to my problem. Thanks.
What happens when you play music? Do the hardware volume controls work when using the Music app?
Maybe you are looking for
-
Create automatic backup?
Is it possible to set Acrobat Pro 9.0 to create an automatic backup of whatever document you are working on? I don't mean "save". For example, in MS Word, I have my preferences set so that a document named Backup Document Name is automatically create
-
I have seen this question asked before, but have not seen an answer that works. A small white square appears in the top left corner of the display. Open applications cover it, but not the monitor display.
-
Urgent problem ......In screen Painter
Dear all, May problem is in the Screen painter. with out clicking the EXIT button, exits out of the screen. and also the Messages are not displayed. I designed the screen, using GUI status I created two buttons in the application Toolbar. one for INS
-
JTextPane HTMLDocument to string missing lines \n and paragraphs
I have a JTexpane using an HTMLDocument and I use this function to save the content into a String protected String saveToBuffer(HTMLDocument lpd){ HTMLEditorKit html = new HTMLEditorKit(); try{ OutputStream out = new By
-
Is Essbase 11.1.2 save text data?
Is Anyone know if Essbase 11.1.2 save text data? or it same as elder version just save a numeric code that link to RDBMS data on Hyperion Planning Thanks