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;

}

Tags: Adobe Animate

Similar Questions

  • 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.

  • 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();
    }

  • 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.

  • Dynamically replace the spark icon button when you click on

    I'm looking to turn 'play' and the button icons 'pause' button in a video player, I developed.  It is a packaged application IOS so "ToggleButton" use is not recommended by Adobe. It is not mobile optimized.

    When you click on the button of the current icon should be replaced by another dynamically.

    How to do that generically - in essence, with traces hard coding to the assets inside the skin?

    I see a lot of examples where you can move an icon to a skin - like this http://blog.flexwiz.net/tip-easy-spark-icon-button/instance.

    But how did you then fail over to another icon on the fly when the user clicks on the button?

    Think I see how.  The value of the element of style "icon" in the AS button click handler.

    btnPlyPause.setStyle ("icon", "path_to_asset");

    Now just the logic of maintaining awareness of the State in which I am currently in - play or pause so I can choose the icon on the right.

    Cool.

  • Explorer Windows has stopped working when you click FLVfile

    http://go.Microsoft.com/fwlink/?LinkId=104288&clcid=0x0409

    Explorer Windows has stopped working when you click FLVfile / video clip downloaded by REALPLAYER

    Hello

    What version of the windows operating system is installed in the computer?

    I suggest you to see link and check. (That applies to windows vista and windows 7)?

    Error: Windows Explorer has stopped working

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

    Note: After checking in the clean boot, follow step: 7 article to reset your computer to normal startup.

    Note that it takes as much time to do the upgrade as to reinstall the operating system. In addition, some of your custom Windows settings may be lost through this process.

  • How to integrate an audio to a Muse image file so that the music plays only when you click on the image?

    Hello! I'm looking for a way to incorporate an audio file (mp3 or quicktime) into a still image in my Muse site. Ideally, the audio would play only when you click the image, so that each image can contain a separate audio file. So important is that the audio file is not visible on the site (so soundcloud, youtube and vimeo doesn't work here). Is there a way to do this? Thank you, AR

    Check out this edition of the month of 123Muse (www.123Muse.com). This is audio and video by Muse.

  • Slide paused continues when I click anywhere on the slide - why? (CP5)

    Hi - end of the CBT I create, I present some challenge questions.  I do not use the Quiz feature that I have not need enter the student responses.

    I added a blank slide with an image with captions of reversal.  I added a "continue" button, then they can go to the next page, after they are made to review the image.

    Everything works fine, the breaks of slide, so they have time to right-click the image, and leads to the next page when you click on the button continue.

    The strange thing is that it also goes to the next page when I click anywhere on the screen.  This only happens on these three blades, the rest of my film does not progress when you click on the background.

    For the slide, I put it on enter = continue and exit = No Action display time = 3 seconds

    For the button continue, I put it on success = go to the next slide, attempts = 1, the last attempt = go to the next slide, break after = 1.1 s

    Anyone know why when I click on the slide, it goes to the next slide?  I want to slide to pause until it only the button is clicked.

    Thank you!

    Your continue button is being set up so that if the learner does not click on the button action of the last attempt will be used.  By default it is to continue.  So while you want only the user to go to the next slide, if they clicked on the button, by setting attempts on 1, you said Captivate any click outside the button should invoke the action of breaking for this button, which will be to continue to the next slide.

    Try setting your button to the attempts of the infinite.  This disables the action of failure.

  • A circle that appears when you click with the eyedropper?

    When you click with the eyedropper in CS5, what is the big circle form that appears on the screen around him?

    Thank you.

    Hello!

    This blog explains what is the circle for: http://blogs.adobe.com/jnack/2010/05/color_picking_improvements_in_photoshop_cs.html

    See also this video: choose colors precisely with the eyedropper

    To disable, uncheck show color ring in the options bar. But try it, learn how to use it: http://blogs.adobe.com/jkost/2010/05/jumping_the_hud.html and you will see it become a major asset in your Photoshop arsenal.

  • I get garbage when you click on "View Page Source" of maff backup files.

    Hello
    Saved files mhtml and html, the HTML etc code view when selecting "View Page Source".
    Since the installation of the add-on Firefox to save web pages in the form of maff files, when you click on "View Page Source" it displays garbage.
    Is it possible to view the original source of a maff file saved?

    A MAFF file is a ZIP archive, so you should have extract the files in an Archive Manager, if you do not use an extension to handle this type of file.

  • 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?

  • Thunderbird crashes when you click the link in the email.

    Thunderbird v31.4.0
    Linux Mint Debian Edition 3.1.2 - amd64
    Cinnamon 2.0.14

    When you click on a link in an email, the system hangs and the screen displays jagged, diagonal lines. Cold start is required. This can be repeated.

    Same results running in Mode without failure.

    Any ideas?

    try turning off hardware acceleration for display driver.
    See https://support.mozilla.org/en-US/questions/1012145

  • 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...

  • not ask web pages uddenly that appears when you click on a link to

    I'm on a Web page that I want and I click on a relevant link for more information about this page. The link opens correctly but so is another page that I did not and has no connection or interest to what I do. Then I have to cancel the unwanted page and one remains open. It's very annoying and can you please tell me how to stop it. It only started happening recently.
    Thanks - I hope

    I understand when you click a Web link within a site, two Web pages open instead of one. This looks like some kind of Adware and I would recommend looking for malware or reset Firefox (please understand that this will restore Firefox to its default values, and all customizations will be removed in a folder called 'Old Firefox Data' on the desktop)

    Troubleshooting Firefox problems caused by malicious software and the Preferences of Firefox reset to troubleshoot and solve problems

Maybe you are looking for

  • npFirefoxPlygin.dll put in quarantine by Symantec?

    Why file object has been quarantined? More than 4 years, never this problem until now, had same Symantec and laptop.

  • Question about M40 with replacement screen TFT M40X

    Hello!I have a Toshiba Satellite M40 it the TFT screen is broken. I also have a screen TFT of M40X. Can I change the two screens? And I have to change the cable from the two screens or not? Thank you

  • HP PAVILION SLEEKBOOK: 14 - B001AU

    I'm trying to format window 7 to flag sleekbook 14-b001AU, it shows this message "A required CD/DVd device driver is missing. If you have a driver on a floppy disk, CD, DVD or USB Flash driver, please insert it now. ». so, how can I solve this proble

  • How to recover or find the network key for a router wireless (Netgear)

    Network wireless adapter NIC Ethernet network device How to recover or find the network key for a router wireless (Netgear)

  • new software update

    Can anyone shed some light on how to upgrade my applications and other things. After you install the new software, the updated widget is now gone, it is said there are twenty things need updating, but I can't find how to do more. Thanks in advance.