A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: FLV/Media Playback Question!

  1. #1
    Member
    Join Date
    Apr 2001
    Posts
    63

    FLV/Media Playback Question!

    Tried this post in Actionscripting area with no luck, BUT hopefully someone in here can help!

    This question may have been touched on before, but does anyone have the Actionscript code that I would need to jump to another part of a flash movie (timeline - doesn't matter where) once an FLV completes in the media display?

    Haven't messed too much with the behaviors for FLV's - just associating a media display wth a controller.

    Hoping someone can shed a little light - thanks!

    Rick

  2. #2
    hmm Pugger's Avatar
    Join Date
    Sep 2003
    Location
    Perth, Australia
    Posts
    616
    Try this:

    Code:
    var mediaListener = new Object();
    mediaListener.timeline = _root;
    mediaListener.complete = function(eventObject) {
         timeline.gotoAndStop(10);
    }
    myMedia.addEventListener("complete", mediaListener);
    Will goto frame 10 on the timeline (in the example, the _root timeline) you specify when the flv is complete. Haven't tested it, but as long as you change myMedia to the name of your display it should work.

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