Flash FLV Playback continues when I change of scene

Hi all

I really need your help!

I create a flash program where certain scenes have FLV players playing different videos.

They all work very well, stopping and playing etc.

However when I leave the stage by clicking on my "home" button, the video stops, but the outline of the player remains standing in the new scene!

my code is reading;

Stop();
button_24.addEventListener (MouseEvent.CLICK, fl_ClickToGoToScene_98);

function fl_ClickToGoToScene_98(event:MouseEvent):void
{
MovieClip (this.root) .gotoAndPlay (1, "catch-up");
friends_vidPlayer.stop ();
SoundMixer.stopAll ();
}

button_25.addEventListener (MouseEvent.CLICK, fl_ClickToGoToScene_49);

function fl_ClickToGoToScene_49(event:MouseEvent):void
{
MovieClip (this.root) .gotoAndPlay (1, "home");
friends_vidPlayer.stop ();

}

Is there a way to tell playback FLV to 'hide' or disappear?

I tried most of the discussions and found nothing! Help, please!

Thanks in advance xxx

:

Stop();
button_24.addEventListener (MouseEvent.CLICK, fl_ClickToGoToScene_98);

function fl_ClickToGoToScene_98(event:MouseEvent):void
{

removeChild (friends_vidPlayer)

friends_vidPlayer.stop ();

MovieClip (this.root) .gotoAndPlay (1, "catch-up");
}

button_25.addEventListener (MouseEvent.CLICK, fl_ClickToGoToScene_49);

function fl_ClickToGoToScene_49(event:MouseEvent):void
{

removeChild (friends_vidPlayer)

friends_vidPlayer.stop ();

MovieClip (this.root) .gotoAndPlay (1, "home");

}

Tags: Adobe Animate

Similar Questions

  • Flash FLV Playback component - problem with swf

    Hope someone can point me in the right direction here - try just the FLV Playback component to replace a couple of short videos on a Web site with a version of flash.

    I've got the SWF works OK - when I saw in HTML it everything works fine.

    However, on the page I have downloaded on my site, it is not and looks like:

    link here

    Any ideas why not?

    I checked, and html, flv and swf files are all downloaded, as is the AC_RunActiveContent.js file.

    See you soon.

    Spotted it - didn't know there was a separate .swf for controls.

  • pause a video (phone.flv) when you change views of component

    I'm trying to pause a video (phone.flv) during the change of views component via the main menu bar. There is a concrete example of what I'm speaking in the Flex store demo; If you start the phone demonstration video (ProductSupport.mxml) and then leave this component for the HomeView video component continues to play. However, if the video is on the main component of the application (flexstore.mxml), for example, where the ViewStack navigation and ToggleButtonBar exist then it is possible to pause the video using:

    Import mx.events.ItemClickEvent;

    private void clickHandler(event:ItemClickEvent):void {}
    VD.pause ();
    List.Visible = true;
    }

    I want to be able to do is to get the video to pause when I pass ProductsView (ProductSupport.mxml) component (where the video is embedded) to the component HomeView. Any ideas on how this can be done?

    Thank you

    I'm assuming that by break, you mean for the video to stop playing when you change tabs (video flexstore 'support' default behavior is to continue playing even when the view has changed, not very friendly). Or do you mean a break in the literal sense so that you can return to the same place in the video when you have selected a different tab?

    If this is the first case, specify a FocusEvent within the ProductSupport.mxml, so that when he loses focus when you select another tab, she calls it simply a Manager to stop the video. I have not looked at the code Flex store in detail, so your mileage may vary:

    http://www.Adobe.com/2006/mxml '.

    paddingLeft = "4" paddingRight = paddingBottom '8' = '4 '.

    horizontalScrollPolicy = "off" verticalScrollPolicy = "off" creationComplete = "addFocusListener (); » >

    import flash.events.FocusEvent;
    private void addFocusListener (): void
    {
    addEventListener (FocusEvent.FOCUS_OUT, stopVideo);
    }

    private void stopVideo(event:FocusEvent):void
    {
    If {(vd.playing)
    VD. Stop();
    List.Visible = true;
    }
    }

    ... rest of the code in ProductSupport.mxml

  • I'm on Windows 10. A works fine until the update. How can I make Adobe Acrobat Reader (free verision) my default DC? Seems that the default value is E pdf and when I change the default in the flashes of screen reader and forms are in the same format. I ha

    I'm on Windows 10. A works fine until the update. How can I make Adobe Acrobat Reader (free verision) my default DC? Seems that the default value is E pdf and when I change the default in the flashes of screen reader and forms are in the same format. I rather Acrobat format if possible. Thank you

    Hello

    Could a right click on the PDF file > open with > choose program by default and select CD player as default PDF Viewer.

    You can do it from the control panel as well.

    This would make CD player as default PDF Viewer.

    Concerning

    Sukrit diallo

  • Stop the flv playback when you exit the current image

    I searched countless forums (here and other sites) and have yet to find the solution I'm looking for (if all goes well, if it exists).

    I have an flv file is loaded by the flv playback component.  Everything works except that the video (and audio) continue to play even after you leave the frame on which is the instance of the component.

    I found a solution that stops the audio using: SoundMixer.stopAll ();

    But the video is still streaming and affect the performance of the site.

    I want to stop the audio and video, which means using the: playbackInstance.stop ();

    However, all of the solutions I've met basically say to add the stop function to all buttons that potentially could borrow the framework with the instance of reading.

    This seems completely tedious and bulky, especially because I have visible navigation buttons from my 'main' swf and MULTIPLE instances of reading I have are found within a swf loaded with its own navigation as well.  By the nature of the design, instances of reading will not always be on the scene calling references will probably trigger errors.  Of course, there are ways to do this with conditional statements, etc.  But it just seems like a waste of time.

    Is there a simple way to call playbackInstance.stop () to navigate away from the current image?  An event to listen to?  I forget one obvious answer?

    I really want to think that there is a more elegant solution than adding so much in bulk to each eventHandler for button on my site.

    Add an event listener for the removedfromstage event.

  • When I change the battery on a power outlet, Firefox is empty, I close firefox, the "do you want to close" box is empty, too.

    I can't change current alternative to battery without incident. When I change the battery on a power outlet, Firefox blinks several times then turns off. To close the browser, I click on the 'X', which fortunately remains, and that the box "you want to close" is empty also. I hit enter and Firefox closes. I reopen and select restore previous... and I can continue. Just something I've ever known, do not know how to fix it. Sometimes, if I reduce the browser (""-"") at the top right before plugging in my diet, I can work around this problem. Sometimes he waits until I have maximize the browser, and again, it flashes and turns off anyway.

    Hello numberonejason, this is perhaps a problem with hardware acceleration. try updating your graphic driver, or in the case where this does not resolve the problem, disable hardware acceleration in firefox > options > advanced > General.

  • Hi, my screen flashes during playback of movies from Netflix

    Hi, my screen flashes during playback of movies from Netflix. It happens with other applications or when I play DVD. It begins in about 5 seconds in movies and it happens about every 4-5 seconds. The screen turns white for about a second, then it shows some horizontal lines, and it goes back to normal. And after a few seconds, he begins anew. I also noticed it always happen when I move my mouse during playback of a movie at Netflix.

    My PC is HP Pavilion 17 inch. I3 Haswel processor and Intel graphics card built-in. 8.1 to win

    I've updated all the drivers, but nothing helped.

    Any suggestions?

    Thank you

    Dmitry

    Figured out. Change refresh rate of 60 Hz 40 Hz p p and it solved the problem.

    BTW, HP helpdesk is completely useless... He does not call them – at least their 'free' in India support is completely incompetent.

  • Flash Player update is linked to the default browser?  -Flash not automatically updated when Chrome is the default

    Hello

    I managed machines for an organization where the majority of users have no administrator rights.  I put the Flash drive to automatically install updates.  In accordance with article (old)

    How the auto update feature does not work in Flash Player?

    "Normal Flash Player installations require an administrator account. However, automatic updates are executed even if the user is logged on with a standard account. »


    So I think my clients should be updated automatically to version 18.  However when I check, I see that they have not updated.  After watching cela some more I realize that when I use the control panel to check the updates that he launched Chrome, which is our default browser.  Of course, Chrome is up-to-date, because Google takes care of this.  However if I run IE and paste the URL of the version check in IE I see that flash is not up-to-date.  So, I try to run the update of IE, and when he is finished he launched a Chrome page again.  So it seems to me that Flash player uses whatever the browser is configured as default browser to search for updates with Adobe.  However this will not work if a user has Chrome as their default browser, and also has flash player installed separately for IE.


    Do you understand my point?  How can I get Flash player automatically updated when a new version is available, even if my default browser is set on Chrome?


    Thank you


    Scott

    Hey Piyush

    Thank you very much for this information.  So basically the feature to 'Allow Adobe to update Flash Player' does not work in all changes of the version.  I find it incredibly misleading.  Rather that engage in a cumbersome process to allow each year the opportunity to distribute flash and then create group policies to deploy, and then test the results to have these policies in place when flash tries to update itself, pay attention to the current versions of flash in order to deploy new .msi files and update our policies...

    I think I'll just remove the flash of all our systems.  It is clear that after installing flash is a continuous security risk and it is regrettable that we cannot rely on Adobe to help keep their own software update in a simple and effective way.  It's amazing to me that Google can do a better job of keeping flash updated in their browser at adobe.

    Thank you

    Scott

  • FLV playback component problem

    Hello world.

    I have problems with the FLV Playback component in Flash Professional CS5. In particular, I have works perfectly under Flash, I published it and yet when I go to insert the SWF file on my Web page using Dreamweaver CS4 the play with all the controls bar disappears. I am a completely free taught novice so I've probably missed something very obvious, but any help would be greatly appreciated because it is now driving me crazy!

    Thanks in advance

    Let yourself be guided by the server.  It is a random test in DW.

  • Auto/hide with Flv playback doesn't work with javascript lightbox, need help?

    Hello world

    I've created a few swf loading an flv file in flv playback and check on the parameter auto/hide. When I test the movie, it works fine. BUT, in my site, I put these swf files in Lightbox (javascript based) and when the mouse passes over the flash video, it shows the Player skin and when the mouse goes off, the Player skin stays on the video! Why? Does anyone has an idea on how to force the parameter auto/hide in this case?
    Thanks for your help

    Orlenka

    Found this post while searching for an answer, but not found much elsewhere so I will post my solution quick and ugly here. I'm sure it can be improved, but I didn't have much more than 5 minutes. Note: .visible affecting false just finished what causes the transition from autohide to happen again and again, to remedy this I'm just temporarily spend the whole sprite off the screen.

    (AS3, using the CS5 component... Note that 'player' is the FLVPlayback instance):

    # force "Auto hide" what inactive mouse

    var: timer = new Timer(1500, 0);

    timer.addEventListener (TimerEvent.TIMER, onTimer);

    Timer.Start ();

    var skinSprite:DisplayObject;

    var prevMouseX:Number;

    var prevMouseY:Number;

    function onTimer(e:TimerEvent):void {}

    get skinSprite if have not already

    {if(!skinSprite)}

    var child: DisplayObject;

    for (var i: Number = 0; i< player.numchildren;="" i++)="">

    child = player.getChildAt (i);

    If (i == 2) {//this is the skinSprite

    child = skinSprite;

    }

    }

    }

    Check if the mouse has not moved since the last event of the timer

    If (skinSprite & mouseX == prevMouseX & mouseY == prevMouseY) {}

    skinSprite.y = - 1000;

    }

    prevMouseX = mouseX;

    prevMouseY = mouseY;

    }

    stage.addEventListener (MouseEvent.MOUSE_MOVE, stage_onMouseMove);

    function stage_onMouseMove(e:MouseEvent):void {}

    {if (skinSprite)}

    skinSprite.y = 0;

    }

    }

  • Plugin Flash causes enlarged video when stuttering on sites like jerk

    I noticed that on sites like shake or Youtube, which is more the size of the window for the superior quality of video content workflow, it tends to stutter and the disk to thrash. Since the jerk and YouTube are now two 60 fps support videos, it is very easy to tell when the video stutters.

    If I reduce the size of the window down, the problem is not completely relieved, but he gets it no better. With Chrome, I don't notice really any slowdown, but it's using the same version of Flash.

    Any thoughts or ideas on what could be the problem?

    Hello

    Some problems with Flash video playback can be resolved by disabling hardware acceleration in Flash Player settings. (See this article for more information on using the Flash plugin in Firefox).

    To turn off hardware acceleration in Flash Player:

    1. Go to the Adobe Flash Player help page.
    2. Right-click on the Flash Player logo on this page.
    3. Click settings on the shortcut menu. The Adobe Flash Player settings screen opens.
    4. Click the icon in the lower left of the Adobe Flash Player settings window to open the display panel.

    5. Remove the enable hardware accelerationcheck box.
    6. Click close to close the Adobe Flash Player settings window.
    7. Restart Firefox.

    This Flash Player help - display settings page contains more information about the Flash Player hardware acceleration, if you are interested.

    Does this solve the problem? Let us know.

  • Since the installation of El Capitan, my streaming to my Audioengine DAC D2 cut after 12 minutes (the default duration of sleep). It will restart by pressing the space bar. When I change the duration of sleep, the cut outs are becoming more frequent and i

    Since the installation of El Capitan, my streaming to my Audioengine DAC D2 cut after 12 minutes (the default duration of sleep). It will restart by pressing the space bar. When I change the duration of sleep, the cut outs are becoming more frequent and intermittent. Help?

    I checked the wifi and changed frequency (new modem, frequency change made no difference). The Board battery seems fine - all updates well. My computer is an iMac (2011), 3.1 GHz Intel Core i5, 8 GB 1333 MHz DDR3, with a new AMD Radeon graphics card. I recently installed a State strong 1 TB SATA drive and fitted with a LaCie Porsche 4 to USB for backup and a 4TB disk storage RAID LaCie drive.

    I'm frustrated, having to come in my computer since my living room every 12 minutes to continue to listen to Spotify on my stereo system.

    My guess is there a bug in the software of sleep in El Capitan, which disrupts his (I've tried different USB ports connect the Audioengine sender and same thing).

    Should I go back to Yosemite?

    Turiteaguy

    First of all, 10.11.3 OSX just came out. Try this.

  • Why my screensaver pop up continuously when I am in the middle of something and so I have to log in again?

    Why my screensaver pop up continuously when I am in the middle of something and if I click on new in the program fast enough, I have to reconnect. It gets really annoying. Help, please.

    I tried the 'clean boot' thing, but it did not help. I continued to explore all the options I could think & I think I finally got. I might be a little embarrassed of it's a simple thing, it turned out, if I considered myself more ' compatible computer, but I "don ' t... so I'm not." In any case, just to let you know, because I appreciate you taking the time to help me, this is the 'waiting time' & 'on RESUME, display logon screen"in the"settings screen saver box. I had fixed in 1 min. & I had the "on RESUME" box checked. I've been playing with it a few days when I was changing my "background theme". Anyway, thanks a lot for taking the time :)

  • Flash does not work when the screens are deployed

    I use the latest version of Flash CC and now when I try to draw using my tablet in flash it causes traces from brush hang the canvas, it only works if I duplicate screens. How can I fix it?

    He is a current and documented issue that flash continues to have. I do not remember the answer (if found), but I suggest you do a search in the forums here, the question at least once a week.

  • When I change the main mxml file in the project and then export the swf file does not change, why?

    I have an existing project, years ago that I need to change, I am using Flash Builder 4. When I export the project, it creates a SWF in bin-release, then when I change the code in the mxml project file or files of any format and export the swf file needs to change, but it's not. You have an idea why this might happen?

    Thank you

    I found the problem, there was a SWF into the html-template folder within the project. This has led to substitute the swf of the new generation.

Maybe you are looking for

  • Where to find the RAID for Satellite A300 drivers?

    Hello Where can I find drivers for A300 (PSAJ0E) raid? Post edited by: ADMIN

  • Want to keep track of my laptop

    Dear Sir/Madam, 7 days before someone stole my cell phone during your trip. I lost and I want to recover my laptop HP, so I am writing this mail. I want to track my lost laptop HP location and return. Please suggest how to follow and get my laptop. b

  • I can't update anything on the update of widows

    Whenever I try to install an update, it always says that there is an error. And I need most of the updates because they help my security and protection. Please help me! I tried to scan my calculation for any virus, I already removed a fake anti-virus

  • Slave keeps restarting after unstacking-Dell PowerConnect 6224 switch

    Hello everyone; I have 2 switches (PowerConnect 6224) on the other. Because we are them stacked like we got new switches, we decided to remove the cables from the battery and use them as individual switches. So I tried to unstacking the first switche

  • PC will crash to a black screen

    For some reason, that my pc will crash just no bsod no error, just a black flickering screen.always requires a manual restart. Then it can restart a flickering pattern on my monitor. Once I used the system restore, I'm good for a few days or more, an