How to attach sound to any button?which will continue that sound.

Hi,
Am working on Flash cs5.Can anyone tell me how to attach sound to any button?which will play after click on button.this sound should play continue till 2-3 scenes ahead.Am working on project which has 3 button with diffrent sound.and the sound button contains some scene which has volume seter.I mean,if user want to hear that sound in slow,medium or high pitch.the code should set as per this.Its in as 2.
This site is like "karaoke".just the sound is classical music.It will continue on software and user will sing a song.
Can anyone help me?At working on this from last 2 months.and its hard for me to get perfect answer.

Add your sound clip to the library and give it a Linkage ID of "mySoundClip"
Assume your button is in frame 1.
GIve your button the instance name of "mySoundBtn". And put this code on frame 1 (timeline).
stop();
mySoundBtn.onRelease = function () {
          mySoundC = new Sound(this);
          mySoundC.attachSound("mySoundClip");
          mySoundC.start(0, 10);  //10 represents the number of loops
          gotoAndPlay(2);
than put this code on the timeline frame where you need the sounsd to stop.
stopAllSounds();
Also If you want to be able to play the sound from your local disk without attaching it to the swf, use .loadSound("the url", true);

Similar Messages

  • How do I delete the download button which is next to my home button? I keep clicking it when I want home and it is annoying.

    How do I delete the download button which is next to my home button?

    You can use the Customize feature to move it to a less irritating location. I suggest the Add-on bar if you keep that displayed.
    Start customizing with either of these, then drag the arrow to a new location, or into the dialog to remove from all bars:
    * right-click a blank area of the tab bar > Customize
    * tap the Alt key > View menu > Toolbars > Customize
    You will notice that some of the combined controls split apart in the customize view. If you put anything between them, they won't be able to recombine. (For example, if you separate stop and reload, or put something between back/forward and the URL box.)

  • How can i sync my outlook categories ? is there any app, which can do that ?

    is there any app, which can do that ?

    Hi karthikk,
    - Didn't you asked that question atleast two times before?
    - Didn't we already told you not to create new threads with the same question?
    See here and here!
    Maybe you should provide more information (in your original thread!) instead of asking the same over and over again?
    Maybe you should also answer when someone trying to help asks back on you...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to attach a PDF file TO the form so that recipients can access the file as a resource?

    How to attach a PDF file TO the form so that recipients can access the file as a resource?

    Sorry we do not support this. What you can do though is add a Formatted Text element and add a link to a PDF. To insert a link add some text, select the text and right click on the text (or look under the Insert menu in the top right of the scene)
    Gen

  • Are there any apps which will allow local calling using data only that do not require any special numbers called out initially and does not require the receiver to have a similar app or account?

    Are there any apps which will allow local calling using data only (not minutes, no extra charge) that do not require any special numbers called out initially and does not require the receiver to have a similar app or account?  Just for random local calling.

    Yup.
    Here is a way you could solve this by adding an extra column and a small lookup table:
    The lookup table is here for the copying:
    0
    1
    k
    kilo
    2
    M
    mega
    3
    G
    giga
    4
    T
    tera
    5
    P
    peta
    6
    E
    exa
    7
    Z
    zetta
    8
    Y
    yotta
    In table 8 (the one on the left in the image) column A is where the values are. 
    B1=A1÷(1024^VLOOKUP(INT(LOG(A1, 1024)), Binary Prefixes::A:D, 1))&" "&VLOOKUP(INT(LOG(A1, 1024)), Binary Prefixes::A:D, 2)&"B"
    this is shorthand for... select cell B1, then type (or copy and paste from here) the formula:
    =A1÷(1024^VLOOKUP(INT(LOG(A1, 1024)), Binary Prefixes::A:D, 1))&" "&VLOOKUP(INT(LOG(A1, 1024)), Binary Prefixes::A:D, 2)&"B"
    select cell B1, copy,
    now select all the cells in column B, paste

  • How to open RAC node2 usng spfile which will stay in ASM disk?

    Hi,
    I have installed oracle 11g r2 rac with asm in two nodes. OS is hp-Unix.
    I have installed oracle11g Active Data Guard using Single alone Database.
    Both RAc and Active Data Guard works fine.
    I have not configure Data Guard Broker.
    N.B Rac node1 is running using spfile which is in ASM disk (+DATA/spfiledcpdb.ora) but node2 is running using pfile.
    Question: how to open node 2 using spfile which will stay in ASM disk like node 1?
    Thanks
    Solaiman
    Edited by: 876149 on Apr 1, 2013 10:08 AM

    Modify your PFILE to specify only IFILE='location_of_spfile'
    OR
    use STARTUP PFILE='location_of_spfile'
    Ensure that the spfile does have the 2nd instance specific parameters defined correctly.
    Hemant K Chitale

  • Does ios 7.1 contain a carrier update for Meteor in Ireland? I haven't taken the latest update as I don't want to lose my 3G on/off button (which will be replaced with a 4G switch).

    Does ios 7.1 contain a carrier update for Meteor in Ireland? I haven't taken the latest update as I don't want to lose my 3G on/off button (which will be replaced with a 4G switch).

    Yes, I know... I discovered now that I have saved the photos I wanted from it long time ago (for the same reasons, i didn't wanted to lose them). So I'm kind of saved. Also it has been like crap because the laptop where I had my backups is as dead as can be. That was the moment when I panicked. From now on... I'll back-up it everyday. Thank you a lot!

  • TS2928 could someone please tell me how to attach a document to email as an icon that opens....so it does not appear as text in the email??

    could someone please tell me how to attach a document to email as an icon that opens....so it does not appear as text in the email??

    Paste this into Terminal and hit return. If this attachment is text, it should work. Not sure about jpegs.
    defaults write com.apple.mail DisableInlineAttachmentViewing 1
    To reverse the setting, change the 1 to a 0.

  • How to attach sound using link to any button?

    Hi,
    am using this code to call sound file after click on button.
    PAdha1.onRelease = function () {
    mySoundC = new Sound(this);
              mySoundC.attachSound("PAdhaSound1");
             mySoundC.start(0, 99);  //10 represents the number of loops
             gotoAndPlay("play2");
                          _global.myTaalLaya = "High1";
    My problem is I have more than 100 buttons and their own sound files.Now ,this buttons are on separet scene so, it creates separet image for each button and separet sound for each button which is in liblary.Now,my problem is there are huge sound files and button images.So,flash is not supporting this.It does not show .swf file(Output result).
    I think this is beacause of a lot of images and sound files.
    Is there any other way to call sound file through link function.Now sounds files are called through "linkage".from liblary.
    am using flash cs 5 with as 2.

    I found some refrance it,works.But another thing is every code i found is applied on button.But,I cant use this code b.coz I have n number of buttons,it will again create problem.Can u suggest me anything more?
    I want something like it will attch sound through folder path (link).And 1 button should abale to play more than 10 sounds with diffrent click.
    Thanks.

  • How to do submit without any button

    Hi ,
    i am using Jdev 10.1.3.1 .
    i am using JSF ADF BC Technology. i am having a problem. how to do submit the values in inputHidden field without submit or any button.
    even i bind the method in valueChangeListner like below.it is not submit.Am i did any mistake? plz go thru this code and help me.
    Hidden there is no auto submit attribute.
    Code:
    <af:form>
    <af:inputHidden id="startDate"
    value="#{bindings.Eventdate.inputValue}"
    valueChangeListener="#{bindings.Execute.execute}"
    required="false"/>
    <af:commandLink text="search" actionListener="#bindings.Execute.execute}"/>
    OR
    <af:commandButton actionListener="#{bindings.Execute.execute}"
    text="Search"
    disabled="#{!bindings.Execute.enabled}"/>
    </af:form>
    i dont want to use command link or command button for action. how to submit the value in hidden field which is set by javascript function to the corresponding action.
    could you please help me out regarding this?? .
    Thanks & Regards,
    Arun

    Let me see if I have your use case correctly:
    The user views the page, and some event triggers some Javascript code. The Javascript code needs to set the values of a hidden field, then submit the form, executing the action named Execute in the bindings.
    First of all, get rid of the valueChangeListener. If you were to use a valueChangeListener, it would have to reference a method in a backing bean that takes a valueChangeEvent as its argument and returns void. Now try this - I haven't tried it myself, so I don't know that it will work, but I think it will. On your page:
    <af:form id="theForm" defaultCommand="executeButton">
      <af:inputHidden id="startDate" value="#{bindings.Eventdate.inputValue}" />
      <af:commandButton id="executeButton"
                                    actionListener="#{bindings.Execute.execute}"
                                    text="Search"
                                    disabled="#{!bindings.Execute.enabled}"
                                    inlineStyle="display: none;" />
    </af:form>And in your Javascript function:
    document.theForm.submit();The basic idea is that the defaultCommand property of the form says that any submit of the form defaults to the button with the id=executeButton, unless some other button or link is explicitly clicked. The button has an inlineStyle with display none, which hides it from the user. Then the Javascript submits the form which ought to execute the default command.

  • How To Add scrollbar in Spark list which will work on mouse movement ?

    Hi,
    I want to add scrollbar in Spark list which will work on mouse movement, i.e instead scrolling down it will sense mouse position and scroll automatically. I could not find a way to handle this with horizontalLayout.
    I tried hovering on list and setting ensureIndexIsVisible(index) but hovering element index is not present in the Spark List.
    Any idea on this will be highly appreciated.
    Thanks in advance
    Avishek

    Hi,
    I want to add scrollbar in Spark list which will work on mouse movement, i.e instead scrolling down it will sense mouse position and scroll automatically. I could not find a way to handle this with horizontalLayout.
    I tried hovering on list and setting ensureIndexIsVisible(index) but hovering element index is not present in the Spark List.
    Any idea on this will be highly appreciated.
    Thanks in advance
    Avishek

  • Is there any FM which will fetch all functional reportees of a Manager ?

    Hello friends,
    Can anyone please resolve my query mentioned below ? This is related to HR-ABAP.
    Query:- Is there any existing Function Module to get all the functional reportees of a Manager ?
    [Part of requirement:- On report selection-screen, Manager's GIN number will be provided and the report will extract the data for all
    the functional reportees of the manager. My query is, Is there any existing FM for this requirement which will fetch all the functional reportees of a Manager ?]
    Thanks & Regards,
    Ranjan Sahoo

    Hi Mohan,
    this is correct since the values are stored in different tables (fact, dimension etc) due to star sheme modelling. As far as I know there is no standard function module for this issue.
    However ABAP report RSDD_SHOW_ICUBE might help. This is the report for transaction listcube, all relevant data is build up, there you should find all necessary steps and standard reports/modules to fetch the required characteristic value. Although I do not know the exact requirement you will probably have to work with SID values.
    Perhaps this will help resolving your issue.
    Best Regards,
    Marcel

  • How to attach and anchor a Button to a Column Header in a Datagridview

    I am trying to attach buttons to Header Columns within a DataGrid so the buttons will move with the Header Column when the DataGrid resizes.  Columns are set in Properties to Fill.  I am using Visual Studio 2013 - Windows Form Designer. 
    The problem is I'm not sure how to anchor the buttons to the columns so they move with specific columns when the DataGrid is resized. 

    Hi MarcB2015,
    >> The problem is I'm not sure how to anchor the buttons to the columns so they move with specific columns when the DataGrid is resized. 
    To be honesty, I could not understood you clearly. What do you mean by “Columns are set in Properties to Fill”? Which property you set to Fill? Did you set the DataGridView.AutoSizeColumnsMode Property?
    In my option, if you set DataGridView.AutoSizeColumnsMode as “Fill”, and resize the datagridview, the column would be resized too.
    For more information about DataGridView.AutoSizeColumnsMode Property, you could refer the link below:
    https://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.autosizecolumnsmode%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396
    If I misunderstood you, please feel free to let me know.
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How do i create a button which will show new content on same page?

    Hello,
    I hope someone can help.
    I have an image; it's a circle with different parts and different colors for each part. I inserted an image in this post.
    I want to be able to make a button out of each part (will do this with Photoshop), BUT i want to have a text shown on the right from the wheel if you click on a particle of the circle. So i don't want it to go to a new page, but i want to have a textframe to pop-up when you click. And when you click on a different part of the circle a new text will occur (and the old one won't show).
    Hope i made my question clear, english is not my motherlanguage so i'm sorry if my sentences are a bit weird.
    Thanks a lot, i hope it can be done with Muse! (This is a big part of the website.)
    best regards, bart

    Hello,
    You can achieve this using a blank compostion widget ot a tooltip widget.
    You would need to use "no fill" for the trigger containers so that they are transparent and then place them onto each portion of the image.
    Now when user clicks on that portion of the image, the trigger above it gets clicked and in a target container you can have the text displayed.
    The only issue here would be that the trigger containers would be of square/rectangular shape so you might not be able place them peroperly to cover all the sections of the image.
    Please refer to the video which might be helpful : http://tv.adobe.com/watch/muse-feature-tour/muse-trigger-target/
    Regards,
    Sachin

  • How do I replace the back button which was there befor that new clock thing is too much troble just to go back a page I guse thats the end of firefox for me

    How do I get the old version of firefox back
    so I can quickly look at the last page not have to click on a half dozen clicks just to go back 1 page

    The arrow to open the tab history of the Back and Forward buttons has been removed in Firefox 4 and later.
    Use one of these methods to open the tab history list:
    * Right click on the Back or Forward button
    * Hold down the left mouse button on the enabled Back or Forward button until the list opens
    You can look at this extension:
    * Backward Forward History Dropdown: https://addons.mozilla.org/firefox/addon/backforedrop/

Maybe you are looking for