A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: hopefully easy

  1. #1

    hopefully easy

    been looking thru all these video help sites and find all this complicated controls. all im trying to do is make my video stop at the end and stay on that picture. no buttons.. just a stop action code at the end of my movie.. or maybe pause it on the last frame of the movie.. no buttons though. just want it to play and when it gets to the end it pauses on the last frame of the movie..
    Be good be good at it!

  2. #2
    Senior Member
    Join Date
    Jan 2001
    Location
    London
    Posts
    361
    Hi there.
    Have you already got your video set up and playing? If so what method are you using? If you're using a component you will be needing to create a simple listener object. See 'Handling Component Events' in Flash help, under 'Using Components'. Also 'Media Components' under the Components Dictionary:

    Code:
    var myListener = new Object();
    myListener.complete = function(eventObject) {
        trace("media is Finished");
    eventObject.target.pause();
    };
    myMedia.addEventListener("complete", myListener);
    Actually the pause action shouldn't be needed because by default a video will pause at the end. But it depends on what method you are using. The Macromedia Media component may reset to the start when the video ends.

    Dene

  3. #3
    Flash Video Moderator Wheels's Avatar
    Join Date
    Dec 2000
    Location
    Minneapolis
    Posts
    1,590
    Import your .flv or .mov to a new Flash movie, place it on the main timeline, create a new layer for your actions - and on the last frame place the code stop(); - then export as .swf.

  4. #4

    ha

    I knew that there was a simple answer thanks dude.. peace out.
    Be good be good at it!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center