A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: FLV Cue Points - gotoAndPlay

  1. #1
    Junior Member
    Join Date
    Nov 2006
    Posts
    15

    FLV Cue Points - gotoAndPlay

    I currently have a FLV playback component on the stage along with a movie clip "image_mc".

    The FLV has navigation cuePoints embeded in the video ("Slide1", "Slide2", etc.)

    The trace command is reading the cuePoints in the output panel.

    How to I make it go inside "image_mc" and gotoAndStop frame 2, 3, 4, etc.




    This is my AS code...

    var listenerObject:Object = new Object();
    listenerObject.cuePoint = function(eventObject:Object):Void {
    trace("Cue point name: " + eventObject.info.name);
    trace("Cue point type: " + eventObject.info.type);
    }
    my_FLVPlybk.addEventListener("cuePoint", listenerObject);


    Thanks

  2. #2
    Dignitary rynoe's Avatar
    Join Date
    Jan 2003
    Location
    Earth
    Posts
    760
    Code:
    var listenerObject:Object = new Object();
    listenerObject.cuePoint = function(eventObject:Object):Void {
        if(eventObject.info.name == "whatever"){
            image_mc.gotoAndStop(2);
        }
        else if(eventObject.info.name == "whatever"){
            image_mc.gotoAndStop(3);
        }
    }
    my_FLVPlybk.addEventListener("cuePoint", listenerObject);

    edit: switching both "whatever's" whith the actual name of the cuepoint
    Last edited by rynoe; 03-13-2008 at 03:51 PM.
    [SIGPIC][/SIGPIC]

  3. #3
    Junior Member
    Join Date
    Apr 2003
    Posts
    27
    And how would you do to have the same plus the navigation ability? The FLV has navigation's cuepoints but i need buttons to send the video + the slides to the right time.

    Thank you in advance

  4. #4
    Senior Member
    Join Date
    Apr 2008
    Location
    Nottingham, UK
    Posts
    348
    I would check the documentation for the FLVplayback component in the AS2 livedocs. This will give you a better worded explanation than I ever could!

    http://livedocs.adobe.com/flash/9.0/..._reference.pdf

    Dan

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