Using event cue points to add buttons

How do I go about having buttons display in an external flv file?  I know I can establish event cue points with Adobe media encoder.  I want the the buttons and graphics to appear and stay on the screen, even though the external flv loops.  Its been a long day and I have exhausted all other options, otherwise I would not have asked on here.  Thanks in advance.  Oh btw using Flash cs 5.5 and as 3.  thanks

i just added x and y locations:
Movie01.addEventListener(MetadataEvent.CUE_POINT,cuepointF);
function cuepointF(e:MetadataEvent):void{
trace(e.info.name);  // this will display your cuepoints when their dispatched.  you'll use if-statements below this line to add your buttons.  eg,
if(e.info.name=="middle"){
addChild(button1);  // assuming button1 is already created.
button1.x=639;
button1.y=140.5;
it worked with no errors
thanks again! 

Similar Messages

  • FLV and Event Cue Points

    Hi,
    I am streaming and flv file with numerous event cue points.
    When each cue point is reached I attach different movie clips. The
    problem is I need to add custom fast forward and rewind buttons to
    the video. I tried using netStream.seek(netStream.time +5) which
    works, but it skips over the event cue points. So when you stop
    fast forwarding the wrong movie clip is attached.
    Is there another way to fast forward the video and still have
    the event cue points recognized?
    Thanks,
    Caroline

    if (index="introductionText")
    I think you need double =, like this:
    if (index=="introductionText")
    -rich

  • Actions  for  flv event cue point

    I have an flv playing back from component in a nested
    timeline (an actionscript 2 proj) and I want at the end of the
    video to gotoAndPlay the label"vidend" in the this timeline. I
    embedded the the event cue point called "end" on the last frame of
    video when I encoded it in my new CS3.I placed the following on the
    first frame of the nested timeline... The video plays fine but does
    not trigger the action. Any suggestions???...I 've found reams of
    info on navigation events but this is the result of everything I
    could find on the adobe site and I still not there.
    I'd really appreciate any direction anyone can give me.
    //leave this as is
    var listenerObject:Object = new Object();
    listenerObject.cuePoint = function(eventObject:Object):Void {
    //change this info..."end" is the name that you called your
    cuepoint when
    //you embedded it into the video
    if(eventObject.info.name == "end"){
    //tell your movie what you want it to do once your cuepoint
    has been hit
    this.gotoAndPlay("vidend");
    //_root.SessionPlay.mov_loadcard.gotoAndPlay("vidend");
    //my_FLVPB is the name of your video on the stage, the rest
    stays as is
    my_FLVPB.addEventListener("cuePoint", listenerObject);

    I have an flv playing back from component in a nested
    timeline (an actionscript 2 proj) and I want at the end of the
    video to gotoAndPlay the label"vidend" in the this timeline. I
    embedded the the event cue point called "end" on the last frame of
    video when I encoded it in my new CS3.I placed the following on the
    first frame of the nested timeline... The video plays fine but does
    not trigger the action. Any suggestions???...I 've found reams of
    info on navigation events but this is the result of everything I
    could find on the adobe site and I still not there.
    I'd really appreciate any direction anyone can give me.
    //leave this as is
    var listenerObject:Object = new Object();
    listenerObject.cuePoint = function(eventObject:Object):Void {
    //change this info..."end" is the name that you called your
    cuepoint when
    //you embedded it into the video
    if(eventObject.info.name == "end"){
    //tell your movie what you want it to do once your cuepoint
    has been hit
    this.gotoAndPlay("vidend");
    //_root.SessionPlay.mov_loadcard.gotoAndPlay("vidend");
    //my_FLVPB is the name of your video on the stage, the rest
    stays as is
    my_FLVPB.addEventListener("cuePoint", listenerObject);

  • Event Cue Points

    I am working with event cue points and I have it working with
    action script and embedded cue points. What I am trying to figure
    out is how to tie a specific events or movie clip with specific cue
    points. Right now all the movie clips play whenever I hit any cue
    point. I have not figured out how to tie specific cue points with
    specific events. Anyone have knowledge of this that can direct me
    properly. I would highly appreciate it. Thanks

    First of all thanks for the reply. I didn't explain myself
    well. I know about the stop frame on the first frame. My cue points
    are working. I want to be able to play different movies cued up at
    different times in the video. Right now all my movie clips play at
    all the cue points. I want a specific movie to play at a specific
    cue point then later in the video another different clip play at a
    difffent time element in the movie. Thanks. I really appreciate the
    help.

  • Using audio cue points in a flash movie

    Hello all,
    I am trying to put together some simple videos for my kids to
    play on their ipods to study on the way to school.
    I put together a real simple slide show, and prepared an
    audio track. I polished it up in soundbooth, and included some
    markers in the audio track. I was hoping to find a way to pause the
    slideshow, until the marker is reached in the audio track. I have
    done this before in director, but just cannot seem to figure it out
    in flash cs3. Any help you can give would be appreciated.
    Thanks, BobR

    Hi,
    The following AS2 code may help you
    stop();
    var listenerObject:Object = new Object();
    listenerObject.ready = function(eventObject:Object):Void {
    <your flv playback instance name>.addEventListener("ready", listenerObject);
    var listenerObject:Object = new Object();
    listenerObject.cuePoint = function(eventObject:Object):Void {
    <your button instance name>.onRelease = function () {
    playback.seekToNavCuePoint("<your cue point name>");
    <your flv playback instance name>.addEventListener("cuePoint", listenerObject);
    \\replace all the placeholder things including the < >
    Also just take a look at the description at http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Liv eDocs_Parts&file=00003003.html for more details
    Thanks!
    ps: pls mark this post as answered if this is of help to you

  • How to jump to a cue point when your buttons are on a different scene??

    hi guys!!!
    well, im new here and more or less new with action script,
    that´s why i want to ask you this:
    im making a flash movie which is going to have a video with
    cue points, what i wanted to do is to create a menu of buttons in
    one scene let´s say scene 1 and the video is in scene 2, what
    i want is that when you press one of the buttons who are in the
    menu of scene 1 it takes you to the cue point on the video which is
    on scene 2, think of it like one of those chapter selection menus
    that you see on dvds, now my problem is that i don´t know what
    i have to do in order to let the button know that i want it to jump
    to the cue point, i´ve been able to do this if the buttons are
    on the same scene where the video is, but when i try to make this
    with the buttons on a different scene i can´t jump to the cue
    point, so far i´ve only been able to make the button go to the
    video and play it but it doesn´t go to the cue point, this is
    driving me mad please can anybody here tell me how to do this??? i
    have found hundreds of ways to do it with the buttons on the same
    scene but none with the buttons on a different scene,
    thanks!!!!

    Hi Anthony,
    Thank you for your post.
    It would be better if you share any link or actual composition with us.
    Regards,
    Devendra

  • Bringing up a button and an image using video cue points

    Hi,
    I have a 4:40 long video and I'd like to show a button and a background image (or a movie clip) at 4:30 and I want them stay on the screen after the video is complete. If someone could give me a step by step instructions for this I'd really appreciate it. By the way I use Flash CS5.
    Have a great day!
    Veli

    Sorry if I confused you. Here's a little sample video I'd like to show you (only 10 seconds), so I can explain it more clearly. This is exactly the same thing except it is 10 seconds instead of 5 minutes.
    http://www.relationsmith.com/hhosp/slideshow/jan12/slideshow.html
    In this project I have 6 layers (from top to bottom); action, replay, button, bg, frame, video. The video plays and the button (btn1) comes up at 7, then the video ends and replay button comes up. So far so good.
    When I hit replay button to watch the video again, the video starts to play but this time the video is on the top of everything. I cant see the blue frame, at the 7th second the button activates but is hidden behind the video, and so is the replay button. I think the answer lies in this code:
    function replay(e:MouseEvent):void {
        addChild(flv_pb); 
        flv_pb.play();
    You said this code "addChild(flv_pb);" would put the video on the top of everything. So I was wondering if there is a way to play the video without having it at the top most depth. I'm pasting the entire code for your reference.
    Thanks!
    import fl.video.MetadataEvent;
    replay_btn.visible=false;
    btn1.visible=false;
    flv_pb.addASCuePoint(7,"show");
    flv_pb.addEventListener(MetadataEvent.CUE_POINT,cuepointF);
    flv_pb.addEventListener(Event.COMPLETE,completeF);
    btn1.addEventListener(MouseEvent.CLICK, clickButton);
    replay_btn.addEventListener(MouseEvent.CLICK, replay);
    function completeF(e:Event):void{
    replay_btn.visible=true;
    function replay(e:MouseEvent):void {
        addChild(flv_pb);  // moves flv_pb to the top most depth
        flv_pb.play();
    function cuepointF(e:MetadataEvent):void{
    if(e.info.name=="show"){
    bg.play()
    btn1.visible=true;
    var myURL:URLRequest=new URLRequest("http://www.ctwolfpackyouth.org/");
    function clickButton(myevent:MouseEvent):void {
              navigateToURL(myURL);

  • Using cue points in Flash CS5 to trigger actions

    Hi there,
    I'm looking to use a cue point in a video to trigger an action, in this case go to and play at a movie clip on the stage. Is this possible. My setup is as follows:
    I've a video on stage with the instance name 'vid', with a cue point 'lap1' (an actionscript cue point created directly in Flash using the properties panel). When the video reaches cue point 'lap1', I want it to go to and play frame 2 of a movie clip I've got on stage with the instance name 'cueMovie'.
    Any help would be great; I've looked online for tutorials but no joy.
    Cheers,
    Conor

    1  stop();
    2  varListenerObject:Object = new Object();
    3  listenerObject.cuePoint = function(eventObject:Object):Void{
    4  trace(Cue Point:"+ eventObject.info.name);
    5  trace("event:"+eventObject.info.type);
    6  if(eventObject.info.name=="cue Point 1"){
    7  gotoAndStop(2);
    8  }
    9
    10 }
    if your cue point is named cue point 1 then you can leave script as it is if not you have to insert your cue point name> Also it has to be an event type of cue point to work.

  • Controlling external information using cue points

    Hello,
    I am trying to change information on my site using cue points in my video.  My video is in a flash quiz and I am trying to change my objects such as an ad or photo with these cue points.  In otherwords, when a video begins, or when a cue point is reached the photo outside the video would change.  I am currently using cue points to go to the next frame after the video completes, but I don't know how to make it change things outside the video.  Thank you for your help.

    I'm sure there is more than one way to skin this cat, but here is what I use with NetStream video to load other .swfs (could be photos or other videos) at certain points in the main video:
    ns.onCuePoint = function(evt:Object){
        trace(evt.name);
        trace(evt.time);
        if(evt.name == "play_vid1") {
            trace("YO!Loading wide_holder!");
            wide_holder.loadMovie("rm/images/black_bear.swf");
        if(evt.name == "play_vid2") {
      trace("YO!Loading standard_holder!");
            standard_holder.loadMovie("rm/images/sqis.swf");
    in this case using an "event" cue point object embedding at certain times in the video.
    Lots of info on the Web, here is just one:
    http://www.communitymx.com/content/article.cfm?cid=124DB
    Best wishes,
    Adninjastrator

  • Using Cue Points to advance to next scene

    I'm pretty new to AS3. I'm a designer trying to do it myself.
    What I'm trying to do is use a cue point at the end of my FLV (which is loaded using ui loader in my flvSWF) to go to the next scene in my mainSWF file.
    here's the code I'm using in my flvSWF:
    import fl.video.VideoEvent;
    import fl.video.MetadataEvent;
    IntroMovie.addEventListener(MetadataEvent.CUE_POINT, cp_listener); 
    function cp_listener(eventObject:MetadataEvent):void { 
    trace("Elapsed time in seconds: " + IntroMovie.playheadTime); 
    trace("Cue point name is: " + eventObject.info.name); 
    trace("Cue point type is: " + eventObject.info.type); 
    if (eventObject.info.name == "CueNextScene") {
    this.gotoAndPlay("desk");
    But of course it does not work. 
    A.  my traces don't show up. 
    B. Am I suppose to use this code in my mainSWF instead of the flvSWF
    C. An FYI  the IntroMovie is one of 4 random movies that gets played for the intro in mainSWF. The random script works fine.

    You can build out a menu by reading the cuePoints array in
    the NetStream.onMetadata handler, or by using the MetadataEvent
    with the FLVPlayback component (AS3). The simple thing for me to
    say is to refer to Chapter 9 of my new Flash Video book. :) (see
    link in my signature below.)

  • Tracing cue points in dynamically loaded video

    The beauty of using a video object in Flash is that you don't
    have to import the .flv file (at least that's how I understand
    this). I've loaded Untitled.flv dynamically using the code below
    and it plays just fine. I've created my own video player buttons
    and they work fine as well.
    I've encoded my Untitled.flv and created a cue point at 10
    secs with the following info:
    Name: cuePtEnd
    Time: 00:00:10.00
    Type: Event
    I left the parameters window empty.
    I want to trace the following statement, "Cue point reached"
    once this cue point is reached. I have an idea of how to do this
    using the FLVPlayback component, but if I place an instance of this
    on the stage, I'll have two videos, the one that I'm loading
    dynamically and the instance of FLVPlayback. I don't want to use
    components; I'm a little confused at this point; please help.

    Make a simple Director movie. Link your video file and place
    the sprite on the stage. Add two buttons. Use the first button to
    start and stop the video. Use the second button to record the
    movieTime. You can use this sample if you like:
    http://www.ddg-designs.com/downloads/movieTime.zip.
    Play the video, and at each point where you want the video to
    start at a new point, click on the second button. When you are
    finished, you will have a list of all of the starting points for
    the video. You can do the same thing for the end times of each
    section.
    Once you have this list, you can use these as you would use
    the cue points.

  • FLV embeded cue points

    I cannot figure out how to get a embedded event cue point to
    advance to the next scene of a movie and have zero experience at
    writing action code. The event cue point is on the last frame of
    video and was encoded with Flash 8 video encoder. The application I
    am working on has three scenes. The first and third have audio and
    graphics. The second scene uses the FLVPlayback component to play
    the flv file. On test movie, the first scene plays fine and
    advances to the second where the video plays. When video is over
    the movie does not advance to the third scene. Thoughts? Any
    assistance would be greatly appreciated.

    I truly apperciate you assistance but I am still doing
    something wrong. I am getting the following error:
    **Error** Scene=Scene 2, layer=Actions, frame=1:Line 3:
    Identifier expected
    var.vidList : Object = new Object();
    I changed the name of the FLV instance to "vid" and changed
    the "vid.contentPath = peopleStyle.flv" for my video.
    Here's the code.
    vid.contentPath = video_PS.flv // put in your flv file here
    var.vidList : Object = new Object();
    vidList.Complete = function (){
    nextScene();// this is what will occur when the end of the
    video is reached
    vid.addEventListener ("Complete",vidList)
    T
    hanks again for your help.

  • Cue Point Trigger

    I have actionscript below that works perfectly to trigger cue
    points in the order they fall...
    BUT...., for the life of me I can't figure out how to make
    it trigger from a specific cue point name. I have EVENT cue point
    named SPRING. I need that to trigger the timeline to go to and stop
    on frame 20.
    ANY HELP is greatly appreciated. I have researched this and
    worked on it for two days now.
    playback_media.contentPath =
    "rtmp://flash20.audiovideoweb.com/ca70fls25122/_definst_/Bouquet_400.flv";
    var playback_mediaList:Object = new Object();
    var playback_mediaList:Object = new Object();
    playback_media.cuePoint = function(cues) {
    gotoAndStop(20);
    playback_media.addEventListener("cuepoint",playback_mediaList);

    You don't even need a cuepoint to do this.
    Using the FLVComponent or the VideoPlayer object, use the
    "complete" event to execute code. You set up an event listener
    object to listen to the video object (using
    videoobject.addEventListener(listenerObject) ), and create a
    function for the listener object to do when the "complete" event
    occurs (such as listenerObject.complete = function() { do whatever
    Here's a link to a useful pdf about the VideoPlayer object.
    http://download.macromedia.com/pub/documentation/en/flash/fl8/VideoPlayer.pdf

  • Cue Points and RTMPE

    I'm hosting an FLV (with embedded event cue points) using
    Flash media server 3.5 in the vod directory. While using Flash 9,
    within component inspector, if I use rtmp protocol in contentPath,
    I can populate the cue points information in the cuePoints section.
    If I use rtmpe, I get failed to load FLV. I've tried using CS4 and
    could not retreive cue points at all. Any help would be
    appreciated.

    I found that captions do reset from the starting point when I
    press reply but cue points (events) don't.

  • External Cue points

    Hi,
    I was hoping that someone could help me out with this. I have
    a SWF that plays a FLV with actionscript cue points that when the
    cue point is reached the timeline plays. I need the cue points
    variables (the timecode) to be loaded from a text file because non
    Flash users will be adding content. The problem is that I can get
    it to work with putting the variables in the actionScript. But if I
    load the variables from the text file the playhead will not play
    with the cue point is reached. Below is the code that I am using.
    Thanks in advance.

    I'm sure there is more than one way to skin this cat, but here is what I use with NetStream video to load other .swfs (could be photos or other videos) at certain points in the main video:
    ns.onCuePoint = function(evt:Object){
        trace(evt.name);
        trace(evt.time);
        if(evt.name == "play_vid1") {
            trace("YO!Loading wide_holder!");
            wide_holder.loadMovie("rm/images/black_bear.swf");
        if(evt.name == "play_vid2") {
      trace("YO!Loading standard_holder!");
            standard_holder.loadMovie("rm/images/sqis.swf");
    in this case using an "event" cue point object embedding at certain times in the video.
    Lots of info on the Web, here is just one:
    http://www.communitymx.com/content/article.cfm?cid=124DB
    Best wishes,
    Adninjastrator

Maybe you are looking for

  • How to get user browser locale from view object

    Hello, Currently, I have a view object that's used to retrieve localized messages from data base. The resource table looks like the following: MSG_ID VARCHAR2,  --> specify the L10N resource reference LOCALE VARCHAR2, --> used to specify the user loc

  • How can i install Oracle 9i Enterprise version on Linux 7.2

    Hi friends, I m not able to install the oracle 9i enterprise DBA on RedHat linux 7.2. Can anybody guide me how to do it in correct way. Cuz i feel that i m not doing in right way and there is someother way of doing it ? Thanks in advance Manmeet Sidh

  • How can I get GarageBand on my iPad 1

    I recently bought a refurb iPad 1st gen to record music with. Much to my chagrin, my os is not compatible with the only download available with my device. I wish to purchase GarageBand and use the app. Can someone guide me to where i can download the

  • How do I switch my iphone 3GS to my husband and get my email and password off of it?

    Last year I bought an iPhone 4 and gave my 3GS to my husband.  I attached my iphone 4 to our desktop computer.  When I attached my husbands 3GS I renamed it as his.  After that we just would snyc his 3GS to our laptop. He wants to now snyc it back to

  • Badi implementation for T-code: QE71

    Hi Experts, I am implementing a badi in transcation QE71 my requirement is to automatically generate quality data. In this t-code we enter the value for the MIC of the material for each inspection lot. But in the screen only one entry can be done at