How to trigger an action after a FLV has finished playing

I have a FLV file that I am pulling into my SWF and I want to
go to the next scene in the SWF once the video clip is finished
playing... Because it's externally loaded I haven't been able to
figure out how to do this. I tried just importing the FLV to the
stage and putting it in the timeline, but that makes the SWF huge
and the video playback is much slower for some reason.
Does anyone know how to do this?

Read in the duration metadata from the FLV so you know how
long the video clip is, then just check to see if the movie's
current time is >= to the total time. Don't use the prebult
media player components, write your own player. Check out
www.gotoandlearn.com for some great easy tutorials on this.

Similar Messages

  • How do i find out if a media has finished playing?

    i'm currently trying to build a small video and audio player extending the MediaPlayer class. unfortunately there seems no event thrown when the media reaches his end and stops playing. normally NetStream throws an event "NetStream.Play.Stop" but this event doesn't seem to be handled by the MediaPlayer class. did i oversee anything or is this event not yet implemented?

    try NetStream.Buffer.Empty
    http://livedocs.adobe.com/fms/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDoc s_Parts&file=00000628.html
    regards
    Leonardo França
    Adobe Certified Expert Flex 3 with AIR
    Adobe Certified Expert Rich Internet Application Specialist v1.0
    Adobe Certified Expert Flash CS3 Professional
    Certified Professional Adobe Flex 2 Developer
    Adobe Certified Professional Flash MX 2004 Developer
    http://www.leonardofranca.com
    http://twitter/leofederal
    Manager AUGDF - Adobe User Group do Distrito Federal
    http://www.augdf.com.br
    http://twitter/augdf
    niduma escreveu:
    i'm currently trying to build a small video and audio player extending the MediaPlayer class. unfortunately there seems no event thrown when the media reache his end and stops playing. normally netstream throws an event "NetStream.Play.Stop" but this event doesn't seem treated by media player. did i oversee anything or is this event not yet implemented?
    >

  • How to trigger an Action

    Hello,
    I need help to find out how to trigger an Action (Action Definition) from an ABAP program. The program should trigger the Action used to create a follow-up transaction from an existing Contract.
    Thanks in advance,
    Jonas

    Hi! Every one
    I am using codes mentioned in this tread but getting one exception at the time when SAP is trying to save the changes for the change process action data. I am able to run the change process action programmatically ( successfully ) and when i enter some data for the change process action and press the execute button, I am getting one exception. I have attached the exception in this text. Can any one please give any clue why this exception is coming and what else I need to do?
    Thanks
    Yogesh
    Runtime Errors         UNCAUGHT_EXCEPTION
    Except.                CX_OS_OBJECT_NOT_FOUND
    Date and Time          13.03.2007 16:14:30
    Short dump has not been completely stored (too big)
         Short text
              An exception occurred that was not caught.
         What happened?
              The exception 'CX_OS_OBJECT_NOT_FOUND' was raised, but it was not caught
               anywhere along
              the call hierarchy.
              Since exceptions represent error situations and this error was not
              adequately responded to, the running ABAP program
               'CL_METHODCALL_PPF=============CP' has to be
              terminated.
         Error analysis
              An exception occurred that is explained in detail below.
              The exception, which is assigned to class 'CX_OS_OBJECT_NOT_FOUND', was not
               caught in
              procedure "IF_MEDIUM_PPF~EXECUTE" "(METHOD)", nor was it propagated by a
               RAISING clause.
              Since the caller of the procedure could not have anticipated that the
              exception would occur, the current program is terminated.
              The reason for the exception is:
              Could not find the referenced object with the OID
              "00000000000000000000000000000000" (instance GUID) and
              "BECA3BF12720D411AB61009027C3C00A" (class GUID)
         Missing RAISING Clause in Interface
             Program     CL_METHODCALL_PPF=============CP
             Include     CL_METHODCALL_PPF=============CM009
             Row     1
             Module type     (METHOD)
             Module Name     IF_MEDIUM_PPF~EXECUTE
         Trigger Location of Exception
             Program     CL_METHODCALL_PPF=============CP
             Include     CL_METHODCALL_PPF=============CM001
             Row     32
             Module type     (METHOD)
             Module Name     IF_OS_STATE~HANDLE_EXCEPTION
         Source Code Extract
         Line     SourceCde
             2     ***BUILD 020501
             3          " importing I_EXCEPTION type ref to IF_OS_EXCEPTION_INFO optional
             4          " importing I_EX_OS type ref to CX_OS_OBJECT_NOT_FOUND optional
             5     ************************************************************************
             6     * Purpose        : Handles exceptions during attribute access.
             7     *
             8     * Version        : 2.0
             9     *
            10     * Precondition   : -
            11     *
            12     * Postcondition  : -
            13     *
            14     * OO Exceptions  : CX_OS_OBJECT_NOT_FOUND
            15     *
            16     * Implementation : If an exception is raised during attribut access,
            17     *                  this method is called and the exception is passed
            18     *                  as a paramater. The default is to raise the exception
            19     *                  again, so that the caller can handle the exception.
            20     *                  But it is also possible to handle the exception
            21     *                  here in the callee.
            22     *
            23     ************************************************************************
            24     * Changelog:
            25     * - 2000-03-07   : (BGR) Initial Version 2.0
            26     * - 2000-08-02   : (SB)  OO Exceptions
            27     ************************************************************************
            28     * Modify if you like
            29     ************************************************************************
            30     
            31       if i_ex_os is not initial.
         >>>>>         raise exception i_ex_os.
            33       endif.
            34     
            35     endmethod.

  • TS4009 how do you retrieve information after the system has been reset to default

    how do you retrieve information after the system has been reset to default?

    From a backup on itunes or icloud, assuming you have made backups.  Connect to itunes and in the first tab for your device, choose to perform a restore.

  • Executing code after a transition has finished

    Hi,
    Is there any kind of language construct in JavaFX to allow a certain block of code to be executed after a transition has finished? Or do I have to pause the current thread with sleep() or similar?
    The ideal would be something like this, but of course such a thing like onComplete does not exist AFAIK:
    FadeTransition {node: selectedNode duration: 1s fromValue: 1 toValue: 0 onComplete: executeThis()}.play();

    Hello,
    By "delete node" you mean delete it from scene? This example works for me:
    var stage: Stage = Stage {
        width: 250
        height: 250
        scene: Scene {
            content: [
                text = Text {
                    layoutY: 30
                    opacity: 0.0
                    content: "Example transition"
                Button {
                    layoutY: 70
                    text: "Click me"
                    action: function() {
                       FadeTransition {
                            node: text
                            fromValue: 0.0
                            toValue: 1.0
                            duration: 200ms
                            action: function() {
                                delete text from stage.scene.content;
                        }.play();
    }Saša

  • Stopping after each song has finished

    Is it possible to set up the iPod shuffle so that when a song has finished playing it stops/pauses. Instead of continuing to the next song?

    Haven't tried it on a shuffle, but here is an idea.
    In iTunes, set up a playlist of the stuff you want on the shuffle. Now UNCHECK all the boxes in front of those songs. Also select all then do a get info and check the box to "skip when shuffling". I am not sure if that setting will effect how the songs play on the shuffle or not, but worth a try. If the shuffle does use that setting, then when you play a track, it should stop after that track since all the songs on the shuffle are unchecked and will be skipped.
    Patrick

  • Trigger an action after Material Save

    Hello ,
    I have a requirement where I need to trigger an action ( A custom method)after saving a material thru MM01/MM02.
    I looked for User exits and BADIs in these transaction but none of them seem to be helpful.
    Can anyone suggest me an user exit/BADI or possible another way of  doing it.
    Thanks
    Pravin

    Hi Pravin,
    You can find the BAdI by your own for any transaction. Just follow the steps mentioned below and you will get the list of BAdI.
    Method 1:
    Go to Tranaction: SE24.
    open class CL_EXITHANDLER
    Open the method " GetInstance"
    Put Break point in the statement
    call method cl_exithandler=>get_class_name_by_interface
    Now execute the Transaction which you need teh BDC it will automatically stops at the the method. In debugging mode double click on the variable: " exit_name" It will return the BADI Name.
    Method 2:
    find the Package name and go to the tranaction SE84.
    Enter the package name
    inside the left navaigaiton panel there is one option " Enhancements" click on this enhancement and then enter the package name and execute it. you will get hte number of enhancement.
    Thanks,
    Chidanand

  • Dictionary Search Help - how to trigger an event after F4 help

    Hi,
    I been searching the web lately to find a way to trigger an event after using the F4 input help.
    Here is an example of what I would like to do:
    - I have a WD form with a inputfield in it.
    - The input field is bound to datalement "LIFNR".
    - In my context I have specified the Input Help Mode to "Dictionary Search Help"
    - And the Dictionay Search Help is set to "KRED"
    A user will the click on F4 to start the Search help, then pick a LIFNR and the WD inputfield wil be filled.
    What I want is to trigger an event when this is happening.
    Does anyone have som tips or guides for me regarding this problem?
    Thanks in advance! =)

    Hi Mathias Hagen
    Actually there is no straight way of doing this , but still you can trigger a event in F4 search help ...  below is very informative blog to trigger the F4 search help by chris
    Firing a WDA event on using a Search Help - how to do it, without an NDA
    regards
    Chinnaiya P

  • How to trigger so action when ServerletOuput stream writes all data as byte

    Hi ,
    I have a servlet which accepts the index , size of a .3gp file in bytes as input parameters.
    If index=0 ...i am reading whole file into buffered input streame and writing to client as Servlet output steam as bytes.
    If index !=0 , or index=100 ...say suppose
    im ommiting first 100 bytes and rading101 byte to till the end of file in to buffered input streame and writing to client as Servlet output steam as bytes.
    Here i would like to trigger some action when the servlet writes entire bytes to the client .
    But im not able to notify exactly when the connection can close between client and server.
    Can any one help me to overcome this.
    Thanks in advance.

    Hi ,
    Thanks for reply..
    But reallu i couldnt get you.
    please go though the code snippet i have...and suggest me.
    try{
    File fFile = new File (fileName);
    BufferedInputStream bif = new BufferedInputStream(new FileInputStream(fFile));
         bif.skip(Integer.parseInt(((DownloadFileForm)o).getIndex()));
    int byteSize = (bif.available() < Integer.parseInt(((DownloadFileForm)o).getSize())) ? bif.available() : Integer.parseInt(((DownloadFileForm)o).getSize());
    byte[] b = new byte[byteSize];
    bif.read(b, 0, byteSize);
    sosStream = response.getOutputStream();
    sosStream.write(b);
    // here i have to do something
    sosStream.close();
    logger.info("file has been downloaded from Server is sending out to client");
    }catch(Exception e)
    // e.printStackTrace();
    logger.info("Exception :"+e.toString());
    regards,

  • Credit Risk Analyzer - How limits can be reset after the term has ended

    Hi Experts,
    I would like to know how limits can be reset after the transaction term has ended.
    Currently, my utilization reports still show past transactions and this transactions are still affecting my limit calculation report.
    Am I missing a process or a configuration?
    Also, would anyone know where the SAP limit utilization report is pulling out the transactions so when I run the limit utilization report, I can still view historical data?
    Thanks in advance.

    Hi Jerry,
      I do not think this customization helps. It only has two options to set start date as start of term or as date of commitment. But what if i want to set in future like your problem. Do we make it date of commitment for all the money market instruments?
    Best regards!
    Sandip

  • How can I wait until a Swing.Timer has finished?

    I have a Swing.Timer runing which displays some animated text (more precisely it fades out a text with a delay of 50 until all characters are erased.
    Afterwards a time consuming operation shall begin. How can I achieve that this operation waits to start until the text has been faded out? The time to fade out the text depends on the length of the text, of course.
    So, how can I make the operation waiting until the Timer has finished its work?
    Thanks,
    Dirk

    dirku wrote:
    I have a Swing.Timer runing which displays some animated text (more precisely it fades out a text with a delay of 50 until all characters are erased.
    Afterwards a time consuming operation shall begin. How can I achieve that this operation waits to start until the text has been faded out? The time to fade out the text depends on the length of the text, of course.
    So, how can I make the operation waiting until the Timer has finished its work?I gave you an answer to this with sample code yesterday:
    [http://forum.java.sun.com/thread.jspa?threadID=5294087&messageID=10244564#10244564|http://forum.java.sun.com/thread.jspa?threadID=5294087&messageID=10244564#10244564]
            public void actionPerformed(ActionEvent e)
                if (sb.length() > 0)
                    sb.deleteCharAt(0);
                    label.setText(sb.toString());
                else
                    label.setForeground(color);
                    label.setText(text);
                    Timer timer = (Timer)e.getSource();
                    timer.stop();
                    // ***** start process here ***
            }The timer here continues until a condition is satisfied (here it's where the Stringbuffer that holds the text that is sent to the JLabel is empty). So all you have to do is place any code that needs to happen when the Timer ends in the else block. It's so simple as to be trivial.

  • How to check whether music has finished playing and go to another frame

    I have a bunch of music samples which are set up to play on
    the click of a button, and at the same time go to another frame in
    the movie clip so it says 'playing', with a stop button that takes
    you back to frame 1. If you don't click stop, though, when the song
    ends, it stays on this second frame, even though there is nothing
    playing anymore, which is a bit confusing for the viewer.
    So I need to tell flash to check whether the song is finished
    playing, and then if it is, go back to frame 1. I have no idea how
    to do this; have basically done it all using tutorial and samples
    and my limited actionscript knowledge, but I can't find this
    particular code, and don't really have any idea how to write it
    from scratch.
    Many thanks!
    Here's my first frame actionscript:
    stop();
    this.createEmptyMovieClip ("mcSoundHolder",
    this.getNextHighestDepth());
    var mySound:Sound = new Sound (mcSoundHolder);
    btn_Song1.onRelease = function():Void {
    stopAllSounds();
    mySound.loadSound("Soaring1-Burlesque.mp3", true);
    gotoAndPlay("Song1");
    btn_Song2.onRelease = function():Void {
    stopAllSounds();
    mySound.loadSound("Soaring2-PopCyclePotpourri.mp3", true);
    gotoAndPlay("Song2");
    btn_Song3.onRelease = function():Void {
    stopAllSounds();
    mySound.loadSound("Soaring3-PopCycle-SongofLight.mp3",
    true);
    gotoAndPlay("Song3");
    and so on...

    I am not sure how Tomcat handles this, but you need to use two-way (mutual authentication) request but not enforce SSL between Tomcat and the client browser. This will make the browser prompt the user for the cert they want to send. Then you'll need to tackle the other part of your problem, getting the correct content displayed depending on whether the user sent a cert or not. I'm even less help there than I was on the first part of your question.
    So, yeah - good luck with that
    Lee

  • How to trigger an SMS after creation of Activity / Interaction Record

    Dear Experts,
    Our Client requirement is to trigger an SMS immediately after creation of an Interaction Record. I want to define an Action for this.
    But what processing type should I use for SMS, (like Method Call, Smart Forms Mail / Fax / Print and Workflow). We are using an external service provider domain to send SMS to our customers. It has been configured in SCOT.
    But from CRM configuration front there is no specific processing type for SMS. then how system reads telephone number from the BP master.
    Kindly help me to resolve the issue, your suggestions will be highly appreciated.
    Best regards
    Raghu ram

    Raghu,
    In your case you could copy a "print" action method class and create a z-version.  Then modify the print action method so that the smartform output triggers a call to your output type.
    Or you could just code a new method that creates a new BCS send request using the CL_BCS document and your output type.
    It just depends on how whether you want to use smartforms to build the message or build it in some other method.
    Take care,
    Stephen

  • How to match an action after double click

    Hi, assume we do submit() within a js double-click listener. How do we associate a bean event/action to this operation ?
    I noticed that submit succeeds and page is refreshed, but I can't see any way to intercept this event as it would come from a real button (with associated action).
    Any suggestion ?

    Nice trick, thanks. I missed the click() delegation to another button.
    I just have an objection: assuming to use a h:commandButton, there is no "visible" attribute to set from page source. So I guess I have to hide it by some js initialization code, right ? Or is there anything else ?

  • How to trigger dynamic action

    hi all,
    i am using HR_INFOTYPE_OPERATION to update or insert data in infotype 0000. it has been updated but i am also want to insert data in P0001 for same employee number(pernr) and same data. i want to do this with dynamic action. is it possible?????
    thanks
    Sachin

    Hi Ajay,
    When you use BDC or FM to update infotype, you can not call dynamic action as it wont be supported by SAP.
    So if you wnat to meet your requirement you have to create one RFC FM inside which you can call from the user exit or after your code had executed the FM operation and got the success message you can call the same FM for updating other infotypes.
    The best approach can be to create BDC sessions for updating each infotype after you have done with update of IT0000.
    Hope this will help you in resolving your queries.
    Regards,
    guds

Maybe you are looking for

  • Texas Instruments DLP mini projector stopped working!

    Has anybody found a way to correct the mini projector not working with the newer IOS systems? It's pretty amazing that Apple would know they've done this and not corrected. In the mean time... has anyone found a workaround?

  • What is "Disc Number" and is it useful?

    Hello All! I am trying to make a Rush chronological ALBUM compilation playlist, to burn a CD in MP3 format. I want "Rush" to appear as folder 1, "Fly By Night" to appear as folder 2, and so forth on the final CD (so the folder numbers correspond with

  • Help with error codes!!!! Please!!!

    import java.util.Scanner; //program uses Scanner public class Payroll3      private String name;      private double rate;      private double hours;      //Constructor to store employee information      public Payroll3(String employeeName, double ho

  • Shared storage client timed out error

    Hello everybody, please help I have been at this now for about 2 days and still can't find out the source of my issue using FCP to render a project through compressor to multiple macs using Qmaster. What is happening is that I start the render and it

  • Can anyone assist me?  I have backed up my Iphone 4 however now cannot restore as not enough space?  I need to get this sorted by tonight?

    I have recently backed up my Iphone 4.  However now it will not restore as it claims I have not enough space on the iphone.  I am in a major hurry to get this up and running by tonight as need it for work ?