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

Similar Messages

  • Sometimes my play and pause button(F8) is not working.

    I don't know why, sometimes the button of play and pause button is not working why?
    do you have any advice or do you think is broken??

    Try resetting the PRAM (if you are able to do so).
    Otherwise, I would take it in for diagnosis.
    Barry

  • How to make a button to stop and run a for loop?

    How to make a button to stop and run a for loop?  and if it is stopped it shall start from where i t stopped.

    Your VI has some very fundamental flaws.
    The start/stop button is outside the FOR loop, thus it will NOT get read during execution of the FOR loop, but only before the FOR loop starts. Think dataflow!
    Thus the terminal of the start/stop button belongs inside the FOR loop.
    Your FOR loop iterates 20x, which probably takes about a nanosecond. You will NOT be fast enough to reliably press the start/stop button during a specific iteration of the FOR loop.
    Your code does not "stop and run" a FOR loop (sic). The loop always spins, but executes an empty case when "Stopped". I guess that's what you actually want?
    Once you solve (2), the x indicator will contain a random value whenever you "stop".
    As soon as the 20 iterations complete, the outer while loop spin an things start over, another nanosecond later.
    Place e.g. a 500ms wait inside the FOR loop to solve this.
    Don't place terminals of indicators on top of formula nodes.
    Your formula does not produce any output, so really has no purpose.
    Use a real "stop" button to terminate the while loop (mechanical action: latch when released). Right now you are using a plain switch, which does not reset to false before the next run. This means that you need to manually reset it before running the program again.
    It is oftern useful to operate the VI in execution highlighting mode. You will immediately see that your button does not get read during execution of the FOR loop. Try it!
    LabVIEW Champion . Do more with less code and in less time .

  • How to code on button click how to increase row height in iphone/ios/uitableview

    how to code on button click how to increase row height in iphone/ios/uitableview
    - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath;
        pppp=[postText objectAtIndex:indexPath.row];
        CGSize maxSize = CGSizeMake(280, MAXFLOAT);//set max height
         CGSize cellSize = [pppp sizeWithFont:[UIFont systemFontOfSize:14]
                           constrainedToSize:maxSize
                               lineBreakMode:NSLineBreakByWordWrapping];//this will return correct height for text
        // return  cellSize.height+115;
        BOOL isSelected = [self.selectedIndexPaths containsObject:indexPath];
        CGFloat maxHeight = MAXFLOAT;
        CGFloat minHeight = cellSize.height+115;
        CGFloat constrainHeight = isSelected?maxHeight:minHeight;
       CGFloat constrainWidth  = tableView.frame.size.width - 20.0f;
        NSString *text       = hChildPost[indexPath.row];
        CGSize constrainSize = CGSizeMake(constrainWidth, constrainHeight);
         CGSize labelSize     = [text sizeWithFont:[UIFont systemFontOfSize:15.0f]
                                constrainedToSize:constrainSize
                                    lineBreakMode:NSLineBreakByCharWrapping];
       // return MAX(labelSize.height+75, 100.0f);     return MAX(labelSize.height+75,cellSize.height+115);    
    i used this code but it crashed app

    On what line did it "crashed app" and what was the exception? The line within this function, not in main.m. If you haven't figured this out yet: view the debugger output, try single stepping, and/or add NSLog messages in the function.

  • Play and Pause button

    Hello,
    Because my playbar is disabled due to my pretest within my file I dont have a play and pause button.
    i have created 2 buttons. One to pause the program and the other to play.
    The problem is, once I click on the pause button, then on the play, then on the pause again - the pause button is disabled. in other words, i am only ever able to click on either one of the buttons once.
    I have the 'infinite' button checked but i am still not sure why its not working.
    -Stephanie

    Hi Stephanie,
    You didn't tell how you trigger pause/play with those 'buttons' - since you are on CP6 or later, use shape buttons that can be put on the master slides or timed for the rest of the project.
    http://blog.lilybiri.com/why-i-like-shape-buttons-captivate-6
    http://blog.lilybiri.com/toggle-shape-buttons
    If you use a simple action (using the Action accordion), another possibility besides the excellent event-handler widget (only for SWF-output) is to replace it by a standard action: http://blog.lilybiri.com/why-choose-standard-over-simple-action
    Lilybiri

  • How to code a Module in NWDS and deploy

    Hi ,
    That is exactly my question ...
    how to code a Module in NWDS and deploy
    Kindly let me know if there are any step by step available
    also I  may not always have access to nwds
    To the same in a tool like eccilpse.
    P.S.
    I am an abaper ...have a little working knowlege of Java..so playing around with eccilpse alot...
    Kindly help

    >>also I may not always have access to nwds
    >>To the same in a tool like eccilpse.
    apart from the links provided by others , if your above statement means that you might have to use Eclipse at times in place of NWDS, then I would suggest you to have a build process independent of Eclipse. NWDS makes use of SAP specific plugins which recognizes your SAP sepcific files like application-j2ee-engine.xml and ejb-j2ee-engine.xml and you see them differently inside NWDS. So to have a better project setup
    1. At least create the whole project (EJB / EAR) once in NWDS.
    2. Export it and then import inside Eclipse.
    3. Make changes and have a build script may be based on ANT to build your project and create EAR out of it.
    4. Deploy using SDM.

  • I recently purchased QuickTime 7 Pro to convert avi files to mov files for editing on Imovie. However, QuickTime won't play the files. How can I get them to play and how can I convert them to mov files?

    I recently purchased QuickTime 7 Pro to convert avi files to mov files for editing on Imovie. However, QuickTime won't play the files. How can I get them to play and how can I convert them to mov files?

    I recently purchased QuickTime 7 Pro to convert avi files to mov files for editing on Imovie. However, QuickTime won't play the files. How can I get them to play and how can I convert them to mov files?
    Both the AVI and the MOV file extensions refer to the file container and not the compressed data the file contains. Both are generic file containers in that each may contain any valid combination of audio and/or video data that is compatible with the codec component configuration of the system on which the file was created. On the other hand, whether a file is playback compatible, conversion compatible, and/or edit compatible depends on the data actually contained in the file container. So, you are basically dealing with two separate issues here—the container and what is inside it.
    Basically, if you want to make your files ediit compatible with iMovie, you must change your file container to one that is acceptable to iMovie and convert the data to edit compatible audio and/or video compression formats as may be necessary. The best approach is to determine what codecs were actually used to create the original AVI files and add them to your system if possible. In most cases a codec package like Perian can be added to your system's codec component configuration to may the AVI file playable. Once they are playable, in the QT 7 app then they can be chnged or converted to file types and compression formats that can be edited in iMovie. (While Perian handles most codecs commonly used to create AVI files, it does not handle all possibilities and, while the Perian codec package still works under cureent Mac OS versions, its development group has decided to drop further development/support of the package.)
    Background: AVI is a file container originally developed by Microsoft back in 1992 but for which official support was discontinued about 11 years. Despite its limitations, Windows users still tend to use this file based on its open source ease of use and generic nature, thus, making its use so popular that most users are unwilling to switch to more modern but less generic file types. Since some AVI legacy compression formats have never been transcoded for the Mac or use beyond OS 9 or OS X PPC platforms, it is often important to know what specific compression formats are contained in the AVI file to know which codecs to add to your system and which not to add in order to avoid possible codec conflicts.
    You can use many different converters to convert AVI files to iMovie edit compatible files. Most third-party apps contain their own buit-in codecs which do not relay on the Mac codec component configuration. Free ones, like HandBrake, usually have limited conversion capabilities while those that have more varied outputs are usually commercial in nature and will cost you additional cash. QT 7 Pro or the free MPEG Streamclip app allow you to access you own system's component configuration and use any available codec component like DV, AIC, MPEG-4, H.264, Photo JPEG, etc.—all of which are iMovie compatible for editing purposes—but only after making the AVI file QT 7 player compatible.
    In order to determine what compression formats wewre used in your AVI files you can
    1) Try checking the Finder "Info" window,
    2) Use the "Inspector", "Media Info", or "Properties" window of any player app that will open the file, or
    3) Use a general media utility app like "MediaInfo" to read the file characteristics.

  • 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

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

  • How to assign a button for attachment and send the data through browser ?

    Hi friends,
    How to convert to browser ?
    how to assign a button for attachment and send the data through browser ?
    Thanking you.
    Regards
    Subash.

    Refer to
    How to create a text box in ascreen painter?
    where another user (venkateshwar reddy) has asked a very similar question...
    Jonathan

  • HTML5/quicktime player plays and pauses several times a second

    We've been getting some weird entries in our statistics logging on our streaming media system, and I've managed to not-so-much recreate the problem as be around when it occurs.
    Playing about with the interface (scrubbing quickly, then playing/pausing repeatedly, etc) doesn't seem to trigger the problem - it just seems to happen occasionally after a few minutes of a player being open in full-screen mode.
    The actual symptoms are the the stream suddenly starts pausing and playing incredibly quickly - upwards of 10 times a second - and you can see the play and pause buttons swapping incredibly quickly. We're not getting this problem with any other of our players, and we're using the iPad's built-in player, not our own HTML5 player, although I'm still not entirely convinced it isn't a bug with our servers.
    The stream also seems to start looping, and as soon as it reaches the end of the stream it starts again, which is making me wonder if it's a bug with the UI itself, as if the play and pause buttons are getting triggered constantly, but changing the rotation doesn't stop it happening. I also wondered if it was something silly, like someone sneezing on the screen and the moisture triggering the touch screen, but that doesn't seem to be the problem either.
    Has anyone else seen this behaviour before? I don't seem to be able to directly trigger it - it just seems to happen occasionally.
    I'm trying to get a video of the symptoms, but it's not playing ball at the moment. If I can get it to do it again, I'll add a video example in a later post/edit.

    We've been getting some weird entries in our statistics logging on our streaming media system, and I've managed to not-so-much recreate the problem as be around when it occurs.
    Playing about with the interface (scrubbing quickly, then playing/pausing repeatedly, etc) doesn't seem to trigger the problem - it just seems to happen occasionally after a few minutes of a player being open in full-screen mode.
    The actual symptoms are the the stream suddenly starts pausing and playing incredibly quickly - upwards of 10 times a second - and you can see the play and pause buttons swapping incredibly quickly. We're not getting this problem with any other of our players, and we're using the iPad's built-in player, not our own HTML5 player, although I'm still not entirely convinced it isn't a bug with our servers.
    The stream also seems to start looping, and as soon as it reaches the end of the stream it starts again, which is making me wonder if it's a bug with the UI itself, as if the play and pause buttons are getting triggered constantly, but changing the rotation doesn't stop it happening. I also wondered if it was something silly, like someone sneezing on the screen and the moisture triggering the touch screen, but that doesn't seem to be the problem either.
    Has anyone else seen this behaviour before? I don't seem to be able to directly trigger it - it just seems to happen occasionally.
    I'm trying to get a video of the symptoms, but it's not playing ball at the moment. If I can get it to do it again, I'll add a video example in a later post/edit.

  • How can one find out how much hard drive space the apps and media are using?

    how can one find out how much hard drive space the apps and media are using?

    See Here  >  Where did my Disk Space go?
    And Here  >  The Storage Display

  • [svn:osmf:] 10017: Adding a style sheet, adding a backdrop to the examples list, adding icons to play and pause icons.

    Revision: 10017
    Author:   [email protected]
    Date:     2009-09-04 06:43:44 -0700 (Fri, 04 Sep 2009)
    Log Message:
    Adding a style sheet, adding a backdrop to the examples list, adding icons to play and pause icons. Setting theme color to red.
    Modified Paths:
        osmf/trunk/apps/samples/framework/ExamplePlayer/ExamplePlayer.mxml
        osmf/trunk/apps/samples/framework/ExamplePlayer/org/openvideoplayer/view/MainWindowLayout .mxml
    Added Paths:
        osmf/trunk/apps/samples/framework/ExamplePlayer/assets/
        osmf/trunk/apps/samples/framework/ExamplePlayer/assets/ExamplePlayer.css
        osmf/trunk/apps/samples/framework/ExamplePlayer/assets/assets.swf

    Revision: 10017
    Author:   [email protected]
    Date:     2009-09-04 06:43:44 -0700 (Fri, 04 Sep 2009)
    Log Message:
    Adding a style sheet, adding a backdrop to the examples list, adding icons to play and pause icons. Setting theme color to red.
    Modified Paths:
        osmf/trunk/apps/samples/framework/ExamplePlayer/ExamplePlayer.mxml
        osmf/trunk/apps/samples/framework/ExamplePlayer/org/openvideoplayer/view/MainWindowLayout .mxml
    Added Paths:
        osmf/trunk/apps/samples/framework/ExamplePlayer/assets/
        osmf/trunk/apps/samples/framework/ExamplePlayer/assets/ExamplePlayer.css
        osmf/trunk/apps/samples/framework/ExamplePlayer/assets/assets.swf

  • The music app on my Iphone 5 is acting up, it keeps skipping  songs and wont allow the to play. You can see the music icon the on notification bar play and pause. When i go back to the app is states the url is not responding. I have restored it.

    The music app on my Iphone 5 is acting up, it keeps skipping  songs and wont allow the to play. You can see the music icon the on notification bar play and pause. When i go back to the app is states the url is not responding. I have restored it from the backed up cloud save. It is the music app, I played music on pandora and it worked fine. I think it must be the app or the ios.

    restore with itunes not from an itunes backup or cloud save they do absolutely nothing only a clean restore will solve your problem

  • How do you swap two variables A and B without using a 3rd variable?  No fun

    How do you swap two variables A and B without using a 3rd variable? No function or method allowed.
    For example:
    Given:
    A = 35
    B = 10
    Result
    A = 10
    B = 35

    How do you swap two variables A and B without using a
    3rd variable? No function or method allowed.
    For example:
    Given:
    A = 35
    B = 10
    Result
    A = 10
    B = 35
    A = A + B  (A = 35 + 10 = 45)
    B = A - B (B = 45 - 10 = 35)
    A = A - B (A = 45 - 35 = 10)

Maybe you are looking for

  • TIP 02: Easy Connect Naming Method in 10g by Joel Pèrez

    Hi OTN Readers! Everyday I get connection on Internet and one of the first issues that I do is to open the OTN main page to look for any new article or any new news about the Oracle Technology. After I open the main page of OTN Forums and I check wha

  • I sign up - get no acknowledgement Gmail do not have it where is it

    I asked for Firefox to be my homepage and an email was promised so I could activate my requested add-on G.mail to not have it and I would like to know where it is - would also like to find out if the Firefox home page lets you keep access to "most vi

  • Enabling Remote Desktop On Windows 7 Home Premium

    So, I'm trying to set up a remote desktop connection on a computer. I already opened the ports necessary to do so (3389) and when I go to configure the remote settings through the system in control panel, Remote Desktop isn't there. I tried enabling

  • Button issue...new to flash

    I am just learning flash and actionscript...bear with me. I'm building a very basic flash website using buttons and the goToAndStop method, and I'm currently working on navigation between the various pages (frames). The site consists of a main page (

  • It's been 9 days and my order has not been shipped yet.

     I ordered an Apple Lightning Digital AV Adapter on 10/19/2014. It has been 9 days and I have not received my order.  On the UPS website, it states that my order is processed and ready for UPS.I called BestBuy's customer service and was told that I s