Stop SWF playback on DIV hide

Hi Guys,
I have several DIV layers showing and hiding on HTML/JS nav
buttons. One of these DIV layers contains an SWF with FLV and is
set to autoplay on. Upon hitting another nav button to hide this
layer and show another DIV the SWF continues to play in the
background ( it's not visible due to the hide but the FLV's audio
continues).
How can I stop/pause (and/or rewind) the playback of an SWF
in a DIV when that DIV is hidden through a standard HTML/JS nav
button???
Any help appreciated...
Thanks.
Corey

In your html you have a couple of problems that are very
evident:
In this function:
function callFlashPlayPauseVideo() {
flashVideoPlayer.pauseResume();
you are calling a function "pauseResume()" in the Flash movie
Referenced as "flashVideoPlayer". However, your Flash movie is
referenced as "promo". You need to change the reference in the JS
function or the references in the html.
There is no function "pauseResume()" in the AS code that you
show. The two functions that you do show, should work. To call
those two AS functions, you will need two corresponding JS
functions in the HTML doc.
Look at this Adobe doc, it has a good example to follow:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/external/ExternalInterface .html#includeExamplesSummary

Similar Messages

  • ITunes stops during playback and won't start until I restart the computer

    I'm hoping someone can help me with this. I just reformated my computer and placed all the updates and programs back onto my computer. I had iTunes on my computer before and I reinstalled it then upgraded it to version 7.3.2.6. Now I've been reintroducing music back into the library on a folder by folder method (drag and drop). Anyway, during review of the songs I will get a random issue where the iTunes just stops during playback. I have shut down the program and restarted it. I've also shut down the following programs at different times to see if it would help:
    iPodService, ITunes.exe (the program), iTunesHelper, and even taskmgr.exe. Nothing seems to help. When I restart the program I click on play (any song or playlist) and nothing happens. The only thing that I have found to help is rebooting my computer. Does anyone have any ideas?
    I've check the event logs and nothing is showing in there and other programs are working without an issues.
    Please help!

    Any suggestions on what this can be?
    A dead battery.  Buy a new one.

  • What is causing, and how do you fix, a song stopping during playback? I have latest iTunes 12.0.1 and Yosemite 10.10.1

    What is causing and how do you fix a song stopping during playback? I have latest iTunes 12.0.1 and Yosemite 10.10.1.
    It stops then after several seconds (like 25 secs) then it starts again ... and then several seconds later it stops again!
    I have the latest software so I don't know what to do?
        David V.

    When you have the problem, note the exact time: hour, minute, second.  
    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    Each message in the log begins with the date and time when it was entered. Scroll back to the time you noted above.
    Select the messages entered from then until the end of the episode, or until they start to repeat, whichever comes first.
    Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of it useless for solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • While watching rented movie it stops during playback, how do i fix it?

    I rented a long movie and it continues to stop during playback, how do I fix that?

    Hi dedesgirl,
    Welcome to Apple Support Communities.
    It sounds like there is an issue playing songs in iTunes. Does the playback issue only occur with specific tracks and were they purchased from the iTunes Store? Take a look at the article linked below and try the suggestions which will resolve most iTunes and QuickTime Player playback issues.
    iTunes and QuickTime for Windows: Audio does not play or plays incorrectly
    http://support.apple.com/kb/TS1362
    I hope this helps.
    -Jason

  • Stinking up the iPhone: auto-start and/or auto-stop iTunes playback

    The feature to auto-start and/or auto-stop iTunes playback is a disaster. A good idea poorly implemented perhaps, or maybe not possible to implement well. PLEASE PLEASE PLEASE give us a setting to turn this off! MANY MANY ENTRIES ACROSS MANY FORUMS! (e.g. Apple Discussions messageID=9937311) I will consider switching to another smartphone for this reason alone, it's that big a nuisance.

    Welcome to the discussions,
    you are not addressing Apple in these forums, we are all users here. Use this link to talk to Apple: http://www.apple.com/feedback/iphone.html

  • SWF stops during playback

    Working with a 5.5 project and have inserted an animation (SWF). This was supplied to me by the client, and is a simulation captured in 5.5. I have the timing set to the duration of the animation, and the SWF itself is the entire slide, so there is no conflict on the timeline.
    It just stops playback of the sim. I can run  it from my desktop just fine, but when embedded, it stops (and interestingly enough, not always at the same place).
    Insights?

    Nesting Captivate SWFs inside other Captivate SWFs is not a recommended practice for exactly the reasons you are discovering.
    The better way to do this is to copy the slides from your simulation into the project rather than inserting the published simulation SWF.

  • Music starts and stops during playback of burned DVD

    I really need help with this problem...I made a slideshow and added music from itunes in the program IDVD. Once I burned the DVD the music will start and stop throughout the DVD and not at chapters as I read in other threads - but in random places on the DVD. The DVD sounds like it gets hung up and then starts again. This is my first project using IDVD, so any help would be great.

    Debra,
    Do your project have music purchased from iTunes? If so, that could be the cause of this problem. Music from iTunes is DRM-protected and can cause problems in playback. To take care of this, first burn all of your purchased music to a CD, then reimport in an aiff format. To do this, in iTunes, go to iTunes>Preferences>Advanced>Importing. Look for "Import using", and use the drop-down menu to select AIFF encoder.
    Good luck.

  • Sound stops during playback

    Running the latest version of CS6 (current on all updates) on a Mac Mini i7 2.3GHz with 16GB RAM running OS X 10.8.2.
    Whenever CPU usage starts to get a little heavy, sound will go silent at random times during playback of timeline in the program monitor.  Meters go to zero when sound goes out and go active when sound returns.  Video playback is fine and there are no dropped frames.  This also was happening on my previous machine, a 2008 Mac Pro.  Started happening with CS6 and never happened in CS5.5.
    All my source footage is h264 from a Canon 5D.  Sequence was created by doing the 'create sequence from clip' command.  Program monitor resolution is set at 1/4.  Played with setting audio hardware buffersizes to different values but with no change in behavior.

    I'm having the same problem on an editing workstation with CS6. The audio will stop playing after 4-5 seconds, video plays fine. The timeline has been rendered. If I hit the stop/pause key, (spacebar), and hit it again, it will play for another 4-5 seconds before the audio drops out. Sometimes only one audio track will stop playing.
    Video is 720P, two audio tracks, three video tracks.  System is win 7-64 with an intel I7 extreme CPU, 12 GB RAM (9GB dedicated to Premiere, performance mode)
    Any suggestions?

  • Positioning a swf inside a DIV

    Hi everybody,
    I am redoing a site for a friend, which was originally done using frames in GoLive. The site is very siimple but I can't figure out how to positoin the menu that I've placed inside the navbar DIV along the left side. I want it to stay positioned along the top, but it centers itself in the DIV and hangs too low.  Here is the site www.matthewtomlet.com/ and I'm including the CSS code below.If anybody can help it would be appreciated, This the first site I've created using CSS, so the coding might not be ideal, but the site seems to be functioning well. Also, the home page just has one small image on it but the scroll bars show up, not sure why that is either.
    Thanks again.
    Kind regards,
    Mark
    body {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 100%;
        background-color: #000;
        text-align: center;
        margin: 0px;
        padding: 0px;
    p {
        font-size: 1 em;
        color: #FFF;
        text-align: left;
    a {
        color: #FFF;
    #wrapper {
        height: 660px;
        width: 870px;
        margin-top: 35px;
        margin-right: auto;
        margin-left: auto;
    #navbar {
        width: 220px;
        clear: left;
        float: left;
    #monoslideshow {
        width: 650px;
        clear: right;
        float: right;
    #maincontent {
        width: 650px;
        height: 300px;
        margin-top: 150px;
        clear: right;
        float: right;
    #maincontent p {
        font-size: .9em;
        color: #FFF;
        text-align: center;
        margin: auto;
        padding-top: 20px;
    #maincontent p a {
        font-weight: bold;
        color: #FFF;
    #homepageimage {
        height: 200px;
        width: 477px;
        margin-top: 175px;
        margin-right: auto;
        margin-left: auto;
    #contact {
        width: 650px;
        height: 125px;
        margin-top: 250px;
        clear: right;
        float: right;
    #contact p {
        text-align: center;
        font-size: 0.9em;
    #contact p span {
        font-weight: bold;

    Do you understand the price you will pay for using a Flash element for navigation on the site?  This will render the site unnavigable for both those with screen-assistive devices, and for search engine spiders.  That means that the only page that will be spidered is the landing page after your splash, and unfortunately, there's no rankable content there. So, the whole site will be ranked based on this single title tag -
    <title>Matthew Tomlet Paintings</title>
    Bummer....
    Nevertheless, if you browse directly to the menu.swf file here - http://www.matthewtomlet.com/_images/menu.swf - you will see that the space you are wanting to remove is actually part of the Flash file itself.  You would need to edit that file with Flash to remove that space.

  • Need help with FLV type SWF playback in flash movie

    Hi,
    I have three external SWF files from a client without FLA
    sources. The SWFs were done 3 years ago by someone else so there is
    no way to modify the existing SWF files. These contain no
    interactivity but may involve nested clips on the main timeline.
    They are AS1 or AS2 files so they need to be done with AS2
    scripting to keep it simple.
    I need to call these SWF files inside another flash movie and
    play them in a player window as if they were video files with
    play/pause, seekbar and volume controls. The needed functionality
    is similar to FLV players. My controls will use custom graphic
    buttons and sliders mimicking the look of CNN video player window.
    Does anyone know a good tutorial on how to script these
    controls for SWF?
    Most likely I think I will load it in a clip and I am
    thinking that I will need to get the duration of the loaded swf in
    order to set up the seekbar.
    Thanks in advance,
    Attila

    I think your professor, or somebody, gave you directions with ActionScript 2 programming. In AS2, what oyu have here would have worked just fine. But, in AS3, you need to use a fairly different approach. Your buttons, and their instance name, can remain the same. But now, in AS3, you have to add event listeners in the following manner:
    yourButtonName.addEventListener(MouseEvent.CLICK, yourListenerFunction);
    In your case, you can do one of two things - A) assign a unique listener function to each button, or B) assign the same listsner to both functions:
    A)
    start_btn.addEventListener(MouseEvent.CLICK, startPolygon);
    stop_btn.addEventListener(MouseEvent.CLICK, stopPolygon);
    function startPolygon(e:MouseEvent):void{
        polygon.play();
    function stopPolygon(e:MouseEvent):void{
        polygon.stop();
    B)
    start_btn.addEventListener(MouseEvent.CLICK, controlPolygon);
    stop_btn.addEventListener(MouseEvent.CLICK, controlPolygon);
    function controlPolygon(e:MouseEvent):void{
       if (e.target.name == "start_btn") {//Test for the name of the object that dispatched the CLICK event
          polygon.play();
       } else if (e.target.name == "stop_btn") {
          polygon.stop();
    When I'm using several buttons that do the same/nearly similar things, I favor approach B over A, as it keeps me to jsut one single function to deal with.

  • Mainstage 2.1 - EXS sound stop when playback loop start

    Hi,
    i use with MacBookPro 4(Go) and audio Kontrol (Native instrument)
    i have some concert with exs24 sound violin , when i play a note and start a loop in Playback after, the violin sound stop!
    do you have an issu?
    Thanks

    Sure, a quick reply: create a multi audio track song in Logic using markers. Bounce this to AIFF files - one for each instrument say.
    Using the MS multi track mixer template, drag the bounced files into playback instances and set the synch option to "wait for marker"
    Start MS playback then use the jump back/forth between markers buttons to do that. MS should continue playing untill it reaches the end of the section, then jump. It does but the results are unpredictable. Mostly I get white noise. This used to work under 2.1
    This is very well documented in another post and YT vid which I will try to find and append later today.
    Here it is: http://discussions.apple.com/thread.jspa?threadID=2372092&tstart=75
    Message was edited by: randallp

  • Video downloaded directly to iPhone stops during playback

    I downloaded a video from the iTunes store directly to my iPhone 3Gs. Now during playback, it stops
    at a particular point and will not continue playing. Of I try to drag the scrubber forward in the video, it snaps back to the point where it stopped. What could be the problem with this?
    Thanks in advance for any assistance,

    find the file in iTunes (you may need to sync it if you downloaded directly to the iPhone), then click on it, and then click on "file -> get info" on the menu bar. go to the "options" tab and see if the "end time" is something besides the actual end time of the file. that's the only thing i can think of that would cause this issue.

  • Video recording stops music playback

    When I have music being played, if I open camera app - it still works, but as soon as I flip the camera into video mode - playback stops. Is there any way to fix it?

    I think the Apple engineers though you'd play the music via the speaker, hence they don't allow this. Or, the same audio circuitry is used for recording / playing (e.g. amplifying) and this is why the two operations are exclusive.

  • Swf playback controls not working correctly

    Hello all -
    When I publish the Captivate project that contains a swf file
    and an audio file everything plays well until I use the controls.
    Stop/pause works fine,but when I use rewind or ff etc the swf file
    will not rewind nor start over.
    Any help would be appreciated
    Thanks
    Rick

    Uninstalling Glimmerblocker fixed the problem of Safari being able to access all web sites.  One of the other many procedures I did must have solved the issue of the apps not launching.

  • How do I stop scrolbars in a DIV in Netscape

    Hi
    I have a containing DIV which displays fine in Firefox and
    IE, but when it's dynamic data extends too low, scrollbars appear
    within the DIV (only in Netscape).
    What do I put in the CSS to stop this?
    Cheers
    Shaun

    On 06 Apr 2007 in macromedia.dreamweaver, celebritymusic
    wrote:
    > I have a containing DIV which displays fine in Firefox
    and IE, but
    > when it's dynamic data extends too low, scrollbars
    appear within the
    > DIV (only in Netscape).
    >
    > What do I put in the CSS to stop this?
    Glad to see you found your solution. Don't worry about
    Netscape too much
    - I almost never see it in the wild.
    Joe Makowiec
    http://makowiec.net/
    Email:
    http://makowiec.net/contact.php

Maybe you are looking for