Listener for when a video reaches its end?

Almer Blank put this tutorial out awhile ago: http://www.adobe.com/devnet/flash/articles/video_osmf/popup08.html
It depicts how to determine if a video has reached the end. It looks like the TraitEvent doesn't exist anymore. Is there a listener to can attach to the MediaPlayer to determine when the video has played out its entire duration?

Duh! Problem Resolved.
mediaPlayer.addEventListener(TimeEvent.COMPLETE, onComplete);
I overlooked this previously cuz I thought it said TimerEvent...

Similar Messages

  • Can't tell when i have reached the end of the file

    Hi i'm trying to read a character at a time from a file but i can't tell the program when to stop when it has reached the end of the file
    THis is the code
    BufferedReader br = new BufferedReader(new FileReader("input_dat.txt"));
    while ((c =(char) br.read()) != .....what should go here...)
         System.out.print((char)c);

    i got it to work
    hear is the code if anyone is interested .
    int i= 0;
    char c;
    BufferedReader br = new BufferedReader(new FileReader("input_dat.txt"));
         while((i=br.read()) !=-1)
         c =(char) i;
         System.out.print((char)c);

  • How to enable a reminder for when a shared review has reached its end date?

    I thought Acrobat will send the initiator of a shared review a reminder before the "end review" date is reached. This will allow him/her to check with the reviewers how they are going.
    It seems we aren't receiving that reminder anymore.
    When I setup the shared review process initially I thought I saw a reminder that the review is ending in a day or so.
    Lately it looks like that has stopped...
    We use Acrobat X Pro & Std, SharePoint and Outlook 2010
    Appreciate your help

    Acrobat doesn't send scheduled emails and never has done. You have the option to manually 'email all reviewers' via the Tracker dialog, and of course when someone opens the PDF they'll be told the deadline.

  • How to use new sequence when one is reached its maxvalue in PL SQL code

    Hi,
    Currently, I am populating a unique product serial number in a table column using a sequence call to generate new number. For different products, I have different sequences and in my PL SQL code usiing IF..Else block I populate serial number for different products. For one most selling product sequence, we are reaching a Max value in production in a month and to make sure that application will continue to work fine for various end users without getting any error on their screens, I want my code to switch to new sequence automatically. I just need to add another if condition but my problem is how to find accurately when max value is reached for old sequence.
    As call to old sequence can happen in different sessions there could be inconsistency and can end up at error. My new sequence value has to start with AV1000. Please suggest.
    My old sequence look like this :
    SEQUENCE Prd
    INCREMENT BY 1
    START WITH AS1000
    MAXVALUE AS9999
    MINVALUE AS1000
    CYCLE NOCYCLE
    CACHE 2
    Order Yes;
    Edited by: user11695088 on Jul 15, 2009 12:14 AM

    Catch the exception and use your new sequence. But somehow, I'm not liking your alternative approach.
    SQL> set line 300
    SQL> set pages 50000
    SQL> set serveroutput on
    SQL> create sequence testing_seq increment by 1 start with 1 maxvalue 3
      2  /
    Sequence created.
    SQL>
    SQL> create or replace procedure test_seq_proc(p_seq out number)
      2  is
      3  begin
      4     select testing_seq.nextval
      5     into p_seq
      6     from dual;
      7  --
      8     dbms_output.put_line(p_seq);
      9  --
    10  end;
    11  /
    Procedure created.
    SQL> declare v_out number;
      2  begin
      3     test_seq_proc(v_out);
      4  end;
      5  /
    1
    PL/SQL procedure successfully completed.
    SQL> /
    2
    PL/SQL procedure successfully completed.
    SQL> /
    3
    PL/SQL procedure successfully completed.
    SQL> /
    declare v_out number;
    ERROR at line 1:
    ORA-08004: sequence TESTING_SEQ.NEXTVAL exceeds MAXVALUE and cannot be instantiated
    ORA-06512: at "ETL_ADMIN.TEST_SEQ_PROC", line 4
    ORA-06512: at line 3
    SQL>Cheers
    Sarma.

  • Event to listen for when viewport scrollposition change.

    Hi
    When I scroll, I listen to the VALUE_COMMIT event on the verticalScrollbar, but when I then wan't to do some calculations depending on the new position (using localToGlobal), then properties that localToGlobal uses aren't updated properly, on what component should I listen to updateComplete? Because updateComplate doesn't get fired on the viewport. So what actually relayouts?
    Best Regards
    Martin

    Hi
    Thanks for the answer.
    When I scroll it works better than using the valueCommit event, but if I scroll fast enough the calculations still skew.
    So I've decided to use the enterFrame event instead, doing the calculations all the time instead of just doing it when necessary from the idea: If it works performance wise okay in games. I guess it can work here
    Thanks
    Best regards
    Martin

  • Does the OS X Mavericks reach its end of life?

    Should I update to Yosemite?
    "OS X 10.9.x and older remain vulnerable, since Apple decided not to patch these versions."
    https://truesecdev.wordpress.com/2015/04/09/hidden-backdoor-api-to-root-privileg es-in-apple-os-x/

    Since Apple decided to make Mavericks and Yosemite free upgrades, they also decided to make the upgrade permanent. You cannot downgrade to Mavericks because it is no longer available. This is exactly the same practice as how Apple handles iOS upgrades.
    However, Apple does not immediately abandon a just previous edition. Usually they continue support for up to seven years after which support is terminated. But with OS X the only updates that may appear in the future will be security updates. So, as of today 10.9.5 will only receive essential security updates. There won't be a 10.9.6.

  • I need full screen video to automagically reduce back to the page when the video is done.

    Possible?
    I want to use the "Full-screen only" option in the media widget, but when the video reaches the end it drops to a black frame and just sits there.  I need it to realize the video is over and shrink back down to the widget in the page.
    Similarly (and somewhat less importantly)... when a video is done, is there a way to get the widget to reset so it shows the original poster frame instead of the black frame?

    Create a New Profile as a test to check if your current profile is causing the problems.
    -> Basic Troubleshooting: Make a New Profile
    * https://support.mozilla.com/en-US/kb/Basic%20Troubleshooting#w_8-make-a-new-profile
    -> If that New Profile works then you can recover your Bookmarks and Passwords from the Old Profile.
    -> Recovering important data from an old profile
    * https://support.mozilla.com/en-US/kb/Recovering%20important%20data%20from%20an%20old%20profile
    Check and tell if its working.

  • Buttons inactive when the playbar reaches the project end

    Hi
    I am using Captivate 6.
    I am creating a standard UI template file. I have added a smartshape button that opens up a PDF file for download/ save. This button is visible and active throughout the Captivate project right from the first slide (timing set to Rest of the project).
    The problem is when the playbar reaches the end of the project, this button gets inactive.
    I checked in the forums and found a similar query in this post.
    http://forums.adobe.com/message/3735858#3735858
    Based on the info there, I checked the frames in the project (in Project Info) and the last frame where the playbar ends. I noticed that the last frame of the playbar is 2 frames more than the frames mentioned in Project Info.
    Again, taking a cue from Lilybiri's comments in that thread, I added one advanced action at the On Exit of the last slide:
    Expression: cpCmndGotoFrame = cpInfoCurrentFrame - 2. (to send last frame count back by 2 frames)
    Assign: cpCmndPause with 1 (to pause the last slide, so that the learners can do any other task on the last slide if they wish to)
    This solves the problem.
    However, is there a way to make this button remain active without using advanced actions? This template will be used by some newbies to Captivate. I feel they might think that assigning advanced actions is complicated task and hesitate to use this one.
    Sreekanth

    Thanks from me as well. I'm trying to make an interactive house simulation game (basic) and hit this issue where the timeline needs to skip to the next segment as several options are available per room (listed one after the other in the timeline). Flash isn't particularly easy to use when it comes to this kind of thing. Is Flash Catalyst CS5 more suited to this?

  • Can you tell when a loaded SWF has reached its final frame?

    I used loadMovie to load an external SWF into the bottom-half
    of a main "shell" swf. When that loaded SWF finishes playing (it's
    just an animation), I need to populate a text field with the word
    "DONE" . The text field resides on the _root, so I need some way to
    know when the loaded SWF has reached its last frame...
    This would obviously be easy if I had the .FLA of the loaded
    SWF because I could just write the actionscript on the last frame
    of that SWF to populate the _root textfield. Alas, I do not have
    the source FLA of that loaded SWF, so I need some way to have the
    main "shell" SWF/FLA know when that loaded SWF has reached its end.
    Is this possible???
    Thanks!!!

    DIY_Lobotomy,
    > The reality of my situation is that there's a "menu" of
    sorts that
    > gets loaded into "contentClip". This "menu" has a bunch
    of links.
    So far, so good.
    > When clicked, each link loads a DIFFERENT swf into
    "contentClip".
    > It is THOSE swfs that I need to note the end of.
    That's still okay.
    > So, there's actually more than one, and they're not
    exactly being
    > loaded directly from my main movie, since they're
    actually loaded
    > based on a link being clicked in the movie that is
    currently loaded
    > into "containerClip"
    The concept is still the same, no matter what. No matter how
    deep the
    one-clip-loads-another chain goes, you have to keep taps on
    each chain link.
    When the final link has loaded, you'll be able to make your
    object reference
    to that movie clip. That movie clip -- because it's an
    instance of the
    MovieClip class -- will have the _currentframe and
    _totalframes properties.
    You'll just be checking *that* cliip's properties instead of
    the one named
    contentClip in my own example.
    You can loop using onEnterFrame or, if you prefer, with
    setInterva().
    That doesn't much matter either, so long as you repeatedly
    poll the deepest
    clip to test its current frame against its last frame (this
    all assumes that
    the clip being tested is a linear animation whose end
    corresponds to its
    last frame; otherwise, you could check _currentframe against
    any arbitrary
    frame number).
    > I hope that wasn't too confusing! Do you still have a
    solution???
    Not too confusing to understand, but it might be confusing
    to route
    through in practice. Not confusing, actually, but meticulous
    ... you'll
    have to be careful with your pathing. Nested movie clips are
    very much like
    nested folders on your hard drive. Their instance names
    relate to the
    folder names.
    Now, if that menu doesn't have an instance name you provided
    -- or if
    any fork along the path has an instance name you can't
    control -- you can
    still reference the nested movie clips. If you test your file
    in the
    Debugger panel, you'll see all the instances laid out in
    hierarchical order.
    You'll see that automatic instance names are provided
    (something like
    "instance1", "instance2", etc.).
    David Stiller
    Contributor, How to Cheat in Flash CS3
    http://tinyurl.com/2cp6na
    "Luck is the residue of good design."

  • Automatic tab when reaching the end of a field with limited character number

    Hello!
    Is there a way of activating an automatic tab behaviour when the user reaches the end of a field with limited character number?
    I'd like the cursor to jump to the next field in tab order automatically.
    Possible?
    Thank you for any hints!
    Marcos

    Hi,
    What if you tried something like the following example? This works using formCalc on the change event for the field the user is currently typing into:
        var fullCount = 3
        var currentString = xfa.event.newText
        if(Len(currentString) >= fullCount)then
            xfa.host.setFocus("TextField2")
        endif
    Or, if you prefer javaScript:
        var fullCount = 3;
        var currentString = xfa.event.newText;
        if(currentString.length >= fullCount){
            xfa.host.setFocus("TextField2");
    These work very smoothly.
    Hope this helps!
    Stephen

  • How to listen for key press when air app does not have focus

    Hi,
    I am developing a application in air and part of the functionality I need is the ability for the app to listen for when a specific key is pressed, even when the air app does not have focus.
    Is there support for this for windows or mac? If not, how might this be accomplished? ANE?    

    Ok Mr. Smartass...Ok
    I'm building a browser that is always open, and when
    a user presses Ctrl+F1 (notice, just those two keys,
    I don't care what else they press...) the browser
    will open up. That way, you don't have to wait for it
    to load all the time.You have two ideas here. One is having a universal key map that always gets ctrl-f1 sent to your app. The other is a program that is constantly running so that you don't have to wait for it to open up. The former is not possible (and this is a good thing) As warneria and I have been saying, it is bad design for an app to try to force an OS to implement this kind of feature.
    If you're not going to help please don't post at all;
    it's a waste of time for both you, me, and anyone
    else who may need help on the same subject. Why wouldBelieve it or not, I am helping you.
    See
    http://www.google.com/search?hl=en&lr=&q=programming+code+side+effects
    and
    http://www.faqs.org/docs/artu/ch04s02.html
    "Doug McIlroy's advice to �Do one thing well� is usually interpreted as being about simplicity. But it's also, implicitly and at least as importantly, about orthogonality."
    anyone in their right mind who's trying to steal
    people's passwords come out and say, "I'm not trying
    to steal people's passwords!"wait, your question is why would someone trying to steal passwords say I'm not trying to steal passwords? I think duplicitous people in their right minds might try to trick you that way.
    Beyond that, even if you're not a malicious hacker - and I am sure you are not - if someone posts a solution to your problem, malicious coders then will have learned how to do it. If you think you're programming or using these forums in a bubble, you are not.

  • Need to listen for tab KeyEvents

    i have implemented a JTree, and added a key listener to it. i want to listen for when the user presses the tab key, but for some reason the tab key does not cause the keyPressed or keyReleased methods to be called (all other keys do). I guess it is something to do with the tree loosing focus (the tab key generally moves focus to the next component). does anyone know how to solve this problem?

    here is my code:
    // this is the class that contains the JTree
    public class XMLTreeViewer extends JPanel
         protected JTree tree;
         protected JScrollPane treeScrollPane;
         public XMLTreeViewer(String xmlFile)
              tree = new JTree(root);
              treeScrollPane = new JScrollPane(tree);
              setLayout(new BorderLayout());
              add(treeScrollPane, BorderLayout.CENTER);
         public JTree getTree()
              return tree;
    // this is the class that adds the keyListener to the JTree
    public class AnatomyLinkingTool extends JPanel
         protected XMLTreeViewer anatomyTree;
         public AnatomyLinkingTool()
              anatomyTree = new XMLTreeViewer("../XML/Anatomy2.xml");     
              anatomyTree.getTree().addKeyListener(new TabListener());
         // inner class
         protected class TabListener extends KeyAdapter
              public void keyPressed(KeyEvent e)
                   System.out.println("In keyPressed()");
                   if (keyCode == KeyEvent.VK_TAB)
                        System.out.println("tab pressed : ) ");
    }keyPressed( ) gets called when i press any key except the tab key! thanks in advance for any help you can offer.

  • What are the ports required for the Audio, Video and A/V conferencing when the following end points are enabled for QoS in Lync 2013 server?

    Hi All,
    What are the ports required for the Audio, Video and A/V conferencing when the following clients are enabled for QoS in Lync 2013 server?
    Client Type
    Port range  and Protocol required for Audio
    Port range and Protocol required for
    Video
    Port range and Protocol required for
    A/Vconferencing
    Windows Desktop   Client
    Windows mobile App
    Iphone
    Ipad
    Andriod phone
    Andriod Tablet
    MAC desktop client
    Please advise. Many Thanks.

    Out of the box, 1024-65535 for all of the client ports.  :) 
    https://technet.microsoft.com/en-us/library/gg398833.aspx
    You'll want to tune your client ports a bit
    https://technet.microsoft.com/en-us/library/jj204760.aspx as seen here, and then the client ports would use those ranges which is easier to set QoS markings.  I'm not sure the mobile clients respect that setting.
    Elan's got the best writeup for Windows clients here:
    http://www.shudnow.net/2013/02/16/enabling-qos-for-lync-server-2013-and-various-clients-part-1/
    However, the marking of the packets is the tricky part.  Windows can do it via Group Policy, but for the other clients you'll need to have the network specifically prioritize ports regardless of DSCP markings.  You have to do it based on ports
    as the traffic could be peer to peer.
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer".
    SWC Unified Communications
    This forum post is based upon my personal experience and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • When listening to music with my apple tv, I lose signal for a few seconds, then its okay and then I lose it again... any solutions ?

    when listening to music with my apple tv, I lose signal for a few seconds, then its okay and then I lose it again... any solutions ?

    Hi there Iphone4fn,
    I would recommend taking a look at the troubleshooting steps found in the article below.
    iOS: Unable to update or restore
    http://support.apple.com/kb/HT1808
    -Griff W.

  • I have an ipod touch 32gb. Model: MC008BT Version: 5.1.1. 3rd ed.   Recently when clicking play on any song the ipod will shuffle through as many songs as there are in the album or playlist until it reaches the end without playing any songs. It also does

    I have an ipod touch 32gb. Model: MC008BT Version: 5.1.1. 3rd ed.
    Recently when clicking play on any song the ipod will shuffle through as many songs as there are in the album or playlist until it reaches the end without playing any songs. It also does not go through each song. For example:
    a 62 song playlist. I start on song 16. Immediatly the song will shuffle: 16-26-54-62 and then back to the main screen. Also when the songs are shuffling the play button in the top right corner is on.
    Music will play if i start from track one with shuffle turned off and repeat turned on. But then i am limited each time to 1-5 songs.
    Ipod has been in excellent working order since this has happened.
    any suggestions on how to fix?

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Unsync all music and resync
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up                                                                
    - Restore to factory settings/new iOS device.             

Maybe you are looking for

  • Set credential using java embedding activity in SOA11g

    Hi, In SOA 10g in java embedding activity we used to set the creadentials like below *try {* getLocator().lookupProcess("bpelprocess_name").getDescriptor().getPartnerLinkBindings().getPartnerLinkBinding("partnerlink_name").setPropertyValue("basicHead

  • Hyperlinks show up with a box around them in Pages 2 PDF's.

    I am excited that web links now show up as hyperlinks. However, when I export a .pdf of the document, the hyperlinks end up with a box around them that makes them unreadable. Any idea how to get rid of the box. It doesn't show up in the original docu

  • Sound Blaster Audigy 2 Recording Prob

    I recently re-installed my audigy, and for some reason I cannot get any sound when I plug my guitar into the Line-In on the front. I check the recording/playback setting, and everything seems to be ok. I'm wondering if it might be a problem with the

  • Java wont run when opening applications

    I have had this Macbook pro for about two years now. I am running 10.7.5 and am using java Version 7 Update 10. However, whenever I try opening apps such as oovoo,  this pop up apears. I AM CONNECTED TO THE INTERNET BY THE WAY!!!!!!!! It is not a wif

  • SBH52 doesn't supporting Microphone of earphone

    I'm using SBH 52 and its not supporting microphone of earphone. It just support its own inbuild microphone. What the use of it, every time there is a call, I have to either take it out of pocket or attended the call on phone. That very sad and discom