End of swf playback

Hello to All -
Trying to set up a webpage so that when a Flash movie has
finished playing some code will run. Is there a way to tell when
the movie is finished playing without using Flash itself? When I
encode the sfw to fla (using SUPER) the resulting quality in the
fla is very poor and can't be used, so if possible I need a
"trigger" of some kind that identifies when the movie has finished
playing.
Thanks for your help,
John

I needed the same thing to remove a video layer from a web
site when the video ended. I found no solution that didn't involve
Flash (initially trial versions - then I bought CS3) and in the end
I paid a guy in the UK to create the end result and send me back a
zip. Once I had it I had a template for making any FLV operate the
same way, so it was worth the hundred plus I gave him. To be clear,
ActionScript alerts when the video stops and javascript quite
separately removes the player from the page. If it isn't removed it
obstructs and live content underneath (like a nav button), even
though it's invisible - in the case of those I do. See one at
www.netvideomaker.com
David Hurdon

Similar Messages

  • .swf playback chppy at end of the movie

    I have a player.swf which has play and a pause buttons. This
    player loads external .swf movies. Each movie is about a minute
    long and I cut them up into 3 to 5 movie clips. So, the movie's
    main time line uses 3 to 5 frames, at the end of a movie clip I
    tell it to go to the next frame in the main time line. The strange
    part is on the the last frame of the main time or somewhere in the
    last movie clip the animation freezes up, well sort of. It plays
    really slow, almost like the pause was pressed for a minute then
    the play button was click really quick then back to the minute long
    pause. I'm having a really hard time finding the problem since the
    majority of the time it plays fine. Please watch the movie and let
    me know if it feezes up on the last part of each section. If
    anybody know this problem or has any questions please let me know.
    http://www.paysimple.com/demobeta/
    watch example

    I barely noticed, but i do think I know what you're talking
    about. The frame rate looks pretty low, like 12 fps. So if its what
    I thought is was, the number zooming in at the end, I think it just
    might be the ease in conjunction with fps that causes the stutter.
    my 2 cents.

  • Problem with .swf playback

    Hello,
    I have a problem with .swf animation playback in captivate 4. I created the .swf in flash with as3 on one frame. The animation is contained in a movieclip. I exported from flash and made sure the framerates between captivate and flash work. I import the animation to a slide and notice that the duration of the animation is .01 (could this be a red flag?). When previewing my captivate file the animation does not play it shows up static. I have my captivate file set up with continue buttons but I tried taking the button off the animation slide and it still shows up with the static what would be animation. Has anyone else encountered this? I'm really at a loss as to whats going on
    For bonus points: I'm still getting a transition that fades to white briefly even after I put no transition. Is their a way to just have an abrubt transition without the fade?
    Cheers
    -Matt

    Alright now it makes more "sense".
    Your SWF problem is caused by a bug in Captivate. I have encountered this many many times. Basically if you import a Flash animation and you have more than 1 slide in Captivate it will play to the end before you get to the slide with the animation. It's a really annoying bug that also occurs if you insert an SWF created in Captivate into a master Captivate project.
    There are a couple of solutions to your problem.
    1. Try and Externalize your animations when you publish your Captivate project. This can sometimes remove the problem. You can edit the settings in Preferences - Publish Settings.
    2. Create a loader in Flash that will pull in your animation SWF. Basically you just need to do a loadMovie shell in Flash and then have that pull in your animation SWF. I use this all the time for AS2 projects, but I guess that it will work just the same for AS3 projects.
    As for your fade in / fade out issue. Did you by any chance set a transition effect on your slides? Check the Slide Properties for a transition effect. If that's not it - is your fade in issue only occuring on the first slide? The "master" setting for a Captivate project has a default to fade in on the first slide. You can change that in Preferences - Project - Start and End.
    /Michael
    Visit my Captivate blog with tips & tricks, tutorials and Widgets.

  • Detect end of swf & reload another

    Hi,
    Currently I am using this code to play a selection of .swf files using the keyboard.
    var myrequest:URLRequest=new URLRequest("1.swf");
    var myloader:Loader=new Loader();
    myloader.load(myrequest);
    stage.addChild(myloader);
    //Adds event listener to the stage.
    stage.addEventListener(KeyboardEvent.KEY_DOWN, detectKey);
    function detectKey(event:KeyboardEvent):void {
    if (event.keyCode==81) {
       var myrequest1:URLRequest=new URLRequest("2.swf");
    myloader.load(myrequest1);
    if (event.keyCode==87) {
       var myrequest2:URLRequest=new URLRequest("1.swf");
    myloader.load(myrequest2);
    if (event.keyCode==69) {
      var myrequest3:URLRequest=new URLRequest("3.swf");
    myloader.load(myrequest3);
    Now I would like to detect the end of, say, 1.swf to load into a different swf, does anyone know how best to acheive this? I have tried a few tutorials with no success!
    Many Thanks

    One way would be to have each swf be assigned an event listener after being loaded so that you could have each one dispatch an event when they complete.  The event handler function for the listener would take care of loading the next swf.
    Another approach, if these are frame by frame animations, could be to continually compare the currentFrame versus the totalFrames as soon as the files are loaded and initialized.  When the two values are equal, trigger loading the next.
    In both cases you should include listeners to determine when the files are loaded before establishing either method.

  • DVD and SWF playback

    My client wants to play DVD and swf animations
    simultaneously.
    Has anyone done this and if so, what performance issues can I
    expect ????
    Minimum spec, anything would be good.
    Would be nice just to tell him NO !

    At least, the minimum system requirement will have to be
    raised to
    accomodate simultanious playback, setting a short test demo
    might be the
    most definitive way to prove unfeasability.

  • 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

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

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

  • Jerky swf playback

    Hello everyone,
    I'm afraid I need help again.  The website I made is complete but there is one issue I cant fix.  My image gallery scroller play back is jerky, it seems like a interlacing problem.  Please take a look here at the front page
    www.basilandchives.com
    This is a swf file with mouse interaction (mouse left scroll left, mouse right scroll right) 30fps, they are jpegs at 300x300 pixels.  Mainly the upper part of the pictures are affected.  I've looked everywhere in Flash CS4 and cant find the option setting for interlace or progressive, or does it even exist?
    I've tried setting the Jpeg setting as progressive in Publish setting but the problem still persist...
    I've tried viewing with several computers so far and they all have the same issue.
    Thank you,

    so, you're using timeline animation.
    there only a few things you can do to improve that animation:
    1.  lengthen your imgBar timeline and
    2.  enable the cacheAsBitmap property of imgBar.
    you may want to increase your fps to compensate for the increased timeline length of imgBar.
    if those fail, you'll need to redo your project using actionscript to scroll imgBar.

  • Delays in my SWF Playback

    Flash Wizards Help!
    I just finished working on a 12 minute animation in Flash
    (after only 4 years).
    The cartoon has sounds and music contained within it.
    Whenever I quick-preview the film in Flash (through SWF
    -command/return), everything lines up perfectly.
    Now, when I preview the cartoon in a web browser, or through
    my website, there are lags throughout, and the music doesn't stay
    on queue-- it falls behind. I tried this preview in Shockwave and
    HMTL mode.
    The Flash file itself is 383 MB, and the SWF is 25 MB.
    Is there a way to get a smooth undelayed performance for the
    web? I did check the Bandwidth Profiler and I do have quite a few
    scenes that are above the red line. I wouldn't know how to trim
    that, since most of the files over the line are symbols in
    transformation, or a combination of voice over, sound effects, and
    music.
    If anyone knows a way to resolve this ever-depressing
    dilemma, I would greatly appreciate it. Thanks for your time and
    input!
    Arthur

    Thanks for the suggestions. I will create a preloader for the
    file. Regarding my audio....I have many overlapping
    sounds....voices, music and sounds effects....They are set on
    separate layers as "Sync: event" (not streaming). The problem with
    the score is, I have a long take (about a minute) and it runs
    through several scenes. It's here that the music starts lagging,
    along with a slow down between scenes overall (when viewed through
    a browser). I don't have many jpegs, if any at all. I just have to
    figure out a way to simplify the files, and that seems very
    difficult. Thanks again for your help! I'll see what other
    solutions pop up.

  • Flash novice - swf playback how-to

    ...so I've got a swf as my portfolio/demoreel interface,  I've got all the buttons working right (bio, resume) but I don't know how to add code to the demoreel portion(which is a .swf file within the .swf interface) I've added it on a layer in my scene, hoping that it would simply start playing, obviously its not working as I expected.
    If i've got a button with instance name: demoreelButton_instance1, how do i script the button to have the swf start playing?
    any help would me much appreciated,
    Cheerz
    -M

    If you imported the swf into your library and it contained actionscript to make it work, it doesn't contain the actionscript anymore.  You need to dynamically load the swf in order for it to retain its built-in functionality
    In any other case, you should be able to just target the swf object and tell it to play();

  • SWF Playback - Adjusting Framerate?

    Hello everyone,
    I'm running into a peculiar issue with Catalyst. I tried searching the forums, but could not find anything specific to the issue I am experiencing:
    I created a menu bar with a space for animated swfs at the bottom(banners, etc). I imported the swf banners, set it up to play, and everything appears ok...
    ...the catch is, Catalyst seems to set its own framerate when playing the animation. I created the banners at the default 12fps in Flash CS3, but the fps doesn't seem to make a difference when I port it over to Catalyst. I tried re-publishing the banners at different fps rates (I even tried setting it to 1fps), but it did not affect the speed of how the banner plays when I take it into & publish it via Catalyst.
    Is there a way I can adjust the fps rate in Catalyst? Or, use any kind of Actionscript in the banner swfs to set & keep the framerate at a constant, even when I port it over to Catalyst?
    Thanks in advance!

    Flash Catalyst's frame rate is based on the default frame rate in the Flex framework. If memory serves it is set to 24 fps. Flash Catalyst does not expose this value.  You would have to adjust this using Flash Builder, but that might lead to other things not being responsive in the interface. I would recommend recreating the animations to 24 fps.
    Hope this helps,
    Chris

  • StageVideo on android shows a black frame on the start and end of video playback

    When my screen starts up it goes completely black for a moment and the interface becomes unreponsive for about a second when my stagevideo player class is added to the stage. My videos are encoded using Adobe Media Encoder with the 480p android settings (vbr 2 pass). I tried cbr and that had exactly the same effect. This problem happens on both air 3.5 and air 3.4. I figure this has to be something caused by my own code because I don't see many discussions about this issue.
    package com.literacysoft
              import flash.display.Sprite;
              import flash.events.Event;
              import flash.events.NetStatusEvent;
              import flash.events.StageVideoAvailabilityEvent;
              import flash.events.StageVideoEvent;
              import flash.geom.Rectangle;
              import flash.media.StageVideo;
              import flash.media.StageVideoAvailability;
              import flash.media.Video;
              import flash.net.NetConnection;
              import flash.net.NetStream;
              public class SimpleStageVideo extends Sprite
                        private var stageVideoAvail:Boolean;
                        private var sv:StageVideo;
                        private var videoUrl;
                        private var vidWidth;
                        private var vidHeight;
                        public var theStage;
                        private var vid;
                        private var myX;
                        private var myY;
                        public var ns;
                        public function SimpleStageVideo(w, h, dastage, x, y)
                                  myX = x;
                                  myY = y;
                                  vidWidth = w;
                                  vidHeight = h;
                                  theStage = dastage;
                                  addEventListener(Event.ADDED_TO_STAGE, init);
                        private function init(e:Event):void{
                                  theStage.addEventListener(StageVideoAvailabilityEvent.STAGE_VIDEO_AVAILABI LITY, onAvail);
                        private function onAvail(e:StageVideoAvailabilityEvent):void
                                  stageVideoAvail = (e.availability == StageVideoAvailability.AVAILABLE);
                                  initVideo();
                        private function initVideo():void
                                  var nc:NetConnection = new NetConnection();
                                  nc.connect(null);
                                  ns = new NetStream(nc);
                                  ns.client = this;
                                  ns.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
                                  if(stageVideoAvail)
                                            sv = theStage.stageVideos[0];
                                            sv.addEventListener(StageVideoEvent.RENDER_STATE, onRender);
                                            sv.attachNetStream(ns);
                                            trace('available');
                                  else
                                            vid = new Video(vidWidth, vidHeight);
                                            theStage.addChild(vid);
                                            vid.attachNetStream(ns);
                                            vid.x = myX;
                                            vid.y = myY;
                                            vid.smoothing = true;
                                            theStage.setChildIndex(vid, 0);
                                            trace('not');
                        private function netStatusHandler(event:NetStatusEvent):void {
                                  trace("event.info.code "+event.info.code);
                                  switch (event.info.code) {
                                            case "NetConnection.Connect.Success":
                                                      trace("NetConnection.Connect.Success");
                                                      break;
                                            case "NetStream.Play.Stop":
                                                      if (!stageVideoAvail){
                                                                if (vid.parent != null){
                                                                          theStage.removeChild(vid);
                                                      } else{
                                                                ns.close();
                        public function playMyVideo(url):void{
                                  ns.play(url);
                                  if (!stageVideoAvail){
                                            theStage.addChild(vid);
                                            theStage.setChildIndex(vid, 0);
                        private function onRender(e:StageVideoEvent):void
                                  trace("rendering video",sv.viewPort);
                                  sv.viewPort = new Rectangle(myX, myY, vidWidth, vidHeight);
                        public function onMetaData(e:Object):void
                        public function onXMPData(e:Object):void
                        public function onPlayStatus(whatever):void{
                        public function dispose():void{
                                  ns.close();
                                  ns.dispose();
                                  if (!stageVideoAvail){
                                            if (vid.parent != null){
                                                      theStage.removeChild(vid);

    Using Air 3.6 on a Samsung tab 2 - Android 4.1.1
    Having similar issues.
    I'm trying to play a different video corrisponding with a button on the stage.
    When I click the button, the video turns black, then shows the last frame of the old video then the new video starts playing.
    A just want the old video to stop and have the new one play with no flashing in the middle.
    This happens with both stagevideo and the fallback video object
    Works fine in flash player 11 windows.
    I've noticed a lot of similar type problems and some seem to be getting fixed with new Air versions.
    Anyone else currently having similar issues?

  • Game created in Flash(SWF) how do you determine the end on one Captivate slide so you can proceed?

    I know this discussion title is long, but here's the background...
    We've created a game in Flash which created a SWF file and imported that SWF file into Captivate 5.5 as an animation.
    Because it's a game, it can take someone 1 minute or 10 minutes to complete it.
    I would like the slide to end when the individual playing the game ends (the SWF animation) and then move onto the next slide.
    I've tried several different settings but nothing works.
    Please advise.
    Thank you,
    Dave

    I am no expert, and there may be better soltuions but as I see it there are two options:
    1. Easy solution - Add a button in captivate to allow the user to manually navigate to the next slide (the button can be present the whole time allowing the user to nominate when they want to proceed)
    2. More difficult solution: Turn the flash file into a widget. At the end of the game get the widget to set the variable rdcmndResume to 1
    More information on creating widgets (and a framework for creating widgets more easily):  http://www.infosemantics.com.au/widgetking/blog-2/

  • SWF goes white at end despite stop command

    The title says it all really; I've got a simple FLA that just
    slides some content into place.
    It's got a stop frame at the start because it's actually a
    submovie of a parent movie (and the stop on the first frame
    accommodates the preloader in the parent) so when the SWF is viewed
    in isolation a quick tap of the Return key is needed to start it
    playing... entirely normal.
    BUT when it gets to the end the SWF it goes white, instead of
    displaying the content visible on the last frame (30). There's a
    stop command on the last frame. Why does it all go blank?
    I figure you'll need the FLA to help, so here it is:
    http://tinyurl.com/2wmc2z
    (2.5MB)
    I wondered if the AS inside the slideshow_mc was causing it,
    but swapping slideshow_mc for a regular static image with no
    internal AS made no difference. None of the other symbols have any
    internal scripting.
    This is baffling me, mainly because the FLA is so bare-bones
    that I can't see where the problem can possibly be hiding. No doubt
    I'm missing the wood for the trees, so can someone end my pain
    here?
    Cheers.

    Ugh. There's nothing quite like posting your problem in a
    public forum to make you spot the solution 10 minutes later.
    The issue was a badly typed stop command.
    Wood for the trees, like I figured.
    All is fixed, no need to respond, sorry to trouble the group.
    Rick

Maybe you are looking for

  • After updating Time Capsule to 7.7.2, Airport Expresses can no longer connect

    After I update the Time Capsule firmware to 7.7.2, my three Airport Expresses can no longer connect to the Time Capsule (their orange lights blink and they appear inaccessible in the Airport Utility). When I downgrade, they are able to connect fine.

  • Problem while MIGO

    Hi all, I am trying to receive a purchase order but it says "No goods receipt possible for this PO". The only thing was not normal, while putting the confirmation it said header data is not complete but i saved it anyways. Please let me know what sho

  • Mac Os 10.6.8 Crash and video freeze, Mac Pro

    Hi, I just installed Mac OS 10.6 on my old Mac Pro, early 2009 (8 gib of Ram installed). I still have my old Mac OS10.5.8 on another internal boothable disk. It went well the first day or so but now I'm experiencing some major video problems: picture

  • Upgrade to SolMan 7.1 - LMSERVICE02* and "export regulation"

    During the generation of a queue for the upgrade to 7.1 I get the following error message in MOPZ: File download is subject to national export regulations File LMSERVICE02_0-20006622.SCA is subject to national export regulations LMSERVICE02_0-2000662

  • About PCR with using IMPRT and IMPRE

    Hi all ! I am writing a PCR to calculate bonus for 13th salary and this bonus is paid at 30th Dec per year. If startdate of EE is 01st Jan and probation in 2 months , Bonus = Salary on actual working days of from March to Dec/(12-months of probation)