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.

Similar Messages

  • 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);

  • How To Record Sound Using Applet

    How To Record Sound Using JApplet

    Hallo there,
    I am intrested on the same topic but I am not so good to modify the sound sdk demo. Is there anyone willing to share some code?
    Thanks
    Matteo

  • How to test sound using echo call on my Samsung Pr...

    I have a Skype account and am trying to see if the audio works on my Samsung Galaxy Pro 8.4 tablet which is running Android 4.4.2.  How do I make an echo test call on this device?

    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 have KM useful links ivew in a drill down tree format.

    Hi All,
    I am having a KM iview which displays useful links.
    The problem is it initially displays only one/two levels of drilldown from the configured root folder. How can we modify such that it displays <b>n</b> levels of folders & links from the configured.
    Also here in the iview every user is having access to organize the folders & links with the command link <b>Organize Entries </b>. How can we configure such that this link is visible only when a Role is assigned to the user.
    Many Thanks,
    Sai.
    Edited by: Konchada Sai Krishna on Jun 16, 2009 6:30 AM

    Hi All,
    I am using KM Navigation iview to display Useful links.
    I was using <b>LinlListExplorer</b> layout set earlier.
    On search in SDN and SAP help found that we can use <b>RoomTreeLayoutSet</b> to display the KM folders in drilldown tree format.
    But unfortunatly, when I preview this <b>RoomTreeLayoutSet</b> in KM config it works fine but when I use this in the iview layout profile, the none of the folder / documents are displayed..
    Does anybody came across this issue earlier, how can this be resolved.
    Many Thanks,
    Sai
    Edited by: Konchada Sai Krishna on Jun 17, 2009 5:30 AM

  • How to attach files using an applet

    hi,
    i want to know how can i use an applet to upload or attach files in my application
    help me

    Hallo there,
    I am intrested on the same topic but I am not so good to modify the sound sdk demo. Is there anyone willing to share some code?
    Thanks
    Matteo

  • How to attach the images linked in VF03 transaction to an Email

    Hi Experts,
    I want to retrieve the images attached to service for object level in VF03 transaction and attach it to an Email.
    The images attached to the service for object level resides in an external system and we are using archivelink functionality to link the images to SAP level.
    so can anybody help me to find a solution to thisrequirement?
    Regards,
    Ratheesh BS

    Hi,
    Refer to the link it is explained how to configure the output type to send the email with PDF attachment on saving the Billing Document.. you need to do the same way..
    Email Billing document as PDF Attachment while saving from VF01/02

  • How to attach document using Generic Object Service

    Hi all,
    How can i create attachment to the parked invoice using Generic Object services? i want function modules which are used to do it.
    Actually I want to do this from the business object method. I am having word document as one of the workitem step. once i get this document I need to attach this document to the parked invoice so that users can see that document by view object list.
    Its urgent.
    thanks.

    Hello,
    Check your configuration of document type assignement to required business document - object type, Archivelink table, content repository in OAC3 transaction.
    Goto respective business document > Click on GOS > Create > Store business document - Here you can see defined document type with desctiption. Double click on this the assign your document to this business document. Save it.
    This will help in attaching the document to your required business document.
    To verify you can check the archivelink table or by transaction OAAD.
    Hope this will help you.
    -Thanks,
    Ajay

  • How to attach a Callto Link to a swf-file?

    Hi,
    I'm currently working on an animated skype button (swf-file) which I included into my website and I'd like to attach the following command to it:
    Callto://myskypeid
    It would be perfect, if - when hovering on it - it shows that it contains an active link (showing the "hand") and when clicking on it, it calls the user's skype app. to phone me on skype
    So, in the adobe tutorials I found the following code for inserting a "hyperlink" to a button.
    import flash.events.MouseEvent;
    function gotoAdobeSite(event:MouseEvent):void
       var adobeURL:URLRequest = new URLRequest("http://www.adobe.com/");
       navigateToURL(adobeURL);
    linkButton.addEventListener(MouseEvent.CLICK, gotoAdobeSite);
    I customised the code:
    import flash.events.MouseEvent;
    function openskype(event:MouseEvent):void
       var Skype:URLRequest = new URLRequest("Callto://myskypeId");
       navigateToURL(Skype);
    linkButton.addEventListener(MouseEvent.CLICK, openskype);
    But the problem is that there occur "linkbutton not defined property or method" errors when running the code.
    My swf or rsp. my fla file contains 10 movieclips which run one after another on the timescale, all in different layouts so that the colour changes during the "run".
    I tried it with the first movieclip - layer1 - and named its instance "linkButton".
    Didnt work.
    Then I tried to insert another layer and attached another picture with alpha=0, converted it into a button and gave its Instance the name "LinkButton", but also didnt work.
    Can someone please help me here? I suppose its just a "small" mistake and I couldn't be "so far away" from succeeding...
    That would be great! Thanks for the help in advance!!

    Hi Ned and all the others,
    ok ...the problem isn't really fixed so far.
    But the first step is done! :-) with the following code:
    import flash.events.MouseEvent;
    function openskype(event:MouseEvent):void
       var Skype:URLRequest = new URLRequest("Callto://myskypeId");
       navigateToURL(Skype);
    linkButton.addEventListener(MouseEvent.CLICK, openskype);
    I replaced the "Callto://myskypeId" with "skype:myskypeId?call" as the first syntax shows a wrong Skypname resp. the name will be shown with a "/" in the end.
    But now i'm faced with the problem, that
    1st: there's no "hand" shown, when hovering the button on the website.
    2nd: I have to doubleclick on it to open the skype application.
    3rd: after i doubleclicked on the button there opens up always an additional blank page shown in the browser. And now I try to fix that - I tried it with navigateToURL(Skype, "_self"); or "_parent" and so on...but didnt work.
    Meanwhile I think the because of not all of the pictures - MCs - are attached to the instance of "linkButton" that there's the missing "hand" when hovering with the mouse the button. On testing i found out that some of the pics are still bitmaps although i converted them all in the beginning to MCs (??dont know what i did there...).
    Think the "missing hand" problem will be fixed more easily.
    The bigger problem is, how to avoid the additional blank page in the browser when clicking on the swf on the website?
    It seems to me, that on the one hand, I'd like to have an "active" link on that swf (or button) that shows the "hand" in the mousepointer - but on the other hand, it's not really a website which I'd like to open up then but just an application. So maybe here's the main problem.
    Alternatively I thought about replacing the sequence with the URL request in the code by something rather appropriate for lauching applications e.g. FS Command or something like that. (read that somewhere).
    If someone knows/had similar problems/could help me again - or at least to the next step that would be perfect!
    Thanks again, Ned for your helping advice (I learned something!!!) - maybe you could help me with the above probs?
    Best regards
    steff

  • How to reformat a used iMac without any restoration disc.

    We were recently giving a used 2007 iMac. It still has all the previous owners settings and applications. How do I reformat the computer to factory settings without any of the disc that came with the computer.

    I don't have experience with 2007 Mac, but with the newer machines and Snow Leopard, you can use any newer version OS X installer
    Actually, if the newer OS was purchased at the app store, then its license is tied to the Apple ID it was purchased with and the license is not transferable, meaning they are running a pirated copy. That also means that the seller is obligated to erase the disk and reinstall the original OS.
    The buyer of such a Mac will never be able to reinstall unless they purchase their own license as Apple's servers will check the machine/Apple ID; in order to do that, they would need Snow Leopard in order to wipe the drive, install SL, and then purchase the newer OS using their own Apple ID.

  • How to Retrive Data using Case or any other method

    Hi All
    i am new to Oracle, i have three tables. 1 )*Person* contains following data
    id,     Name,      DOB
    98,     sss,     01/01/2009
    99,     rrr,     01/01/2009
    100,     rws,     01/01/2009
    2) Reference Table Contains Following Data
    Person_ID,     Ref_type,     Reference
    98,     AAA,     jk98923
    98,     BBB,     io9898
    99,     AAA,     nb6666
    100,     BBB,     g10090
    now i need all pesons who got reference AAA only, i dont want to use any where clause. this because i have to incoporate this logic in Business Objects Report.
    i need output as follows
    Person_ID,     Name,      Reference
    98,     sss,     jk98923
    99,     rrr,     nb6666
    100,     rws,     NULL
    guys i know this is so simple for you, please come back to me on this. many thanks in advance
    Edited by: user11078264 on 17-Apr-2009 05:46

    How about something like this (note the WITH clause was used to generate sample data)?
    SQL > WITH person AS
      2  (
      3  SELECT 98  AS ID, 'sss' AS NAME, TO_DATE('01/01/2009','MM/DD/YYYY') AS DOB FROM DUAL UNION ALL
      4  SELECT 99  AS ID, 'rrr' AS NAME, TO_DATE('01/01/2009','MM/DD/YYYY') AS DOB FROM DUAL UNION ALL
      5  SELECT 100         AS ID, 'rws' AS NAME, TO_DATE('01/01/2009','MM/DD/YYYY') AS DOB FROM DUAL
      6  ),
      7  reference AS
      8  (
      9     SELECT 98       AS PERSON_ID, 'AAA' AS REF_TYPE, 'jk98923' AS REFERENCE FROM DUAL UNION ALL
    10     SELECT 98       AS PERSON_ID, 'BBB' AS REF_TYPE, 'io9898' AS REFERENCE FROM DUAL UNION ALL
    11     SELECT 99       AS PERSON_ID, 'AAA' AS REF_TYPE, 'nb6666' AS REFERENCE FROM DUAL UNION ALL
    12     SELECT 100      AS PERSON_ID, 'BBB' AS REF_TYPE, 'g10090' AS REFERENCE FROM DUAL
    13  )
    14  SELECT     PERSON_ID
    15  ,  NAME
    16  ,  MAX(DECODE(REF_TYPE,'AAA',REFERENCE,NULL)) Reference
    17  FROM       person
    18  JOIN       reference ON person.id = reference.person_id
    19  GROUP BY PERSON_ID, NAME
    20  ORDER BY PERSON_ID
    21  /
    PERSON_ID NAM REFEREN
            98 sss jk98923
            99 rrr nb6666
           100 rws

  • How to detect sound using JMF

    Hi,
    I want to detect a beep sound that is played on the machine by another application. Basically, connect to the sound card and see if beep was played. This sound would effectively play on the machine speakers. if speakers are present.
    I want to eventually grab a couple of sounds but first start with beep. So, over a duration of 2 minutes, I would alternate between 'beep' and 'bang'. And whenever these sounds are played, I want to be able to detect them.
    I would appreciate if there is sample code that I can start with.
    I am new to java audio/media and most data that I found was recording sound from microphone.
    Thanks.

    I tried getting the device list on my system but the following code is not returning any devices (deviicelist is empty) ? When I look at my Device Manager on Windows7 machine, I see there is 'High Definition audio device' . Does anyone have a clue why/when would this happen ?
    I have jmf installed and it is in the classpath. I also have jmf.jar, sound.jar added to my project.
    CaptureDCaptureDeviceInfo di = null;
    Vector deviceList = CaptureDeviceManager.getDeviceList(
                        null);
              if (deviceList.isEmpty())
                   System.out.println("No Devices found");
              if ( deviceList.size() > 0 )
              di = (CaptureDeviceInfo)deviceList.firstElement();
              System.out.println("di::" + di.getName());

  • How to record sound using video setting of camera?

    using camera as a video recoder works fine but no sound. is sound recording with video possible? Ipad 2

    Hallo there,
    I am intrested on the same topic but I am not so good to modify the sound sdk demo. Is there anyone willing to share some code?
    Thanks
    Matteo

  • How to Extract data using Query or any data fucntion in Excel.

    Dear Users,
     i want to ask one question about excel..............
    i have a parts list sheet, it contains part-number , price, name........ in columns. now my question is this that for example  part names are as under ,
    fix contactor
    moveable contactor
    half contactor
    contactor gm
    contactor skf
    as you saw in the names of parts contactor is the same in all the column. i want such a query that extract all the entries which contain contactor and make a new column or highlight them in the same column. my requirement is very similar to dos command when
    i want to see the list of all files which have exe extension ...dir *.exe.
    Best Regards
    Tahir Mehmood

    =IFERROR(IF(FIND( "contactor" ,LOWER(A1))>0,TRUE,FALSE), FALSE)
    This formula checks cell A1 and will flag TRUE if it matches the requirements of the specified text.  Have wrapped a lower function around the cell to mitigate for different upper or lower case mismatches.
    Alternativey you can use conditional formatting > "Use a formula to determine which cells to format" and use the following formula  =FIND("contactor", LOWER(A1)) >0.  Change the format to colour in the cell and copy the
    format down to all corresponding cells.  This will now highlight those that match the text value.
    Regards

  • No XML file attachment when using Submit by Email button

    Hello all -
    I'm using LiveCycle Designer 8.0 to create a simple form, and am using the Submit by Email button to return the user supplied data. When I save the form and test it with Adobe Acrobat Professional 8.1.1, the email goes through just fine, but there is no attachment. No XML file, no nothing. Just a blank email with my signature block at the bottom. Has anybody else experienced this? Any ideas on what could be wrong? All I want is the XML file.

    You have multiple options to sending whole PDF format.
    1) Set the submit button to submit whole PDF format by using a mailto: [email protected] in the submit button action URL.
    2) Set the submit button to fire a javascript that submits whole PDF format. See Adobe's Javascript reference guide for instructions.
    Note: Methods #1 and #2 require Adobe Acrobat or Extended Reader Rights; because, Adobe Reader users are restricted to submitting just the data formats; such as FDF,XML, XFDF, XDP, and HTML. Beware extending reader rights to a PDF form using Adobe Acrobat places end user EULA restrictions, such as not more than 500 end user submissions for each form.
    My Recommendations:
    #3) Set the submit button to point to a URL of a server-side script; such as ASP.net. Then set the format to a data format; such as FDF, XML, XFDF, or XDP; and use ASP.net and iTextSharp (Free) to merge the data with a blank PDF form; and attach the submission to an outbound SMTP mail message and send without 3rd party email software such as MS OUTLOOK.
    #4) A combination of #1 and #3; where you enable usage rights on the PDF using Adobe Acrobat; and send to a server-side script which bypasses client-side email software.
    Check out the following website for online examples that submit to a server side script:
    www.pdfemail.net/examples/

Maybe you are looking for

  • Disable touchpad under Win 8.1 on G580

    Starting with Win 8.1, there is no Lenovo driver for the Elan touchpad. It's provided directly by the Win 8.1 OS. Now, in previous OS, I could deactivate easily the touchpad, by entering in Mouse applet from Control Panel. Now, this procedure isn't a

  • Music player with high dpi support?

    I usually use Clementine as music player. Unfortunately, it does not have any hidpi support (3200x1800 resolution on a 13.3'' display). So do you know any good music player with hidpi support?

  • I would like to lock a particular block of apps and need a password just for that block of apps only.  Is this possible?

    I love to pass my iphone to the kids.  My 20month old grandson can easily navigate from app to app and keep himself occupied. However, there are certain apps I do not want him to open or accidentally delete. How can I put a lock on only certain apps

  • Ignore

    Hi, I am using Enterprise Manager 10g on a 10.2.0.4 DB I am tryin to add a user defined metric (1st time)... so on the user defined metric page I click create... I enter every required field... then click ok... no error mesage.. no succes message nei

  • I have no sound can anyone help,

    I have an ho 600-1350 with windows 7