How to stop the video by using the Action Script?

I imported external videos to my application Flash and when I test my movie and I click on a button that takes me to the frame where a video is and I start the video, then go and click on another button which takes me to the frame main or 'House', the video still plays in the background. Is there a way to get videos off automatically when you click another button or go home' (image 1) or something? Just put in stop(); the videos does not stop and my client do not like the fact that you must click pause in the video player and then click another button to go to another video. Any help and advice will be greatly appreciated!

If you video takes place in an flvplayback component, the component of the assign an instance name (in the properties panel, for example flv_pb) and in the Panel shares add:

flv_pb.addEventListener (Event.REMOVED_FROM_STAGE, f);

function f(e:Event):void {}

flv_pb. Stop();

}

Tags: Adobe Animate

Similar Questions

  • How to stop the Action method when an Exception occur in another method

    Hi all


    {} public void action (event clientEvent)

    startAction();

    JOptionPane.showMessageDialog (null, getDocumnetId());

    }



    How to stop the action of the method ("action"), if an exception occurs in the method ("startAction")
    (if the exception to happen we didn't need to show the JOption Message)

    Hello

    Try FacesContext.getCurrentInstance () .renderResponse ();

    Frank

  • How to stop the action to enter text?

    As a step in an action, I create a text layer. I need to pause the action so that the user can enter text in the layer. I have to pause the action by clicking the dialog icon turn left the stage to create the text layer. However, I can't find a way to continue the implementation of the action after the text entry. What is the right way to do it? Thank you.

    By pressing the box check Commit on the toolbar options or by pressing the Enter key should continue this action after the text is entered.

  • How to stop the red symbols to appear when I use the question mark, the apostrophe and slash keys. This only happens in my e-mail program.

    How to stop the red symbol to appear when I use the key question mark in my e-mail program.

    HI Julie Delany.

    1. for how long are you facing this problem?

    2. is there any changes made prior to this issue?

    3. may I know what mail client do you use?

    Disable the function key (lock) and then check

  • NOTEBOOK: HOW TO STOP THE EMBEDDED "UNTITLED" WORD ON PAGE I USE

    HOW TO REMOVE THE EMBEDDED "UNTITLED" WORD OF THE PAGE WHICH SHOULD BE PRINTED...                                                                                                                                                                                      Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas:

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

    HOW TO STOP THE EMBEDDED "UNTITLED" WORD ON PAGE I USE

    Go to file, Page Setup and remove header and footer text.

    "jimmcanany" wrote in the new message: * e-mail address is removed from the privacy... *

    HOW TO REMOVE THE EMBEDDED "UNTITLED" WORD OF THE PAGE WHICH SHOULD BE PRINTED... Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas:

    * You have problems with programs
    * Error messages
    * These recent changes made to your computer
    * What you have already tried to solve the problem, HOW can I STOP THE WORD EMBEDDED 'UNTITLED' of BEING PRINTED on the PAGE that I USE

  • How to stop the generation FND_USER.customer_id when using LDAPUserImport

    When a user is created in the form of 'set the user' R12.1.3, no customer_id is created in the fnd_user table.

    When a user is created using LDAPUserImport (from a ldfiwrite against OID), the customer_id is filled.

    How to stop the generation customer_id when you import users in R12?

    I tried to disable all these events business (except the last 2), but not of joy:

    People with DISABILITIES Oracle Trading Community oracle.apps.ar.hz.CustAccount.create
    People with DISABILITIES Oracle Trading Community oracle.apps.ar.hz.CustAccountRole.create
    People with DISABILITIES Oracle Trading Community oracle.apps.ar.hz.CustAcctRelate.create
    People with DISABILITIES Oracle Trading Community oracle.apps.ar.hz.CustAcctSite.create
    People with DISABILITIES Oracle Trading Community oracle.apps.ar.hz.CustAcctSiteUse.create
    People with DISABILITIES Oracle Trading Community oracle.apps.ar.hz.CustProfileAmt.create
    People with DISABILITIES Oracle Trading Community oracle.apps.ar.hz.CustomerProfile.create
    ACTIVE Trading of Oracle community oracle.apps.ar.hz.OrgCustBO.create
    ACTIVE Trading of Oracle community oracle.apps.ar.hz.PersonCustBO.create


    (For OrgCustBO.create and PersonCustBO.create, the status field is fixed... cannot change)

    All advice appreciated.

    Thank you

    Hello

    Pdf linked in document 261914.1 utility MOS LDAPUserImport has a parameter named - tcaRecord
    which takes either y or N as parameter (is default).
    I guess that if you fill in this parameter with N, no record CAW (customer) will be created...

    Concerning

  • How to stop the iOS Photos store photos?

    When I use the camera iOS, it duplicates this photo in the Photos app. How to stop this? (He uses memory unnecessarily.)

    In parameters, all the parameters of "Photos & camera" are turned off, as is the "iCloud:Photos".

    humanengr wrote:

    When I use the camera iOS, it duplicates this photo in the Photos app. How to stop this? (He uses memory unnecessarily.)

    In parameters, all the parameters of "Photos & camera" are turned off, as is the "iCloud:Photos".

    Your statement makes no sense to me or I am misunderstanding you. Of course, the photos are stored in the camera when taking pictures with the camera. Where you wait to store photos?

    IF you mean that you see the pictures in the thumbnail view while using the camera application, they are not duplicated in any. You just see them in the camera application, but they are stored in the photos app.

  • How to stop the music in the iOS download

    How to stop the music in the iOS download songs? I accidentally clicked (stupidly) songs to download all the purchased. It will take some time and fill out my iPhone with music. I tried restarting and that did not help. It is also a priority on updating apps from the App store. I use the latest version 9.3.2 iOS iPhone 6.

    Thank you

    I will try to put the device in Airplane Mode, then signature of the iTunes and the App Store. Then try to disable airplane Mode. While you are not connected to the iTunes Store, you should not try to download on the phone once you turn it off airplane mode.

  • HOW TO STOP THE NEW ADS ON FACEBOOK... THEY ARE FRIGGIN BORING AND REEK HAVOC WHEN YOU PLAY... PLEASE ME TELL HOW TO BLOCK THEM!

    How to stop the new ads on Facebook

    I get very annoyed by ads to where they are on the web so I use an add-on called 'Adblock Plus' which uses its database to block known ads and you can even block yourself!

    With 'Adblock Plus Adblock Plus ' installed, you can block all advertising photo:

    1. right click on the announcement of photo that you want to get rid

    2. in the menu, click the option that says: ' Adblock Plus: block image... "(it is usually at the bottom of the menu)

    3. when the pop up box appears, simply click 'Add filter' and advertising will disappear before your eyes!

    If this was the answer you are looking for, please click 'Resolved' - thank you.

  • How to stop the shortcut ctrl-alt-s

    How to stop the shortcut ctrl-alt-s bringing HP info? I use this shortcut elsewhere.

    Here it is:

    http://support.HP.com/us-en/document/c00761879

  • How to stop the Firefox update page to load whenever I run the FF 3.6.16 application

    How to stop the Firefox update page to load whenever I run the application FF 3.6.16. I use it on an iMac G5 ALS.

    See the following for a few suggestions:

  • How to stop the dashboard at the bottom of the screen in endangered?

    How to stop the dashboard to disappear the bottom of Safari.  It did not happen, but I installed iCapitan.

    Dashboard or the Dock? If you mean that the docking menu Apple > System Preferences > Dock > automatically hide / show Dock.

    OS X El Capitan: use the docking station

  • How to stop the VI and a Sub VI together

    Hi, in my application, I have a vi with a state machine with a loop of event handler. One of the events in my loop of event handler is out who runs the State of the output of my state machine. I also have an under vi outside my statemachine.

    The problem:

    1. at the exit of pressing my Vi does not stop.

    Reason: my sub vi is still running.

    Need solution : How tp stop the two loops together using the exit button.

    StateMachine P.S:1.My is inside a while loop and while loop runs inside my sub vi also.

    2. both the loops are parallel, since I'm on queues in it.

    2. both the loops are parallel, since I'm on queues in it.

    There are many ways, depending on your architecture.

    Can pass you a message from out of your event loop to your another loop on the queue?

    Another way is to use a global Boolean variable 'Stop' and use it in your second loop exit condition. Set it in the event loop when you want to stop the program.

    The producer consumer example stops the second loop by closing the queue during the first loop stops and then to capture the error when the second loop trying to read the queue.

  • How to stop the log in page and continue straight on the desktop at boot?

    Original title: desktop

    How to stop the newspaper in stright page and go to the desktop page when starting

    Hi Ms.HarleyChic,

    Windows operating system you are using?

    If you use Windows 7, try the steps in the following article and check if this can help:

    Enable or disable a secure connection (CTRL + ALT + DELETE)

  • How to stop the "Microsoft" folder opens at startup

    Whenever I start my computer, "C:\Program Files\Microsoft" opens. I went through each item, start nothing leading to this path. (msconfig, registry, and "Startup" in "Programs" folder.) Anyone know how to stop the start to the top of the file?

    You are really the way strong, but as long you are looking at the registry "Run" keys, make sure that the names of path for various startup items are surrounded by double quotes.

    I can find no documentation final for this - and there is certainly some entries in my key Run that have spaces in them, but are not surrounded by double quotes - but in general, Windows behaves better if you either do not use characters such as spaces or surround the path with quotation marks name.

    For example:

    "C:\Program Files\Fichiers Files\Adobe\ARM\1.0\AdobeARM.exe"

    Because registry Analyzer seems to know the space in Program Files, and given your statement that the problem started when you installed Office, I suggest looking for an entry that starts C:\Program Files\Microsoft Office\Office14\

    If you find such an entry without quotes, modify to add and see if the problem goes away.

    In the future, Autoruns is an easier way to find the startup entries... and it shows many places more than just two Run keys you watched.

  • How to stop the McAfee anti-spam folder appear in Windows Mail?

    I know I've done this before, but I just had to reinstall the operating system and forget how to stop the McAfee anti-spam folder to appear in my Windows Mail Inbox.

    Help!
    Thank you!!
    It should not appear in the Inbox WinMail, but rather a clean folder. The best way to stop it from appearing anywhere descend McAfee of your machine.
     
    Norton and McAfee are the two least friendly Windows security and swine resource to start programs. My ISP offers the McAfee security suite for free and I refuse to use it.
     
    I used to use Avast in conjunction with Windows Defender, (still a decent option), but since MSE became of age, I have used which. MSE is an anti-virus, Anti-Spyware and Anti-Malware program all in one. IMO, it is a program MS got it wrong. And all of these options are freeware.
     
    If you choose to give it a try, download and save the MSE. Remove McAfee and install MSE.
     
     
    Correction of tool McAfee Consumer Product Removal triple
    http://service.McAfee.com/FAQDocument.aspx?LC=1033&ID=TS100507  

Maybe you are looking for

  • Using Win 2000 Prof Installed Firefox 9.01 without permission how to go back

    Mozilla installed Firefox 9.01 without permission and is not compatible win 2000. How to uninstall and go back to 6.0 or 8.0?

  • HDMI sound problem

    Separated from this thread. I do not understand why a BIOS update would fix it. Other people have this same problem. Nevertheless, I will not ask someone from asus to help me install a BIOS update, because I don't have the time, money or patience, an

  • dopo M975 tablet

    How can I get my printer wireless Hp ENVY 4500 e to the work of my tablet "dopo M975"?

  • Scrolling blackBerry smartphones

    Until recently, if I wanted to get to the bottom of my message, I would use alt B, at the top of the page T alt.  Now, all of a sudden, one these control keys do not work.  Have I "erased their ability!  What should I do to "restore" their functions?

  • Help! Page looks good in FF + Chrome, but breaks in Safari

    Summer check all along in Chrome, frantically rushing to meet the deadline - and now a final check in Safari 6.0.5 before turning point in (ok it was a serious error) - watch things on this page all the up messed up.Safari changes the flow of the but