Reg: Problem with adding of noise

Hello

I'm new to html5 canvas using flash cc. I add sound effects (mp3). And I'll play pause command.

Code:

_main = this;

This.Stop ();

createjs. Sound.on ("fileload", handleLoad);

createjs. Sound.registerSound ("song.mp3", "soundID");

function handleLoad (event) {}

_main. AUDIO1 = createjs. Sound.Play ("soundID");

_main. Play();

}

I got error

Eception TypeError: Cannot read property 'on' undefined.

You will need to add plug-ins or not.

If please explain how to add sound and play commands break.

Thanks in advance...

Web publishing in Animate already handles the loading and playback of an audio file.

To simulate the play/pause/stop buttons on an audio, you can use the following code snippet:

Create three buttons/movieclips with instance names: play_btn, pause_btn, stop_btn

Import the audio into the library and give it a name of link 'AudioLinkageName' by double clicking on the link column in the library.

Add the following code in your first frame and test movie (Ctrl + Enter)

This.play_btn.on ("click", function (e) {}

if(!this.) S1)

This.S1 = playSound ("AudioLinkageName");

on the other

This.S1.Play ();

(} (this) .bind);

This.pause_btn.on ("click", function (e) {}

If (this.) S1)

This.S1.Paused = true;

(} (this) .bind);

This.stop_btn.on ("click", function (e) {}

If (this.) S1)

This.S1.Stop ();

(} (this) .bind);

Tags: Adobe Animate

Similar Questions

  • Problem with adding new storage to the CDV provider profile

    Hi all

    I have problem with adding new storage to the CDV provider profile.

    My ENV:

    VCD Version 5.5 latest

    vCenter 5.5

    VCDDB - SQL

    I created the environment with two profiles of storage for the first time and it's work well (the storage profile created before I joined the vCenter on the VCD)

    I created tags and he attributed to the data store and I see the new VM storage through the vSphere web client policy.

    I can also see VMS on the VCDDB the dbo.storage_profile_inv the new storage policy table and when I create new provider TDC I can't.

    What I'm trying:

    1 Refresh the storage via the VCD (right click on the attached vCenter) profile

    2. restart the inventory and the profile based on the vCenter servers

    3. restart the VCD and vCenter servers

    Help, please

    You can just follow KB 2075366.

  • I'M HAVING A PROBLEM WITH MY OM NOISE AND ACOUSTICS MY PAVILION DV 7 PORTABLE

    I'M EDDIE ST. ROMAIN AND I HAVE a PAVILION DV7 CTO 6100 SERIES NOTEBOOK AND THE PRODUCT NUMBER IS QB648AV AND THE NUMBER of SERIES IS [personal information deleted] AND MY OS IS WINDOWS 7 64 BIT AND I AM HAVING a PROBLEM WITH THE SOUND AND AUDIO I NOTE THAT if I look AT THE VIDEO of NEWS OR I don't HAVE NO SOUND OR AAUDIO IT COME IN AND OUT AND BREAKING AND the AUDIO IS AS STATIC AND THE PICTURE IT START AND STOP AS IT AUTOMATICALLY PAUSE ON IT OWN WITH ON ME NOTHING I NOTICE TOUCH CELA THESE LAST TIME AND I'M ALL EARS ON THIS PROBLEM AND ALL SUPPORT IN WHICH I CAN GET OUT THIER FROME SOMEONE I'M LOST HERE TRYING TO UNDERSTAND THIS POINT IS WHAT THIER MAY BE SOMETHING WRONG WITH MY SYSTEM HERE OR MAY IT HAS SOMETHING TO DO WITH HAVING A DIAL-UP ACCESS BECAUSE IT IS WHAT I HAVE I AM OPEN TO ANY SUGGESTION TO THIER TO HELP ME GET THIS PROBLEM SOLVED ONCE AND FOR ALL AS SOON AS POSSIBLE I LOOK FORWARD TO HEARING FROME SOMEONE IN REGARS ABOUT THIS PLEASE. MR. EDDIE ST. ROMAIN

    Hello

    Please remove the serial number of the position since its considered to be personal information.

    Ru trying to watch the news online, if so, then yes its due to dial-up access.

    For videos (as in watching videos) streaming on the internet, you need a faster internet connection as a connection high speed.

    Try playing videos on the system as in the sample videos folder if it plays very well I suppose that the system should be fine.

  • Problem with adding a background - please help!

    Hi all

    I try to create my first BB app and run into a few problems with the addition of a background image on my screen.  I try to activate the background on my request without using the class BackgroundFactory I need this works for older BB models.

    I use EncodedImage so that I can to scale the context in which any size of BB.  I am aware of the loss of the aspect ratio, this isn't a problem for me.

    Here is my code:

    The background image.
    backgroundImage = EncodedImage.getEncodedImageResource("img/image.png");
           
    int currentWidthFixed32;
    int currentHeightFixed32;
    int requiredWidthFixed32;
    int requiredHeightFixed32;
    int scaleXFixed32;
    int scaleYFixed32;
           
    Get the dimensions of the current image in fixed-point number
    currentWidthFixed32 = Fixed32.toFP (backgroundImage.getWidth ());
    currentHeightFixed32 = Fixed32.toFP (backgroundImage.getHeight ());
           
    Get the dimensions of the image necessary in fixed-point number
    requiredWidthFixed32 = Fixed32.toFP (Display.getWidth ());
    requiredHeightFixed32 = Fixed32.toFP (Display.getHeight ());
           
    Calculate the scale factor
    scaleXFixed32 = Fixed32.div (currentWidthFixed32, requiredWidthFixed32);
    scaleYFixed32 = Fixed32.div (currentHeightFixed32, requiredHeightFixed32);
           
    Resize the image
    backgroundImage = backgroundImage.scaleImage32 (scaleXFixed32, scaleYFixed32);
    Imagearriereplan = backgroundImage.getBitmap ();

    Display display = new MainScreen();

    VerticalFieldManager verticalFieldManager = new VerticalFieldManager)
    VerticalFieldManager.USE_ALL_WIDTH |
    VerticalFieldManager.USE_ALL_HEIGHT |
    VerticalFieldManager.NO_HORIZONTAL_SCROLLBAR |
    VerticalFieldManager.NO_VERTICAL_SCROLLBAR |
    VerticalFieldManager.NO_HORIZONTAL_SCROLL |
    VerticalFieldManager.NO_VERTICAL_SCROLL) {}

    Override the paint method to draw the background image.
    {} public void paint (Graphics graphics)
    Draw the background image, then paint.
    graphics.drawBitmap (0, 0, backgroundBitmap.getWidth (), backgroundBitmap.getHeight (), Imagearriereplan, 0, 0);
    Super.Paint (Graphics);
    }
    };
    Add the handler to the screen.
    mainScreen.add (verticalFieldManager);
           
    VerticalFieldManager vfm2 = new VerticalFieldManager)
    VerticalFieldManager.NO_HORIZONTAL_SCROLLBAR |
    VerticalFieldManager.VERTICAL_SCROLLBAR |
    VerticalFieldManager.NO_HORIZONTAL_SCROLL |
    VerticalFieldManager.VERTICAL_SCROLL);
           
    verticalFieldManager.add (vfm2);
           
    The LabelField will be visible through the transparent image.
    LabelField labelField is new LabelField ("is a label");.
    ButtonField buttonField = new ButtonField ("asdf");

    Add the fields to the Manager.
    vfm2. Add (labelField);
    labelField = new LabelField ("this is a label");
    vfm2. Add (labelField);
    labelField = new LabelField ("this is a label");
    vfm2. Add (labelField);
    labelField = new LabelField ("this is a label");
    vfm2. Add (labelField);
    labelField = new LabelField ("this is a label");
    vfm2. Add (labelField);
    labelField = new LabelField ("this is a label");
    vfm2. Add (labelField);

    vfm2. Add (buttonField);
    buttonField = new ButtonField ("asdf2");
    vfm2. Add (buttonField);
    buttonField = new ButtonField ("asdf3");
    vfm2. Add (buttonField);
    buttonField = new ButtonField ("asdf4");
    vfm2. Add (buttonField);
    labelField = new LabelField ("this is a label");
           
    Tap on the screen.
    pushScreen (mainScreen);

    I want the "image.png" to act as a 'real' background, however, when I run the above code, the image.png appears in the form of the background, but when I scroll down, the background scrolls as well, and I see a white space.  I want to have "image.png" would you like the background permanently and add another manager who would be scrolling if scrolling is required.

    What I'm doing wrong here?  Why I can't see the vertical scroll bar and why the background is not scrollable?

    Any help is appreciated!

    See you soon!

    Make sure that you set the FullScreen.DEFAULT_MENU property - this will give you the default system menu items.

    You add your menu items by substituting makeMenu().

  • problem with adding line in tabular form after that put 4.1.1 to level

    We have recently installed the Update 4.1 .1. We now have a problem with some of our tabular forms created using the wizard. The delete and update feature works fine, but when trying to insert a new record, it will insert only the first record, but after that, it will no longer inserts. It acts as ApplyMRU (updated online Multi) is not at all shooting. No success or error message. I tried to create forms based on the rowid and also on the suites (with and without triggers), and they all behave the same way.

    This happens both in IE and Mozilla. Tabular forms were working fine before the upgrade.

    Everyone knows this?

    We just hit this issue and thanks to this thread and a light bulb above my head, resolved this question today. There is more to the story. Copy the necessary images in place works, but get the full version 4.1.1 images.

    We were already on 4.1.0.00.32, so I applied only Patch 13331096 upgrade to 4.1.1.00.23. Patch 13331096, at least one that I downloaded a few weeks ago IS NOT ALL OF THE NECESSARY IMAGES.

    Fortunately, I thought to download both. When I did a number of files in the directory images between the full version and the patch, the County came up short for the patch.

    If you have this problem, get your hands on the full release 4.1.1.00.23, NOT Patch 13331096and copy these files to image in place. Who sets the we.

  • problem with adding transitions and effects on clips

    I'm having a problem with the addition of transitions and effects on the clips. The problem is when that little black bow appears on the corner of each item (sometimes only on one site and other times not at all). Could someone tell me what causes this?

    problem adding transitions and effects.jpg

    You can read this:

    http://help.Adobe.com/en_US/PremierePro/CS/using/WSE2A9B838-1422-4d8a-9A03-CFDF4332533B.ht ml

  • Problems with adding fields of digital signature

    OK, so I'm an IT Manager / developer DB for a defense contractor. And I consider myself reasonably technically competent in MOST things. But this problem has left me speechless (for the most part) for lack of decent instructions or advice are on the lines.

    , I'm looking to create a form for use by the employees of my company to follow the 'signatures'. we have so far put in forms manually signed for this purpose, my goal is to go paperless with this process. I know it can be done because the air force (my client) uses a form that allows you to do something similar (see here: http://www.dtic.mil/whs/directives/infomgt/forms/eforms/dd2875.pdf). Forward listed form allows you to 'click' on the signature block and add your digital signature (which, for the AF, comes from an IDENTITY card). Let explain me the dev environment, I am using / testing on:

    Creation of the form:

    I use my laptop with my own personal copy of Adobe Pro 9. I have no installed dig signature or any ability to use on this system. I CAN, however, add the field to the GIS during the creation of the form and the field responds when you click on it, but with a command prompt different than the 2875 (I think this may be part of the question). Then I tried sending it to my AF computer to test whether it will actually allow me to add a signature block.

    Tested the form:

    On my AF computer I only software adobe reader 9 installed, and it will allow me to add my signature to the DD 2875. When I do my newly created form with my added field GIS that nothing happens at ALL when you click it.

    Troubleshooting:

    I first noticed that under form properties security has been put in place to NOT allow the signing. I changed that and returned on one system to the other, and it seems that in the translation he loses this setting. First, I assumed it might be due to the security the AF place on its e-mail servers. So in response I burned the form of a cd and manually transferred but got the same result.

    Conclusion:

    I terribly bit educated on the development of PDF I suspect to understand everything that happens here, but I feel there's a script attached to the FA form that works and allows him to function properly. If this is the case I don't know what recourse I have, if any. BUT, if its something simple that I'm missing just in cause of my lack of experience I hope someone here can help me.

    Thank you!

    Hi LBitner99,

    Before you can use Adobe Reader to add a digital signature to a PDF document, the file must be "enabled for the drive.  There are two ways to do this, you must use a server, what the DoD because they need to drive helps thousands of documents. The other way is to use Acrobat Pro (I know that you said you have Pro, but for anyone else reading this has has Acrobat Standard, this version is not the feature activate Reader).

    With the file you worked on open in select Acrobat the Advanced > extend features in Adobe Reader menu item. Click the Save button in the dialog box that followed, and the new file will have digital signature rights in Reader.

    I hope this helps.

    Steve

  • Problem with adding previously blocked contact.

    I tried to add an old friend of my friends on Skype after believing have been they are blocked for a while. I emptied my blocked list and sought their username after asking them what it was, but the Skype directory could not find them. After about an hour of googling and try to add them in different ways, I made a new Skype account and looked for their names, and he came instantly. Does anyone have any idea what this problem is? I am not sure if they have blocked me without knowing it, but they have added me as a contact, and I've never had a notification that someone has tried to add me.

    I am sure I am running the latest version of Skype. My OS is Windows 7 64 bit Home Premium edition.

    I don't get the error messages.

    First of all, make sure that you actually have the last currently 7.1 version installed Skype.

    http://www.Skype.com/en/download-Skype/

    There was a bug in version 7.0 , making it impossible to add a previously deleted contact.

  • Problem with adding a Facebook activity streams

    Hi again,

    I have trouble getting a stream is displayed in on my new site, I placed coding in such indicated, but it will not be displayed when I test of recent activity on Facebook. This site has not been added to the internet, but I don't have the codes that I use for the facebook stream, that would be sufficient to determine what is the problem?

    < onload of the body = MM_preloadImages('..) ' Accueil/images/Page2.png ','... / images / on Us2.png ','... /images/services2.png ','... / images/Contact Us2.png ','... /images/stephensthumb2.jpg ',»(... / images/twit copy.png') ">" ".

    < div align = "center" class = 'fb-root' id = 'fb-root' > < / div >

    < script > (function (d, s, id) {})

    var js, SJF = d.getElementsByTagName (s) [0];

    If (d.getElementById (id)) return;

    js = d.createElement (s); js.ID = id;

    js. SRC = "//connect.facebook.net/en_US/all.js#xfbml=1 & 102320399899536 = appId;

    fjs.parentNode.insertBefore (js, SJF);

    (} (document, 'script', 'facebook-jssdk')); < /script >

    < fb:activity

    " site = ' http://www.showcaserestoration.com "

    app_id = "102320399899536" >

    < / fb:activity >

    < div align = "center" class = 'background' id = "bottom" > < div class = "Panel" id = "Panel" >

    < div class = "header" align = "center" id = "header" >

    " < div class ="tabs"align ="center"> < a href =" http://showcaserestoration.com/contact.html "> contact < /a > < / div > < div class ="tabs"> < a href =" http://showcaserestoration.com/services.html "> services < /a > < / div > < div class ="tabs"> < a href =" http://showcaserestoration.com/about.html "> us < /a > < / div > < div class ="tabs"> < a href =" http://showcaserestoration.com/ "> Home < /a > < / div > < / div > < div class = 'frame' id = ' framework' > '.

    < / div >

    < div align = "center" class = "body" id = "body" >

    < div align = "center" class = 'content' id = "content" > <!-TemplateBeginEditable name = "ContentRegion"-> ContentRegion <! - TemplateEndEditable - >

    < / div >

    " < div align ="center"class = 'flow' id ="flow"> < div class ="facebook"id = 'facebook' data-href = ' http://www.showcaserestoration.com "data-app-id ="102320399899536"data-width ="210"data-height ="450"data-header ="true"data-recommendations ="false"> < / div > < / div > "

    < / div >

    Any help is appreciated!

    Download page for test on your server.

    I don't know if FB feeds display when you preview locally.

    Nancy O.

  • Problem with adding a new value to the default login Page

    I hope he's a simple guy, I added an element of the selection list to the standard login page (P101) to allow the user to select a FIELD as well as their username and password.
    When the next page appears and I am trying to retrieve the value which is held in the new domain, it has been deleted, but the values entered in the elements
    P101_USERNAME and P101_PASSWORD are always present.

    I can't understand why the values that held in points P101_USERNAME and P101_PASSWORD are always present, but P101_DOMAIN has been deleted.

    I tried to create value to the zero page and writing in the field of value using pl/sql and javascript, but as soon as the page is requested, the value is cleared.

    Any ideas how to get around this problem?

    Thanks in advance

    I guess that your login page contains a process like this:

    BEGIN
       wwv_flow_custom_auth_std.login (p_uname           => v ('P101_USERNAME'),
                                       p_password        => :p101_password,
                                       p_session_id      => v ('APP_SESSION'),
                                       p_flow_page       => :app_id || ':1'
                                      );
       :t_random_number := :p101_random_number; /* this is something I added to my code */
    END;
    

    Now, if you go to this page:

    http://Apex.Oracle.com/pls/OTN/f?p=31517:1

    Please note the random number assigned to you. Once you login, the same number will appear on page 1 (near the top).

    So, this is how you can solve your problem.

       :t_random_number
    

    is a part of the application.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • Premium HP: HP Premium - problems with adding an additional column to a matrix

    I have version 2015 7 28 (8151) firmware and can not be updated any further because I have only the Android app.

    I wanted to add a 4th column of a 3 by 3 matrix, which is stored in M1.

    I did this way:

    ADDCOL (M1, [0,0,100], 4);       Add the fourth column: [0,0,100]

    Another way to do it is:

    M1 (1.4): = 0;

    M1 (2.4): = 0;

    M1 (3,4): = 100;

    Both give the same result when I look in the catalog of the matrix.

    Also when I enter the House finds out or make some operations with it.

    Strange is that in the catalog of matrix the first matrix has a content of memory that is about twice the memory of the second matrix.

    Nothing to concern about one would say.

    But when I use the first matrix in the advanced version of TRIANGLE_P it gives lines output instead of triangles, and the second is behaving normally.

    I seems to me that there is something wrong with the ADDCOL command.

    I think that this has been corrected already past the 8151 must therefore in there when / if the android version is updated.

  • I have a problem with adding and deleting files in Windows Media Player.

    Media Player will not play the selected files but then goes on to play other files. When I delete the files from the media player and try re - add I get the message "the media player is installed incorrectly. Have tried to reinstall media player, but it always fails at the implementation stage. It seems that the link between the player and the music files has been corrupted. Further, I have not found another way to read these files! They are referred to as Windows media audio files. Is that mean that only Media Player can read? I have hundreds of music files. Any help please? I can't upgrade XP on this computer so intended to stick with it for another year or so.

    Original title: Media player 11 with XP SP3. Link to player with audio files has been corrupted?

    Hi Martyn,

    Thanks for keeping us posted and share this information with us.

    I would have you look at the article-

    http://www.Microsoft.com/windows/windowsmedia/player/Webhelp/default.aspx?&mpver=11.0.5721.5145&ID=C00D11DF&ContextId=89&OriginalID=C00D11DF

    Back to us for any issues related to Windows in the future. We will be happy to help you.

  • Problem with adding, deleting, replacement of containers in qml

    Hello

    Here is my code. I can't add and replace the containers on a page when clicking on the various buttons on the page.

    Please help me in fixing this problem

    import bb.cascades 1.0

    {Page}
    ID: helpScreen
        
    content: {container
            
    {Of container
    layout: {DockLayout}
    }
    horizontalAlignment: HorizontalAlignment.Fill
    ImageView {}
    imageSource: "asset:///images/top_bar.png."
    horizontalAlignment: HorizontalAlignment.Fill
    verticalAlignment: VerticalAlignment.Top
    }
    {Of container
    layout: {StackLayout}

    direction: LayoutOrientation.RightToLeft
    }
    horizontalAlignment: HorizontalAlignment.Left
    verticalAlignment: VerticalAlignment.Center

    Button {}
    preferredWidth: 50
    text: 'start '.
                     
    }
                                    
    }
    {Of container
    layout: {StackLayout}
    direction: LayoutOrientation.RightToLeft
    }
    verticalAlignment: VerticalAlignment.Center
    horizontalAlignment: HorizontalAlignment.Right
    ImageButton {}
    defaultImageSource: "asset:///images/faq_btn.png".
    enabled: true
    onClicked: {}
                            
    helpcontainer. Remove()
    faqcontainer. Add()
                            
                            
                            
                            
    }
    }
    ImageButton {}
    defaultImageSource: "asset:///images/help_btn.png".
    onClicked: {}

    helpcontainer. Add()
    faqcontainer. Remove();
                           
    }
                        
    }
    }
    } //end of the container of the header
           
    {Of container
                
    ID: helpcontainer
    {Label
                    
    text: "What is Point?"
    }
    } //end of help container
    {Of container
                        
    ID: faqcontainer
    {Label
                            
    text: "not able to scan?
    }
    } //end of the container faq
       
    } //end main container
    } //end of page

    Thanq u... Slipped my question.

    Instead of addind I removed it, I fixed it by setting the visible property = true and visible = false. It worked fine

    ImageButton {}
    defaultImageSource: "asset:///images/faq_btn.png".
    enabled: true
    onClicked: {}
                            
    faqcontainer. Visible = true
    helpcontainer. Visible = false
                            
    }
    }
    ImageButton {}
    defaultImageSource: "asset:///images/help_btn.png".
    onClicked: {}

    faqcontainer. Visible = false
    helpcontainer. Visible = true
                           
    }
                        
    }
    }

  • x201i problem with adding devices and connecting with them via Bluetooth

    I have a new computer x201i laptop Windows 7, Bluetooth is installed and running, the icon is on but I can't communicate with external devices like mobile phones. The system concludes that they are, but does not allow the exchange of files. I get the error message could not connect with the device, or did not find the right driver for the external device. I reinstalled the driver from Lenovo support page, no result any ideas? Help, please...

    Try to install nokia ovi suite. You can find it here: http://europe.nokia.com/support/download-software/nokia-ovi-suite/compatibility-and-download

    Normally, it will install the drivers you need.

    Hope that helps...

  • Problems with adding movies in Adobe Premiere!

    I am currently in video editing. When I would pull in the first clip (javaw) so I was just with the sound. I have collected in the film, as I have always done before. But only the audio track appears.3bild.png

    Try clicking on the symbol of V1 on the far left in the timeline before you drag and drop.

Maybe you are looking for

  • App keeps redownloading

    I have a problem with a certain app in my iPad Air. When 9 released iOS, I've updated and decided to try a game called Crossy Road. Everything was ok until updating this app, December 12. It happened also with other applications on the same day, but

  • Equium L40 - 17 M: WLan connection but the light no longer works

    I recently transferred my laptop Equium L40 17 M. ROM Vista to Windows 7 64 bit and since that time my WiFi light has not worked - of ideas? Help!

  • Built app crashes instantly

    I am building an application in Labview 2010 Professional (upgrade to the latest patch, f4) The application is built successfully, but when I run my application built, it crashes instantly (on the same computer, I built it on) declaration of an accid

  • The case of the GoList empty

    Hey everybody! It seems that every time I add songs to my GoList and then plug my rocket to my computer, add pieces either internal or external memory, and then disconnect, my GoList is empty.  This happens every time. I sent an email, SanDisk, who s

  • The difficulty to create a recovery disk

    I tried following these steps from the Manual: To create a system recovery media1. launch Dell backup and restore.2. click on the tile to recovery media.3. Select the USB Flash drive or disk, and then click on continue.4. follow the instructions on t