problem with sound mvie plays does not automatically

Hello

I'm a bit of a novice when it comes to flash and as3, but I managed on the basis of set up animation with a voiceover. The voiceover plays the long and parts of the animation correspond to what is said in the voice so it's imperative that they play together.

I managed to add a play and pause button working ok however the animation starts automatically during the test, but the voice-over is not. You must click on the button foloowed break by the play button to get the voice-over to play. Once this is done the play buttons / break work perfectly. However, they voiceover and animation must start exactly at the same time the done voice-over refers to the animation.

I hope I'm supposed! I'm so close to do this work, but I can't seem to understand this. Any help would be appreciated as I am quite lost with as3!

I have 3 layers in the flash file, one with content (movieclip called MAN), with the buttons play/pause (go and stop) and the ActionScript (see below).

import flash.events.MouseEvent;

var mySound:Sound = new voiceover();

var myChannel:SoundChannel = new SoundChannel();

var lastPosition:Number = 0;

var soundIsPlaying:Boolean = true;

go.addEventListener (MouseEvent.CLICK, startplaying);

function startplaying(event:MouseEvent):void {}

dude. Play();

{if(!soundIsPlaying)}

myChannel = mySound.play (lastPosition);

}

}

halt.addEventListener (MouseEvent.CLICK, stopplaying);

function stopplaying(event:MouseEvent):void {}

dude. Stop();

lastPosition = myChannel.position;

myChannel.stop ();

soundIsPlaying = false;

}

I'd appreciate any help as my deadline is looming and I am so stuck on this last obstacle!

Thanks in advance

Try to set the value of soundIsPlaying to false instead of true at the beginning of your code.  On the start menu, function to play the sound starts only if he does not play, but by having this value to be true at first, he thinks that the sound plays...

if(!soundIsPlaying) {/ / check if the sound is NOT playing (!)}

Tags: Adobe Animate

Similar Questions

  • I keep having problems with my server DNS does not. Computer Blu - Ray player and wireless both have problems with the connection.

    I have problems with the server DNS does not.  I have been using my wireless on my computer and watching netflix on my Blu - ray player at the same time.  The Blu - Ray player froze and wouldn't connect.  At first, I thought that the network has not been configured correctly, but it worked not five minutes before.  I tried many things and I realized it was that my DNS server does not.  Does anyone have any suggestions?

    original title: DNS server does not

    Hi Dwright,

    1. have you made changes on the computer recently?
    2. not the problem only occurs when you watch netflix on Blu - Ray player?

    Method 1
    I suggest you try the steps from the following link to fix the server DNS does not problem.
    a. click on start and then Control Panel.
    b. go to the networking and sharing Center and then click on change adapter settings.
    c. right-click on connection to the Local network and select Properties.
    d. Select Internet Protocol Version 6, and then click Properties.
    e. Select obtain DNS server automatically an address and press Ok.
    f. Select obtain IP address automatically.
    g. Repeat steps for Internet Protocol version 4 as well.

    Method 2
    Try resetting Winsock2 from the following link:

    How to determine and to recover from Winsock2 corruption in Windows Server 2003, Windows XP and Windows Vista (applies to Windows 7)
    http://support.Microsoft.com/kb/811259

    Method 3
    Reset TCP\IP.
    How to reset the Internet Protocol (TCP/IP) (applies to Windows 7)
    http://support.Microsoft.com/kb/299357

    Additional information:
    Windows wireless and wired network connection problems
    http://Windows.Microsoft.com/en-us/Windows/help/wired-and-wireless-network-connection-problems-in-Windows

  • I have a problem with HP Flash that does not appear on my PC

    I have a few problems with HP Flash I do not know the * beep t. when I put in the other system, I mean Mac, it shows me and allows.

    but when I remove that put in another system it gives me just a response as it is connected when I go on my computer there is not availble Flash sign.

    I'll be back in fact once to the top of my Flash on Mac. When I got to that obtained in another system just Visible or disabled this system. Please someone who has the solution, in particular among providers of HP.

    WKhan wrote:

    I have a few problems with HP Flash I do not know the * beep t. when I put in the other system, I mean Mac, it shows me and allows.

    but when I remove that put in another system it gives me just a response as it is connected when I go on my computer there is not availble Flash sign.

    I'll be back in fact once to the top of my Flash on Mac. When I got to that obtained in another system just Visible or disabled this system. Please someone who has the solution, in particular among providers of HP.

    Hello

    Please provide more information: what is your computer and its operating system? I think

    (a) HP is not a product called Mac

    (b) HP has no any product called Flash.

    As a result, HP cannot be Provider Service of Flash on Mac computer.

    Kind regards.

  • Problem with InDesign startup script does not import XML images

    I'm doing an XML import automatically from a startup script when a document is loaded. I managed to get most of the content to fill, but the images are ignored. Everything works, including images, when I do a manual 'Import XML' through the user interface or a manual script.

    Here's my manual script:

    var myDocument = app.activeDocument;
    var xmlFile = File('/c/Full/Path/To/data.xml');
    
    myDocument.importXML(xmlFile);

    But the goal is to do at startup. Here's my startup script:

    #targetengine "session"
    
    app.addEventListener('afterOpen', function(myEvent) {
       if (myEvent.target.constructor.name !== 'Document') {
       return;
       }
    
       var myDocument = myEvent.target;
       var xmlFile = File('/c/Full/Path/To/data.xml');
    
      myDocument.importXML(xmlFile);
    });

    Here is the XML tag for the image:

    <Image href="file:///C:/Full/Path/To/Image/02.png" />

    I wonder there is a problem with the 'afterOpen' event reminder, and it is the reason why it works manually using the same method, but not in the startup script.

    I solved it by avoiding the event quite listener:

    main();
    
    function main () {
    
        // create a path for a file object
        var curFile = File('/c/Path/To/file.indd);
        var xmlFile = File('/c/Path/To/data.xml');
    
        // close app if files don't exist
        if (!curFile.exists || !xmlFile.exists) {
            app.quit(SaveOptions.NO);
        }
    
        // open the file
        var curDoc = app.open(curFile);
    
        // import the xml
        curDoc.importXML(xmlFile);
    
        // create a new file object
        var pdfFile = new File(curFile.parent + '/' + curFile.name + '.pdf');
    
        // export to pdf
        curDoc.exportFile(ExportFormat.PDF_TYPE, pdfFile);
    
        // close app
        app.quit(SaveOptions.NO);
    
    }
    
  • Problem with HTML5 video play do not

    Hello

    I implemented a simple video test HTML5 in Dreamweaver CS4.  I pulled the code necessary to the W3 schools site:

    http://www.w3schools.com/HTML5/html5_video.asp

    After making some adjustments in my code for the path and of dimensions, I downloaded the clip and Web page to my server.  Here is the result and I have a problem with browsers; in Chrome, it plays a lot; in IE 9, the video is choppy and the toolbar does not have the option full screen as in Chrome:

    http://designerandpublisher.com/multimedia/5/video.html

    I also downloaded all on a second server, we're completely different than above.  The result is worse - again, the video plays well in Chrome, but in IE9, the video does even appear at all.  See below:

    novideo2.jpg

    Does anyone know how to fix this?  Thank you.

    Hello

    You have not any video required for all browsers.

    The following link shows what video formats are supported by the browser-

    Interim https://developer.Mozilla.org/en-us/docs/Media_formats_supported_by_the_audio_and_video_el

    PZ

  • Problem with my Acer laptop does not connect to my home network.

    Hello

    I had a problem with my laptop. The laptop does not connect to my home network.

    I found the wireless network, but when I hit enter after entering the password (), suddenly a pop up come that said "Windows could not connect to the network". The laptop connects well with portable hotspot in my phone (3 G Tethering). But my phone (Samsung Galaxy Pocket) connects to the home network.

    My specs:

    Acer Aspire 4250 ongoing Windows 7 SP1.

    Dlink DSL-2730u (secure wifi with WEP 128 bit key)

    Please solve my problem...

    Original title: problems with my Acer laptop

    Guess - encryption levels are the same. E.g. is your set of router that you use WEP only but your PC configured to use WPA only? http://Windows.Microsoft.com/en-HK/Windows7/set-up-a-security-key-for-a-wireless-network

    If this is the case try to configure WPA2 or WPA rather than fall to WEP.

    Check all the other related settings as well. knowledge is the router using MAC filtering, are there available IP address so that it can allocate? (some routers are possible to limit the amount of IP address, they can allocate at one time).

    Second, if it does not remove the encryption all and see if it connects then. JUST AS a TEST, do not leave it.

  • Problem with lightbox: slide show does not open when you click on the photos

    Nice day!

    I added several pages to my website with viewers.

    In a few pages, the slide show was under the footer... and in others, when I click on the thumbnail, the slide show does not open...

    Where could be the problem?

    Thanks for your help!

    Opens the slide show does not, is very odd.

    What do you mean by "beneath" ? The content of the album will always focus in the middle horizontal and vertical of the browser (not on the exact spot where you have put it on the page of Muse). Who is?

    Please publish your website online to test. Just press "Publish" and let the Muse to assign a temporary address for her. share this link with us.

  • Problem with the Organizer - it does not show changes to ACR

    When I open JPEG files in ACR, apply the changes (for example, Saturation - 100), click done, and then to open these files in the Organizer - it does not show changes in the cab so that I can't use an option File/Export as a new file. When I click on this file in the Organizer menu and open again in the editor, the image opens in ACR (not Photoshop editor) with changes


    In the example below you can see that in the Organizer in metadata / Camera Raw/Saturation (in Polish "my") = - 100, but does not show the image in black and white. I do something wrong? Help, please.


    organizer-problem.PNG

    In short, the changes you make in ACR are saved in the section of metadata of jpeg files when you click on "Done" you demonstrated.

    You are right, the thumbnails are not updated in the Organizer, and changes are not taken into account when the export of the Organizer (unlike what I thought).

    When you reopen the file of the editor or organizer, it is automatically opens again in the ACR dialog box and leaves you the choice of the original version, the default value 'auto', ACR, your 'custom' corrections correction or corrections of the already modified the file. That's fine when you modify or re - edit files individually, but this isn't the solution for the process of 'batch' as an export or by applying the same correction to a batch of files.

    My suggestion is to use a workflow that I tested recently.

    Let's say you have a batch of 20 files JPEG editing in ACR.

    -You can open them all in the cab to the command "open in camera raw" Editor.

    -You can leave the default conversion of ACR or add other corrections to some of the files.

    -to highlight all the files in the film strip and click 'done '.

    -You use the 'save' button to convert to DNG with the options you want. (I choose to create in the same location)

    As a result:

    -your files JPEG is unchanged, no thumbnail is updated, the corrections are ignored in the export process as described above.

    -You can import the DNG of their location (with a record of 'control' can help).

    -the DNG is displayed with thumbnails updated

    -they can be exported as you want

    -You can see JPEG and DNG files

    -You can even ignore the original JPEG (the DNG format keeps intact with a reasonable increase in file size).

    -If you want a redundant storage, we can use the function 'automatically suggest photo stacks' for battery original JPEG and DNG.

    If it works for you?

  • the problem with the wi - fi does not work on windows 8.1

    Hello dear forum users (sorry for the English, use a translator)

    I have a laptop HP Pavilion dv6-7055er, 8.1 Windows 64-bit

    Card Broadcom WiFi 802.11b/g/n 1 x 1 4313GN worked on windows 7, but fails on windows 8.1. Tried to find the driver on the broadcom , but not found. Device Manager indicates that the problem with a PCI device. Specifies no problems with the Wi - Fi adapter.

    What could be the cause and how to fix it? Thank you!

    It seems that your WIFI adapter is not supported by Windows 8.1

    There are a few options available.

    The first and simplest is to purchase a USB wifi adapter to plug into one of the USB ports on the laptop. I have a dual ASUS USB-AC56 band that meets the 802.11ac specification.

    The second option will be to take a look at the installed optional wifi adapters to see if they have Windows 8.1 supports, buy one to replace the Broadcom card installed with.

    Ok. The two following adapters are compatible with your laptop and Windows 8.1. They have a BIOS support.

    The Qualcomm Atheros AR9485

    The Intel Centrino Advanced - N 6230 WLAN module

  • problem with windows 8 - bluetooth does not

    Hello

    I have a HP pavilion dv5 1014 and I have recently updated from VISTA to WINDOWS 8.

    Bluetooth and Wi - FI doesn't work anymore. I tried to install the new drivers but without success.  In addition, tactile switch WiFi does not more tactile audio switch responds but does not turn red when.

    Please help me to fix it.

    Thank you

    Try this:

    http://ftp.HP.com/pub/SoftPaq/sp46501-47000/sp46712.exe

  • Problems with mapped drives folder does not properly?

    • Hello, I have my readers mapped times PC on my network for single, however when I try to access it from the group main wokk PC that I use the most, it does nothing, except if I click on it above the folder box, I stored shortcuts in and re-fresh from hitting a few or several times, then he at that time goes crazy and does nothing and says does not on the storage folder, I used store it in, what am I doing wrong? It works sometimes, but I can't count on them to work when I need them too to help ideas everyone, thanks in advance., Teltom1

    Hi Teltom1,

    You try to access the shared computer using the UNC (Universal Naming Convention) path. The syntax is as follows.

    \\computername\sharename

    See also:

    How to troubleshoot a network home in Windows XP

  • Photo Gallery Windows keeps closing while the display or the setting of the photos. It is said that there may be a problem with the CODEC, but does not have an idea on how to correct or fix. Someone knows how to solve this problem, or what could be wrong?

    Ideas:

    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Hello Susan4659,

    Thank you for your message.  Please see the link below, most likely you're trying to view photos taken with a camera that uses a specific format which is not standard with Photo Gallery.
    Please let us know if it did or did not help to solve your problem.
    See you soon

    Engineer Jason Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

  • Problems with WWV_FLOW_ITEM. MD5 - does not seem to be decisive

    I have an interactive report in which I include a call to WWV_FLOW_ITEM. MD5 for the sum of current control based on the value of a couple of columns can be changed.

    SELECT CHECK_BOX,

    RISK_PAYCOLL_ID,

    ORG_ID,

    ...

    WWV_FLOW_ITEM. (VM_AMOUNT, DESCRIPTION) MD5 checksum

    OF MIDAY_PAY_COLLECT

    I try later determine which lines have been changed by recalculating the checksum, with WWV_FLOW_ITEM. MD5 using the VM_AMOUNT and the DESCRIPTION as input fields. My hope would be that, if the values of these fields had not been modified (or had been changed and then changed back to their original values), the checksums match. However, in all the ranks, those changed or unchanged, I get a value new, different, when I call WWV_FLOW_ITEM. MD5.

    What Miss me?

    -Joe

    I was doing something lame brained. The column was actually a wrapped column generated APEX_ITEM dynamically compared with the checksum generated for the real column value and, guess what, they did not.

    Duh.

    -Joe

  • Small problem with external video class does not

    It's my first external class and I am not able to see the video once I publish the swf file

    package {}

    import flash.display.Sprite;

    import flash.net.NetConnection;

    to import flash.net.NetStream;

    import flash.media.Video;

    import flash.display.MovieClip;

    SerializableAttribute public class FLVPlayerBasic extends Sprite {}

    public void FLVPlayerBasic() {}

    Build NetConnection

    var nc:NetConnection = new NetConnection();

    NC. Connect (null);

    Flash is looking for an onMetaData method

    Route all calls to an object

    var metaObject:Object = new Object();

    metaObject.onMetaData = onMetaData;

    Build NetStream and connect to the flow through the connection

    var ns:NetStream;

    NC = new NetStream (nc);

    ns.play ("http://www.someurl.com/video/video.flv" "");

    Route all calls to the metaObject NetStream onMetaData

    NS.client = metaObject

    Build a video object with dimensions

    Video: var video = new video (320, 240);

    Attach the video in the NetStream and added to the display list

    video.attachNetStrea (ns);

    addChild (video);

    }

    private void onMetaData(data:Object):void {}

    }

    }

    }

    the class file whose code display you in your first message MUST be named: FLVPlayerBasic

    and if you click on an empty part of the scene and look in the properties panel, FLVPlayerBasic must appear in the document class.

  • I recently installed 29,0 FF and found a lot of problems with it, Noia 4 does not work, neither does Fox clocks and other issues. Have they been corrected 29.1?

    Is FF 29.1 that FF 29,0 where we users lose control of our browser and can not customize to our liking. If Yes, how do I stop the noise annoying ups tell me to install because of security issues or not I stay with 28.0 FF. Thank you people for any answer, they are much appreciated cheers.

    set the correct time zone, the date and time on your system: time.is

Maybe you are looking for

  • find my iPhone feature

    How can a stolen iPhone (going online) to connect to a network so that find it my phone function works when thieves cannot get my access code switch on the phone

  • New 8460p USB 3.0 not 3.0

    Hello, just bought a p 8460 and find that, whatever the building from scratch or using preload usb 3.0 ports seem to run on 2.0. Whenever I have to plug a device 3.0 in one of them (left side) I get a message always plug a my devices in a 3.0 port. I

  • I want to delate my account iCloud, but I forgot my password because it's under *.

    I want to reach delate my iCloud account, but I forgot my password because it * *.com

  • 1588 default state

    Hello I do some testing with two boards of 6682H... I want to check the synchronization between two chassis. I met these two boards and wrote some code to synchronize the frame. So I have a phase of init when I initialize the niSync, then I put the r

  • I can't download itunes

    I am running windows vista family premium, I try to download Itunes one send a message [there is a problem with this windows package install.] A program required for this install to complete could not be run. Contact your provider to support personal