resume movieclip and video when you click playpause

Hello
I have a movieclip that plays as well as a video. I can pause the movieclip and video with the following code:

var listenerObject:Object = new Object();
listenerObject.stateChange = {function (eventObject:Object)}
If (my_FLVPlybk2.paused)
page2bslides_mc. Stop();
};
my_FLVPlybk2.addEventListener ("stateChange", listenerObject);

.. .but now, I just need the movieclip to resume playback at the same point, when the user clicks on the button play/pause again. Right now, video resumes, but the movieclip remains paused. Thanks for any info!

Add another condition to the statement:

else {if (my_FLVPlybk2.playing)
age2bslides_mc. Play();
}

Tags: Adobe Animate

Similar Questions

  • Pause video when you click it?

    Hi, I have a flash video which is set to auto play when page loads. We have just implemented system thickbox/lightbox on it now so when you click on the video she is growing in this new framework. Problem, when it made the video/audio is still playing while the video in the thickbox plays too. This listening ineffective attack. Does anyone know a code that would trigger the video to pause when you click anywhere on the video screen?

    Now the videos tested at this link- http://edlevinjewelry.com/indexTEST.html

    I don't currently have the video related to lightbox, just a link above the video to expand.

    With FLVPlayback, this is my current code (he currently coded and implemented for the automatic video game starts at 52 seconds)...

    Import fl.video.MetadataEvent;
    Import fl.video.VideoProgressEvent;

    Fl.video import. *;

    my_FLVPlybk.addEventListener (VideoEvent.COMPLETE, rewind);
    function rewind(eventObject:VideoEvent):void {}
    my_FLVPlybk.seek (52);
    my_FLVPlybk.play ();

    }

    var fp:FLVPlayback = my_FLVPlybk;
    fp.addEventListener (VideoProgressEvent.PROGRESS, videoProgressHandler, false, 0, true);
    fp.addEventListener (MetadataEvent.METADATA_RECEIVED, metaDataHandler, false, 0, true);
    fp.autoPlay = false;

    var startSeekTime:Number = 52;
    var videoDuration:Number;
    var videoSeeked:Boolean = false;

    function metaDataHandler(event:MetadataEvent):void {}
    If (event.info.duration! = null) {}
    videoDuration = event.info.duration;
    }
    }

    function videoProgressHandler(event:VideoProgressEvent):void {}
    var fp:FLVPlayback = event.currentTarget as FLVPlayback;
    var bytesLoaded:Number = event.bytesLoaded;
    var bytesTotal:Number = event.bytesTotal;
    If (! isNaN (videoDuration)) {}

    If ((bytesLoaded/bytesTotal) > = ((startSeekTime + 4) / videoDuration) & &! videoSeeked) {}

    videoSeeked = true;
    FP. Seek (startSeekTime);

    FP. Play();
    }
    }
    }

    Sorry, I thought that the flvplayback component extended the class movieclip.

    use:

    var toggle: Boolean = false;

    stage.addEventListener (MouseEvent.CLICK, videoF);

    function videoF(e:MouseEvent) {}

    {if (!) Toggle)}

    my_FLVPlybk.pause ();

    } else {}

    my_FLVPlybk.play ();

    }

    Toggle =! switch;

    }

  • is there a way when opening bookmarks stay you on the original tab up to open fact and only when you click on the tab

    When opening bookmarks, she immediately jumps to this tab and opens. is there was a framework so that when you open favorite stay you on the tab you on before you go to Favorites and these windows usually open until you click this tab >

    Hello buseric, you can try the following:
    enter on: config in the address bar of firefox (confirmed the message information where it appears) and search for the preference named browser.tabs.loadBookmarksInBackground. Double-click it and change its value to true.
    now when you click Middle (or ctrl-click) a bookmark will open it in a tab in the background...

  • Watch a video, when you click to enlarge full screen, it makes this SLOW slide and thing slow expansion. Safari is INSTANT full screen. How can I fix thi

    Example: I am on YouTube. I play a video. I click to enlarge to full screen. He SLOWLY slips stuff on. It SLOWLY expands to fill the screen. Is anyone seriously lame attempt to try to be cool? It wasn't always like that. And Safari is always: click the full screen and it is full screen INSTANTLY.

    How can I make Firefox expand a video in full screen INSTANTLY?

    Thank you!

    It is possible that they have the same effect.
    I don't know about it, then you have to check that the extension disabled.
    I don't know if this setting is saved and continues after you close and then restart Firefox.

  • Red dot that closes an application becomes black and crashes when you click

    If I use a mouse Mighty Mouse or Magic Mouse or Magic Mouse 2, the small red candy that closes an application frequently darkens when I click it. It freezes the app. I can still move the mouse cursor, but nothing else open or close until I click on the desktop, then click again on red gumdrop for the APP. This happens on all sorts of applications, Apple and third parties. It happens almost every time, but not always.

    This started after I've upgraded to a new trio of Apple keyboard, mouse, and trackpad with rechargeable batteries. I used a Mighty Mouse Wireless before getting the Magic Mouse 2. Because the edges of the Magic Mouse 2 literally cause my fingers hurt, for a while, I used the two mice. Maybe two mouse active at the same time have caused the problem. I looked everywhere in my library to the appropriate to throw files user preferences, but it left me speechless. I even tried resetting the PRAM and SMC resets.

    This behavior has migrated to a second iMac when I used Migration Assistant to import my main user account to the new machine. This machine's human interface devices are an Apple wired aluminum keyboard and a wired Mighty Mouse. So I'm sure it's a corrupted preferences file, but I don't know which.

    The two iMacs are 27 "(end-2012 and the end of 2013), and both are running macOS El Capitan 10.11.5 with all the updates."

    Any ideas on what is happening or how to fix it? Thanks in advance.

    Have you tried to "Force quit" the app (s) affected as and when the problem occurs, followed by a reboot?

    If the mice are sitting close to each other they are likely to interfere, although the button color change is not something that I've met before.   Disconnect the old mouse because only Magic Mouse 2 will work correctly with El Capitan.

  • Windows 7, CS4 Media Encoder of freezing and crashing when you click "Start Queue" - each sequence!

    Windows 7, Media Encoder CS4 crashes when the queue starts with firstsequences. However, open export sequences 'Add sequences' of Media Encoder very well. Have re-installed (without first uninstalling), question is underway. I have several important deadlines approaching soon, please help! Media cache has been cleared (automatically or in the past), computer has been defragmented and scanned for disk errors... I'm absolutely stumped!

    Create a new user account on your computer.  Give administrator privileges.  Launch RP and trying to send a sequence to the SOUL.  It work?  If so, the trash your preferences of Pr in your user account.

    In addition, if you do not use your account as an administrator, you should.  At the very least, set the Premiere Pro executable file to run as administrator.

    Jeff

  • Need content that is displayed when you click on...

    I need help with something I want to muse that I imagine is very simple, but I don't know even where to start with it.

    If you go to this page: front desk you will see a man and when you hover over the gray trigger boxes, you see a pop-up dialogue bubble, each trigger has a different speech bubble.

    The problem is I want the first bubble to appear as soon as you click on the man and then when you click again you see a bubble of different dialogue etc etc.

    Is there a simple way to do this?

    Thank you!

    Very interesting site first. Once you start should be the site of the day without problem.

    in any case, unfortunately you will need to come up with a creative way to display all the four individual links for bubbles with Muse. I don't know if it will work, but you can try to triggers in the composition of a few slideshow. Then when the user clicks on it, it can change the following trigger and so on. Worth a try. Good luck with your site!

  • Photo not added to the quick Collection when you click marker

    Recently I have not been able to add photos to a quick collection, when you click on the marker. The marker provides information, but the photo does not appear in the quick collection. This problem occurred at the same time, I couldn't remove the photos in the quick collection that had been added. I had to remove these photos using the menu system. I've upgraded to the new version of Lightroom 5 yesterday thinking that would solve the problem. I still have the problem so I wonder if this is a setting that I missed. Quick collection markers button is enabled in the display options and the button and change when you click them... The thumbnail of the photo is not added to the quick collection.

    It seems that you no longer have the quick Collection, referred to as a collection of target. Is there a small symbol '+' next to the name of the collection? If this isn't the case, you have another collection in your designated collection list.

    To fix, right-click the name of the quick Collection and click the option "set as target Collection.

  • Can see is more videos on the internet when you click on the arrow of reading, it becomes just a black screen.

    Original title: can see more videos on the internet is

    Since last week, my computer won't play any video on the internet. When you click on the arrow of reading, it becomes just a black screen.  I can always download movies from netflix.  I uninstalled adobe Flash Player and reinstalled and still does not work.  Someone at - it answers? Thank you!

    Hello

    Yes, it will work.
    However, when you try to open something on the internet, it opens with the default browser.
    Method 1: You can make the default Internet Explorer browser and then perform the troubleshooting steps.
    Reference:
    Change the web browser by default
    http://Windows.Microsoft.com/en-GB/Windows-Vista/change-your-default-Web-browser

    Method 2: Since then, it was working fine before, you can restore the computer to a date when it was working fine.

    Reference:
     
     
    If online videos play fine in Internet Explorer and cause problems only when you play in Mozilla Firefox, you can ask your question in the Forums in Support of Firefox as well:
  • Small box, Adobe Flash Settings for storage space interferes with videos. It won't go away when you click DECLINE. Windows 7

    This little box pop up asking the storage space appears constantly during the videos, and it won't go away when you click DECLINE.  I tried to DENY EVERYTHING in the settings, but then I couldn't videos, even videos that play, but are covered by the small box of Adobe, asking for storage.  I just never will have access to the videos without the interference of Adobe?

    Hello

    The application that you are running in Adobe Flash Player wants to store some information on your computer, but it needs more space than is currently allocated. Player, Flash displays the amount of space that is currently used for storage and pray the required maximum to save the information.

    You can use the Save Local settings panel to let future applications of this Web site to store information on your computer without asking you for permission each time. To display the Local Storage Panel:

    a. right click on the image for application during its execution.

    b. in the context menu, select settings and then click the Local Storage tab.

    You can also use the Flash Player Settings Manager to manage your settings of local storage at the global level and on a site-by-site basis.

    1. what application you run using Adobe Flash Player?

    2. you are trying to play the videos from the computer or online?

    3. what web browser do you use on your computer?

    Follow the steps below:

    Method 1:

    In the Settings of Adobe Flash Playerpop-up message, check the box never ask again, click allow and control.

    For reference:

    http://www.Macromedia.com/support/documentation/en/flashplayer/help/help07.html#117290

    Method 2:

    Uninstall Adobe Flash Player and reinstall the latest version and check.

    Uninstall or change a program:

    http://Windows.Microsoft.com/en-us/Windows7/uninstall-or-change-a-program

    Install the latest version of Adobe Flash Player from the link below:

    Adobe Flash Player:

    http://get.Adobe.com/flashplayer/

    Method 3:

    If you are facing problems in Internet Explorer, and then follow the steps in the link below.

    The video problems when you use Internet Explorer:

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

    Warning: Reset the Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings.

    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    For reference:

    Of local storage pop-up question:

    http://www.Macromedia.com/support/documentation/en/flashplayer/help/help06.html

    Let us know the status of the issue. If you need help, please after return. We will be happy to help you.

  • How can I get data from each associated XMLnode in movieclips separated when you click a line in the combobox

    How can I get data from each associated XMLnode in movieclips separated when you click a line in the combobox?

    A sample of XML is like this:

    <>planter

    < Lauvtre >

    < Botanisk_navn > Acer campestre < / Botanisk_navn >

    < Norsk_navn > Naverlonn < / Norsk_navn >

    Gronn < Farge > < / fan >

    H4 < Herdighet > < / Herdighet >

    < Hoyde > 10-15 m < / Hoyde >

    < / Lauvtre >

    I have a combobox where it shows the botanical name and the Norwegian name. But the rest of the info in movieclips seem separate.

    Someone has an idea how to do this? Can I use the trace function maybe? Here is my AS3 code so far:

    var loader: URLLoader = new URLLoader();

    loader.addEventListener (Event.COMPLETE, onLoaded);

    list.addEventListener (Event.CHANGE, itemChange);

    function itemChange(e:Event):void

    {

    your. Text = list.selectedItem.data;

    TB. Text = list.selectedItem.label;

    }

    var xml;

    function onLoaded(e:Event):void

    {

    XML = new XML (e.target.data);

    var it: XMLList = xml. Planter.Lauvtre;

    for (var i: uint = 0; i < il.length (); i ++)

    {

    list.addItem ({data: it.}) Farge.Text ([i]) + "\n"+ it.» Herdighet.Text ([i]) + "\n" + it. Hoyde.text ([i]),

    label: it. Botanisk_navn. Text() [i] + "\n"+ it.» Norsk_navn. Text() [i]});

    }

    }

    Loader.Load (new URLRequest ("lauvtre.xml"));

    Thank you!

    Rheus.

    I don't know what you're trying to do.  but, if you want to fill one combobox with the botanical names and when one is chosen, the other use of logins:

    var loader: URLLoader = new URLLoader();

    loader.addEventListener (Event.COMPLETE, onLoaded);

    list.addEventListener (Event.CHANGE, itemChange);

    function itemChange(e:Event):void {}

    var selectedObj:Object = a [list.selectedIndex]

    trace (selectedObj ['fan'], selectedObj ['Botanisk'], etc);

    }

    var xml;

    var a: Array = [];

    function onLoaded(e:Event):void {}

    XML = new XML (e.target.data);

    var it: XMLList = xml. Lauvtre;

    for (var i: uint = 0; i

    list.addItem({label:il[i].child('Botanisk_navn').toString()});)

    a [i] = {'Fan': it [i].child('Farge').toString (), 'Herdighet': it [i].child('Herdighet').toString (), "Hoyde": he [i].child('Hoyde').toString (), 'Botanisk':il[i].child('Botanisk_navn').toString(),'Norsk_navn':il[i].child('Norsk_navn').toString()};}

    }

    }

    Loader.Load (new URLRequest ("test.xml"));

  • How to open 2 sites on start and 1 Web site when you click the home button?

    How to open 2 sites on start and 1 Web site when you click the home button?

    You can change your shortcut on the desktop Firefox with two starting URLS. To try:

    • Shortcut on the desktop: right-click on the icon, choose Properties
    • Icon taskbar pinned: clic click right on the icon, right click in Mozilla Firefox, click on properties

    Windows normally selects the shortcut tab. If this is not the case, go ahead and click on the shortcut tab.

    You will see the target highlighted. On 64-bit Windows, which is usually either not less the following:

    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
    

    For the specific shortcut launch pages, you can add them to the end, for example:

    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -url "http://www.dilbert.com/" -url "http://www.gocomics.com/pearlsbeforeswine"

    After OK'ing the Properties dialog box, you can test everything right now to confirm that Firefox is now launching a window with tabs. Either:

    • Double-click the shortcut on the desktop
    • right click on taskbar icon pinned, click Mozilla Firefox

    Who do you want?

  • Cannot find the function edit that was on my old computer and firefox. When you click the Firefox icon, you can collect the text that has been deleted.

    Cannot find the function edit that was on my old computer and firefox. When you click the Firefox icon you can extract the text that was deleted by accident.

    Hello, you can press the alt key to display the menu bar with the Edit menu temporarily. or you can press ctrl + z which is the shortcut for "undo"...

  • When you click on a photo on facebook that loads the new popup, Firefox crashes 10 androgenic. Just Firefox crashes and unresponsive. Is there any solution for this?

    When you click a picture that load the popup that Facebook has recently presented on the occasion of just Firefox crashes and unresponsive and them must be closed using the Manager tasks. It does not occur every time say for every 2 of 10.

    That's what the error report says...

    Description:

     A problem caused this program to stop interacting with Windows.
    

    Signature of the problem:

     Problem Event Name:	AppHangB1
     Application Name:	firefox.exe
     Application Version:	10.0.0.4411
     Application Timestamp:	4f2548ce
     Hang Signature:	4813
     Hang Type:	0
     OS Version:	6.1.7601.2.1.0.256.48
     Locale ID:	2057
     Additional Hang Signature 1:	4813d58d219b01045ae1404b21f04466
     Additional Hang Signature 2:	ec05
     Additional Hang Signature 3:	ec057c79f467a3033cec4ebe11500204
     Additional Hang Signature 4:	4813
     Additional Hang Signature 5:	4813d58d219b01045ae1404b21f04466
     Additional Hang Signature 6:	ec05
     Additional Hang Signature 7:	ec057c79f467a3033cec4ebe11500204
    

    If Firefox crashed, then please provide Crash ID here.

  • In the latest Version of FireFox 9 Page Starup of Mozilla Firefox, pls which is the default home page no longer works, when you click it says invalid link, look at this and fix it...

    In the latest Version of FireFox 9 Page Starup of Mozilla Firefox, pls which is the default home page no longer works, when you click it says invalid link, look at this and fix it...

    Can be caused by a corrupt installation of Visual C++ (several versions can be installed-by-side; SxS) it lacks certain runtime components (Redistributable Package).

    See:

Maybe you are looking for

  • Google buttons do not work

    It has several buttons in Google search results pages that do not respond when I click on them (buttons safesearch options on the 'images' page and in addition, button dropdown to set access pages cached in Google regular search results page). I trie

  • RoboForm works on all night 18.0? My experience shows no..

    I installed all night 18.0 yesterday and couldn't get roboform toolbar to appear. I have uninstalled and reinstalled roboform nightly while the default browser.

  • How to access on Satellite U200 RAM?

    How do I access the RAM on my U200, so that it can be upgraded?Got the memory but do not know how to change it!

  • NB550D - replace the RAM or HARD drive without voiding warranty?

    Hello! I noticed, that generally, Toshiba users replace their HARD drives and RAM memory without voiding the warranty. But I'd be happy to get official confirmation if NB550D netbook.Can I pass without problem, my material in this model?If it is rele

  • Windows vista updates crashes reboot

    Hi, I've had my laptop windows vista for Christmas 2007 business and recently not installs the regular update of windows. The update appears on the home screen and I install, after the instalation it asks me to restart my computer when it restarts do