www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Client-Side Development > Multimedia

    Multimedia For discussion of all manner of media (audio, video, flash) techniques, as they relate to the web.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 07-05-2007, 05:11 PM
    hekgefvert hekgefvert is offline
    Magictouch
     
    Join Date: Jun 2007
    Location: Northern Illinois
    Posts: 4
    Flash flv player AS 2.0: how do I close the player automatically at end of video?

    I know that ActionScript 3.0 has fixed this problem, but I'm trying desperately to get the AS 2.0 to do following:

    1. Close the .flv file; and
    2. Close the video player and return to the root level timeline.

    I can work my way through adding a listener, but having trouble finding which is the right method if one exists in the either FlVPlayback class or some other one.

    Can anyone help me?
    Reply With Quote
      #2  
    Old 07-06-2007, 09:52 AM
    hekgefvert hekgefvert is offline
    Magictouch
     
    Join Date: Jun 2007
    Location: Northern Illinois
    Posts: 4
    resolved Problem solved in listener function

    I hope this helps someone else. It isn't so much as a close player, but a redirect to another part of the active, or parent, timeline. Hope this helps someone. -- Holly

    //Usage 1:: listener object
    /**
    Requires:
    - FLVPlayback component on the Stage with an instance name of my_FLVPlybk
    - TextArea component on the Stage with an instance name of my_ta
    */
    stop();
    import mx.video.*;
    my_ta.visible = false;
    my_FLVPlybk.contentPath = "LIFE 01CD_Fortune_100_001.flv";
    var listenerObject:Object = new Object(); // create listener object
    listenerObject.complete = function(eventObject:Object):Void {
    my_ta.text = "Video completed";
    my_ta.visible = true;
    };
    my_FLVPlybk.addEventListener("complete", listenerObject);
    //Usage 2: listener function
    /**
    Requires:
    - FLVPlayback component on the Stage with an instance name of my_FLVPlybk
    - TextArea component on the Stage with an instance name of my_ta
    */
    import mx.video.*;
    my_ta.visible = false;
    my_FLVPlybk.contentPath = "LIFE 01CD_Fortune_100_001.flv";
    function the_end(eventObject:Object):Void {
    my_ta.text = "Video completed";
    my_ta.visible = true;
    gotoAndStop(2);
    };
    my_FLVPlybk.addEventListener("complete", the_end);
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 02:00 PM.



    Acceptable Use Policy


    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.