How stop the audio when I get out of the frame AS 3?

Hello

Could someone find out how to stop the audio when I get out of the AS 3 mounting frame? I had around 20 slides running in a swf file. Each slide has the distinct voice on attached to it. I added slides in a layer and voice in the next layer on the timeline.

Ago next and previous buttons placed throughout this swf to navigate between slides. This is where the question arises. I can travel easily from 1 to 20 slides and even can return trip. But the voice does not stop as soon as I click on the previous or next buttons. It overlaps with the next or previous voice just above.

I searched online and suggested its use as channel to bring voices on the slides to have a better control. But honestly I don't know how to do. Could someone help me in doing this? This problem can be very simple for others. As I am a beginner in Flash and Actionscript, it hurts.

Carry me nicely, if this code seems to be bit annoying and even lenthy :-(

Thanks in advance.

Code:

Forward_Button.addEventListener (MouseEvent.CLICK, forward);

Previous_Button.addEventListener (MouseEvent.CLICK, prev);

function forward(event:MouseEvent) {}

if(this.currentFrame == This.totalFrames) {}

Stop();

}

ElseIf (this.currentFrame > = 55 & & this.currentFrame < 201) {}

gotoAndPlay (201);

}

ElseIf (this.currentFrame > = 201 & & this.currentFrame < 310) {}

gotoAndPlay (310);

}

ElseIf (this.currentFrame > = 310 & & this.currentFrame < 430) {}

gotoAndPlay (430);

}

ElseIf (this.currentFrame > = 430 & & this.currentFrame < 530) {}

gotoAndPlay (530);

}

ElseIf (this.currentFrame > = 530 & & this.currentFrame < 640) {}

gotoAndPlay (640);

}

ElseIf (this.currentFrame > = 640 & & this.currentFrame < 750) {}

gotoAndPlay (750);

}

ElseIf (this.currentFrame > = 750 & & this.currentFrame < 860) {}

gotoAndPlay (860);

}

ElseIf (this.currentFrame > = 860 & & this.currentFrame < 970) {}

gotoAndPlay (970);

}

ElseIf (this.currentFrame > = 970 & & this.currentFrame < 1080) {}

gotoAndPlay (1080);

}

ElseIf (this.currentFrame > = 1080 & & this.currentFrame < 1200) {}

gotoAndPlay (1200);

}

ElseIf (this.currentFrame > = 1200 & & this.currentFrame < 1310) {}

gotoAndPlay (1310);

}

ElseIf (this.currentFrame > = 1310 & & this.currentFrame < 1420) {}

gotoAndPlay (1420);

}

ElseIf (this.currentFrame > = 1420 & & this.currentFrame < 1530) {}

gotoAndPlay (1530);

}

ElseIf (this.currentFrame > = 1530 & & this.currentFrame < 1690) {}

gotoAndPlay (1690);

}

ElseIf (this.currentFrame > = 1690 & & this.currentFrame < 1780) {}

gotoAndPlay (1780);

}

ElseIf (this.currentFrame > = 1780 & & this.currentFrame < 1880) {}

gotoAndPlay (1880);

}

ElseIf (this.currentFrame > = 1880 & & this.currentFrame < 2010) {}

gotoAndPlay (2010);

}

ElseIf (this.currentFrame > = 2010 & & this.currentFrame < 2130) {}

gotoAndPlay (2130);

}

}

function prev(event:MouseEvent) {}

If (this.currentFrame > = 201 & & this.currentFrame < 310) {}

gotoAndPlay (55);

}

ElseIf (this.currentFrame > = 310 & & this.currentFrame < 430) {}

gotoAndPlay (201);

}

ElseIf (this.currentFrame > = 430 & & this.currentFrame < 530) {}

gotoAndPlay (310);

}

ElseIf (this.currentFrame > = 530 & & this.currentFrame < 640) {}

gotoAndPlay (430);

}

ElseIf (this.currentFrame > = 640 & & this.currentFrame < 750) {}

gotoAndPlay (530);

}

ElseIf (this.currentFrame > = 750 & & this.currentFrame < 860) {}

gotoAndPlay (640);

}

ElseIf (this.currentFrame > = 860 & & this.currentFrame < 970) {}

gotoAndPlay (750);

}

ElseIf (this.currentFrame > = 970 & & this.currentFrame < 1080) {}

gotoAndPlay (860);

}

ElseIf (this.currentFrame > = 1080 & & this.currentFrame < 1200) {}

gotoAndPlay (970);

}

ElseIf (this.currentFrame > = 1200 & & this.currentFrame < 1310) {}

gotoAndPlay (1080);

}

ElseIf (this.currentFrame > = 1310 & & this.currentFrame < 1420) {}

gotoAndPlay (1200);

}

ElseIf (this.currentFrame > = 1420 & & this.currentFrame < 1530) {}

gotoAndPlay (1310);

}

ElseIf (this.currentFrame > = 1530 & & this.currentFrame < 1690) {}

gotoAndPlay (1420);

}

ElseIf (this.currentFrame > = 1690 & & this.currentFrame < 1780) {}

gotoAndPlay (1530);

}

ElseIf (this.currentFrame > = 1780 & & this.currentFrame < 1880) {}

gotoAndPlay (1690);

}

ElseIf (this.currentFrame > = 1880 & & this.currentFrame < 2010) {}

gotoAndPlay (1780);

}

ElseIf (this.currentFrame > = 2010 & & this.currentFrame < 2130) {}

gotoAndPlay (1880);

}

}

If your sound is directly on the timeline, then change to Stream will solve your problem, but you need to change every single audio clip.

For example if VO #1 plays frame 1 to 100, you click anywhere in this layer (where you can see the audio waveform), go to properties and flow the Sync value. If VO #2 play frame of 101 to 200, you must click somewhere in there and do the same thing. Go to the properties, press the Sync drop-down list and change the event to Stream.

This isn't a level property 'layer '. This is a property ONLY of audio current under your cursor is in. So if you have 500 your, you need to go to each of them and the value Stream Sync event 500 times.

Tags: Adobe Animate

Similar Questions

  • How to clear the account display battery when I get out of the application

    Hello

    I use the screen push method to call another screen in my application...

    When you use this method after awhile my request become slow bacuase stack display (several frames in the queue).

    If suppose that at some point if I check using the method of counting to screen it shows 36 screens are queued,

    so I would like to know how to clear the number of queue display stack when I get out of the application

    I agree with arkadyz here.  It may be something other than just a bunch of screens on the stack.

    If after reviewing your design, you still need to pop all the screens, here's a snippet of code that will do just that:

    public void popAll() {
            UiApplication ui = UiApplication.getUiApplication();
        int screenCount = ui.getScreenCount();
        for (int i = 0; i < screenCount; i++) {
            Screen activeScreen = ui.getActiveScreen();
            ui.popScreen(activeScreen);
        }
    }
    

    But if you are out of the app, there is no need to do so either.

  • When I get out of my iMac on night he flares upward from the mode sleep at midnight.

    When I get out of my iMac on night he flares upward from the mode sleep at midnight.

    Check your settings in system preferences > energy saver

  • How stop the little black box that is a copy of what is on my mouse to come when I put it on the text?

    Original title: changes of mouse

    How stop the little black box that is a copy of what is on my mouse to come when I put it on the text?

    Hello

    1. have you made changes on the computer before this problem?
    2 have you tried to change the theme or settings and check mouse?

    Read the following article which can be useful:

    To change the appearance of your mouse pointer
    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/WIN_POINTERS_CHANGING.mspx?mfr=true

    If possible, send us a screenshot of the mouse pointer which could help us help you better.
    http://social.answers.Microsoft.com/forums/en-us/w7security/thread/c86de820-C620-401c-A804-9f6337cd3053

  • My phone suddenly stopped waking up when I get a text

    Out of the blue today, my phone stopped 'waking up' when I get a text message or wickr.  Yesterday, it was perfectly fine.  Nothing is different.

    I have reset or shut down the phone and that didn't help.   Is there anything else I can do?

    Thank you

    What do you mean by 'waking up' If you want to give a sound so if you have your 'Low battery' mode so that cancels the noise to help your battery. If not then go to 'Settings' and click on sounds and make sure that the volume button is in place all the way. -Jon

  • How stop the noise annoying to add to creative cloud that opens every time I startup CS6 PS?

    How stop the noise annoying to add to creative cloud that opens every time I startup CS6 PS?

    Sometimes the CS6 will go into trial mode, and here comes the announcement of the CC.

    You click on this software license, sign in using your Adobe ID and when it asks for your serial number, enter it.

    Which will bring things back to normal and get rid of the announcement of the CC.

  • can't stop the music when I get out of the page.

    Hi all;

    I continue to post in the wrong place.  I'm sorry.  I did this post in AC2 and responses did not look right.  So, here I am again.

    I'm building a website in flash using my limited understanding of action script.   Everything was very good train until I found that if I go to one of my example of my website pages and read (with audio) flash video and click on back to my "home" button, the audio will continue to play.   If I go back to the example page, the video is turned off and when I run the video, she plays again with the other audio.  I hear the audio twice! I know there is an action script to handle this, but I can't understand it.

    My question is, how can I stop the audio when I clicked away from the sample to the homepage or any other page page?

    Thanks in advance for your help.

    I'm using Flash CS4 and a Mac OS operating system.

    Did I mention that I'm not very good with scrupt action, but I'm so close to finishing this web site.

    assign your component an instance name (if it doesn't already have one), for example flv in the frame that contains this component, add:

    flv.addEventListener (Event.REMOVED_FROM_STAGE, removedF);

    function removedF(e:Event):void {}

    FLV. Stop();

    }

  • Creating VM templates... no option to insert the CD when I get out of the console

    Hello!

    I just set up a demo of Lab Manager.  It's the book, added to Lab Manager and visible media store.

    When I go out the console to work on a model of VM, I build, I have no option to insert a CD.  However, when I view the console in the same window, I have that option.

    I'm doing something wrong, or if this feature is not incorporated in the corn on console?

    Thank you!

    -Jesse Reinhart

    Hello, Jesse

    pop on the console doesn't have the option to insert a CD.

    Concerning

    Roberto

  • When I get out of my Dell Inspiron inactive my computer hangs

    Original title: computer hangs

    When I leave my Inspiron 1525 idle for an hour or two, the screen freezes and I have to turn off the computer and restart via safe mode.  It is a new show lasts for 2 weeks. I ran various Dell and Microsoft updates and anti-virus programs, but nothing seems to work. I use both Windows Security Essentials and Avast Antivirus. In addition, if I run a screensaver, it lights up but the screen remains and saver runs over him. Help me please.

    Hello

    Use Avast or MSE, but not both, uninstall one. Even the remains of a 2nd major anti-
    the virus that is not currently running or poorly uninstalled can cause problems.

    Check with Dell Support, their drivers and documentation online and ask in the Dell
    Forums for known issues.

    Dell support
    http://support.Dell.com/

    Dell support drivers - product manual & warranty Info (left side) - and much more
    http://support.Dell.com/support/index.aspx?c=us&l=en&s=DHS

    Dell forums
    http://en.community.Dell.com/forums/
    -------------------------------------------------------------------

    References to Vista also apply to Windows 7.

    What antivirus/antispyware/security products do you have on the machine? Be one you have NEVER
    on this machine, including those you have uninstalled (they leave leftovers behind which can cause
    strange problems).

    ----------------------------------------------------

    Follow these steps:

    Try these to erase corruption and missing/damaged file system repair or replacement.

    Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to fix the system files of Windows 7 with the System File Checker
    http://www.SevenForums.com/tutorials/1538-SFC-SCANNOW-Command-System-File-Checker.html

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Also run CheckDisk, so we cannot exclude as much as possible of the corruption.

    How to run check disk in Windows 7
    http://www.SevenForums.com/tutorials/433-disk-check.html

    ==========================================

    After the foregoing:

    How to troubleshoot a problem by performing a clean boot in Windows Vista or
    Windows 7

    http://support.Microsoft.com/kb/929135

    Use advanced tools to solve performance problems in Windows 7
    http://www.howtogeek.com/HOWTO/6152/use-advanced-tools-to-troubleshoot-performance-problems-in-Windows-7/

    Problems with the overall speed of the system and performance
    http://support.Microsoft.com/default.aspx/GP/slow_windows_performance?p=1

    How to troubleshoot performance issues in Windows Vista
    http://support.Microsoft.com/kb/950685

    Optimize the performance of Microsoft Windows Vista
    http://support.Microsoft.com/kb/959062
    To see everything that is in charge of startup - wait a few minutes with nothing to do - then right-click
    Taskbar - the Task Manager process - take a look at stored by - Services - this is a quick way
    reference (if you have a small box at the bottom left - show for all users, then check that).

    How to change, add or remove startup programs in Windows 7
    http://www.SevenForums.com/tutorials/1401-startup-programs-change.html

    A quick check to see that load method 2 is - using MSCONFIG then put a list of
    those here.
    --------------------------------------------------------------------

    Tools that should help you:

    Process Explorer - free - find out which files, key of registry and other objects processes have opened.
    What DLLs they have loaded and more. This exceptionally effective utility will show you even who has
    each process.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896653.aspx

    Autoruns - free - see what programs are configured to start automatically when you start your system
    and you log in. Autoruns also shows you the full list of registry and file locations where applications can
    Configure auto-start settings.
    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx
    Process Monitor - Free - monitor the system files, registry, process, thread and DLL real-time activity.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896645.aspx

    There are many excellent free tools from Sysinternals
    http://TechNet.Microsoft.com/en-us/Sysinternals/default.aspx

    -Free - WhatsInStartUP this utility displays the list of all applications that are loaded automatically
    When Windows starts. For each request, the following information is displayed: Type of startup (registry/Startup folder), Command - Line String, the product name, Version of the file, the name of the company;
    Location in the registry or the file system and more. It allows you to easily disable or remove unwanted
    a program that runs in your Windows startup.
    http://www.NirSoft.NET/utils/what_run_in_startup.html

    There are many excellent free tools to NirSoft
    http://www.NirSoft.NET/utils/index.html

    Window Watcher - free - do you know what is running on your computer? Maybe not. The window
    Watcher says it all, reporting of any window created by running programs, if the window
    is visible or not.
    http://www.KarenWare.com/PowerTools/ptwinwatch.asp

    Many excellent free tools and an excellent newsletter at Karenware
    http://www.KarenWare.com/

    ===========================================

    Think about it an absolute must - manually update your drivers.

    Vista and Windows 7 updated drivers love then here's how update the most important.

    This is my generic how updates of appropriate driver:

    This utility, it is easy see which versions are loaded:

    -Free - DriverView utility displays the list of all device drivers currently loaded on your system.
    For each driver in the list, additional useful information is displayed: load address of the driver,
    Description, version, product name, company that created the driver and more.
    http://www.NirSoft.NET/utils/DriverView.html

    For drivers, visit manufacturer of emergency system and of the manufacturer of the device that are the most common.
    Control Panel - device - Graphics Manager - note the brand and complete model
    your video card - double - tab of the driver - write version information. Now, click on update
    Driver (this can do nothing as MS is far behind the certification of drivers) - then right-click.
    Uninstall - REBOOT it will refresh the driver stack.

    Repeat this for network - card (NIC), Wifi network, sound, mouse, and keyboard if 3rd party
    with their own software and drivers and all other main drivers that you have.

    Now in the system manufacturer (Dell, HP, Toshiba as examples) site (in a restaurant), peripheral
    Site of the manufacturer (Realtek, Intel, Nvidia, ATI, for example) and get their latest versions. (Look for
    BIOS, Chipset and software updates on the site of the manufacturer of the system here.)

    Download - SAVE - go to where you put them - right click - RUN AD ADMIN - REBOOT after
    each installation.

    Always check in the Device Manager - drivers tab to be sure the version you actually install
    presents itself. This is because some restore drivers before the most recent is installed (sound card drivers
    in particular that) so to install a driver - reboot - check that it is installed and repeat as
    necessary.

    Repeat to the manufacturers - BTW in the DO NOT RUN THEIR SCANNER device - check
    manually by model.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    Installation and update of drivers under Windows 7 (updated drivers manually using the methods above
    It is preferable to ensure that the latest drivers from the manufacturer of system and device manufacturers are located)
    http://www.SevenForums.com/tutorials/43216-installing-updating-drivers-7-a.html

    If you update the drivers manually, then it's a good idea to disable the facilities of driver under Windows
    Updates, that leaves about Windows updates but it will not install the drivers that will be generally
    older and cause problems. If updates offers a new driver and then HIDE it (right click on it), then
    get new manually if you wish.

    How to disable automatic driver Installation in Windows Vista - drivers
    http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
    http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx

    ===========================================

    Refer to these discussions because many more excellent advice however don't forget to check your antivirus
    programs, the main drivers and BIOS update and also solve the problems with the cleanboot method
    first.

    Problems with the overall speed of the system and performance
    http://support.Microsoft.com/GP/slow_windows_performance/en-us

    Performance and Maintenance Tips
    http://social.answers.Microsoft.com/forums/en-us/w7performance/thread/19e5d6c3-BF07-49ac-a2fa-6718c988f125

    Explorer Windows stopped working
    http://social.answers.Microsoft.com/forums/en-us/w7performance/thread/6ab02526-5071-4DCC-895F-d90202bad8b3

    I hope this helps.

  • I need to know how stop the automatic updates, secondly how do I substitute him "you can't run this program on this pc?

    First of all, I need to know how to stop the automatic updates, second how to replace him "you can't run this program on this pc?  I SWEAR THAT IF HE SAID THAT HE AGAIN THAT I WILL BREAK IT INTO PIECES. Then I'll go buy an android tablet.  Surface, hate hate 8

    Yes running of programs that are not on the store is not possible. It is not a parameter or artificial, it's just that the RT line uses what is called an ARM chipset, also known as RISC (Reduced Instruction Set Chip).  Literally, he cannot read the compiled code of complete programs.  Same reason you can't run Adobe Photoshop on an iPhone, just CPU cannot decode the program.  But on the good side of things, it cannot launch virus either, so he made the first version of Windows that cannot get 'gunked up' over time. It works like an iPad and have a continuous and consistent performance for a lifetime. I'm sad that they abandoned it so fast, I know a lot of people who could use this service.

    Anyway, you can skip the connection at startup.  There is in fact in two ways.  Unless you do a lot of "full stops", I recommend enter Power Options and setting by turning off the "password required when you wake up sleep."  Which will remove the requirement for password of sleep/wake, but if the device never complete a boot will always be a password.  This is a good compromise for safety and security, so if the device is lost or stolen, it eventually crashes when the battery is dead.

    But if you want to delete this, you should be able to do it by running the command NETPLWIZ, as described here: https://www.youtube.com/watch?v=sOYmY-6Wd3Y

  • Please help me stop my program when n gets to 15

    Hey guys

    After collecting a lot of suggestiong from you, im almost done with my vi.

    I need one more thing, I have not been able to do. I have a counter on my vi (that of the FOR LOOP) which will take place from 1 to 15 and start again. I need my vi to stop completely when this counter gets to 15. I tried a while loop that compares the counter to 15 and returns a Boolean value to stop the program, but I couldn't make it work.

    Here's a zip with my vi file and a measure to test. I'd really appreciate it if someone could help me with this simple question.

    Thank you!

    You must still click run on the toolbar, unless you set the properties to automatically run the opening.

    You can create a part of the initialization of your program (maybe 1 frame of a sequence of flat, while your current code is in the following image) which defines the controls using local variables to anything you want.  You can also create a while loop with a small wait instruction that ends when the button "front run" is pressed, and then follow the rest of your code.  A structure of the event would be a choice even better.

  • How stop the screen keyboard to come each time that I connect.

    How to stop the on-screen keyboard to come up when starting?

    How to stop the on-screen keyboard to come up when starting?

    Start button > Control Panel > Classic view > accessibility > click on use the computer without a mouse or keyboard > uncheck use Screen keyboard > Apply/Save

    t-4-2

  • How do we uninstall when I get error 2503?

    I'm trying to uninstall a program and get 'Error 2503 Called RunScript is not marked in progress' OK

    Then get "error 2502 Called InstallFinalize when no current installation ' OK

    Hi Howard,.

    What program you want to uninstall?

    If you use Microsoft Office, see the following link suggestions.

    You receive an error message "Called RunScript is not marked in progress" during the installation of Office XP or Office 2000

    http://support.Microsoft.com/kb/315636

    See also this link suggestions.

    How to solve problems when you install or uninstall programs on a Windows computer

    http://support.Microsoft.com/kb/2438651

    After completing the methods suggested above, answer us with the State of the question.

  • How to stop the frame to move?

    I'm working on a project similar to monopoly, where after that I have a, the player moves accordingly to the number indicated on the die.

    I have a written script and a framework that was put in place. However playing swf, image continues to play even if there is a button for the dice roll and doesn't stop. How can I make sure that the framework stops play and move only when you press the Roll button?

    If you try to stop a movieclip moving frames, do a stop() the movieclip by adding a stop() to this movieclip timeline or by using the name of the movieclip:

    MC. Stop();  to stop the mc to advance frames.

  • When I get out of Firefox, he claims to have a tab open to display. How to display the hidden tabs?

    So far, the only way I've found is to wait for the browser stops responding and then when he asked me to restore the session can I see and close a marked as "Sandbox". I tried ctrl + 1-8 and he didn't show.

    I had the same problem.
    I did a search through my modules, then
    disabled "Download Youtube videos to mp4" (version 1.7.18)
    That solved the problem.

    Hop, I helped you.

Maybe you are looking for

  • iTunes vs iTunes Connect

    I installed iTunes Connect on my iPhone 5. He asks me my password for Apple (ID is already there). I enter and get the message that it is incorrect. I have always used this password. It gives me the ability to change passwords, so I don't. I always g

  • How to initialize a cDAQ Ethernet (9188) to autostart?

    Hello I have a LabVIEW program that performs tasks DAQmx (pre-configured via NI MAX). The material is a cDAQ-9188, connected directly to the laptop via an Ethernet cable. Both machines have static IPS (same subnet). Question Whenever we turn on the m

  • Office pro 8610 maximum scan resolution Jet only 300 dpi - WHY?

  • MKV files, show 0 seconds and cannot be seen by sharing.

    Windows media player started randomly showing all my MKV files in 0 seconds. In addition to this, all these files are more able to be seen by the sharing of systems; I have an Archos Tablet and the xbox 360. He worked and nothing has been replaced by

  • Push initiator

    Hi, I tried to use a push (BIS) service where the mi client is a simulator, I think I have all the necessary files. I downloaded a simple BIS version I found a section in this forum, where the use of the client you only need two files. My problem is