Cue Point - navigateTourl question

Ok, this is what I need to do, I have an flv inside an swf. when the flav gets to either 22:00 or a certain frame I need an invisible button to appear ONLY after the cue point where the flv will display a click here graphic and the invisible button will be on top.
I was able to add the button to the stage but it is clickable throughout the video, how can I get the button to appear AFTER the cuepoint.
any help?
rd

Thx for the reply I'm using actionscript and it's working but now but my problem is I have an invisible button on stage over the flv on another layer and need that button only to work after the flv get's to a certain frame  now the button is always on stage and clickable.

Similar Messages

  • Cue point question

    Hello all,
    I have a question abou cue points. I have a script, see below. In that script I define some cue points. Now I want to define a action for each cue point seperate.
    The script:
    // Requires an FLVPlayback instance called my_FLVPlybk on Stage
    import fl.video.*;
    import fl.video.MetadataEvent;
    my_FLVPlybk.source = "1.flv"
    var cuePt:Object = new Object(); //create cue point object
    cuePt.time = 2.02;
    cuePt.name = "ASpt1";
    cuePt.type = "actionscript";
    my_FLVPlybk.addASCuePoint(cuePt);//add AS cue point
    // add 2nd AS cue point using time and name parameters
    my_FLVPlybk.addASCuePoint(5, "ASpt2");
    my_FLVPlybk.addEventListener(MetadataEvent.CUE_POINT, cp_listener);
    function cp_listener(eventObject:MetadataEvent):void {
            var request:URLRequest = new URLRequest("dummy.swf");
            var loader:Loader = new Loader()
            loader.load(request);
            addChild(loader);
            new URLLoader()
            trace("Elapsed time in seconds: " + my_FLVPlybk.playheadTime);
            trace("Cue point name is: " + eventObject.info.name);
            trace("Cue point type is: " + eventObject.info.type);
    I manage to load a dummy movie at the cuepoint, but that is for all cuepoints. I want to set dummy.swf for ASpt1 and something.swf for ASpt2 and so on.
    Can someone help me?
    Thanks

    Ok starting to get the hang of this, in my actionscript are the following:
    btn_start.visible=false
    import fl.video.MetadataEvent;
    MainVid.addEventListener(MetadataEvent.CUE_POINT, Pause);
    function Pause(event:MetadataEvent):void
        trace(event.info.name);
        MainVid.stop();
    import fl.video.MetadataEvent;
    MainVid.addEventListener(MetadataEvent.CUE_POINT,BtnStart);
    function BtnStart(event:MetadataEvent):void
        btn_start.visible=true
    import fl.video.MetadataEvent;
    MainVid.addEventListener(MetadataEvent.CUE_POINT,btnVisible);
    function btnVisible(event:MetadataEvent):void
        btn_start.visible=true
    btn_start.addEventListener(MouseEvent.CLICK, Resume);
    function Resume(event:MouseEvent):void
        MainVid.play();
    MainVid.addEventListener(MetadataEvent.CUE_POINT, Pause2);
    function Pause2(event:MetadataEvent):void
        trace(event.info.name);
        MainVid.stop();
    btn_start.addEventListener(MouseEvent.CLICK, Resume2);
    function Resume2(event:MouseEvent):void
        MainVid.play();
    MainVid.addEventListener(MetadataEvent.CUE_POINT, Pause3);
    function Pause3(event:MetadataEvent):void
        trace(event.info.name);
        MainVid.stop();
    I wanted after the Resume to have the button hide again and can't seem to do it.
    Also, I had saved the file, then opened again to see that the CuePoints are not in the Properties anymore.
    Is this normal?

  • Video cue point question

    Is it possible to jump to a cue point directly when loading a new video?
    I have a video for one of my sections on my flash web site and depending on from where the user is coming from, they either start to view at the beginning of the FLV, or at a cue point about 10 seconds in. Is that possible? Would there be any loading issues here? Would it load the 10 seconds, or if told to go to that cue point, would it start to load from that point?
    Thanks a lot!

    try:
    var myVideo:Video = new Video();
    addChild(myVideo);
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    myVideo.attachNetStream(ns);
    nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
    ns.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
    ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
    ns.play("video/testFLV.flv");
    ns.client = this;
    function cuePointHandler(infoObject:Object):void
         trace("cuePointHandler called");
         trace("infoObject.name: " + infoObject.name);

  • Premiere CS3: How can you encode xml cue point data in the chapter section of a marker for FlashVid?

    Hi there,
    I'm a total newb to this forum, so hello adobe premiere community! I'm perplexed by Adobes documentation on Premiere (and I'm sure I'm not the first ) anyway on the live documents page below:
    http://livedocs.adobe.com/en_US/PremierePro/3.0/help.html?content=WS9390BED7-9466-46ea-A0E A-3240F1AFC36C.html
    it states that:
    “The cue point data in the Chapter field of a sequence marker in Adobe Premiere Pro will be encoded as Flash XML. For the XML protocol required, see Flash Help.”
    Which is great…except this information doesn’t exist seemingly in either the Premiere documentation or Flash either for that matter, but as I’m interested in working with the chapter/marker area in Premiere – should I really be told to go off and search the documentation for another application, probably not!  What would have been useful would have been a code snippet saying you do it like this, but of course, that would make things too easy!
    Basically, I understand that in After FX you can add Flash marker information specifically for interpretation when exporting to Flash Video (i.e. name, type and parameters etc) and it suggests that you can do the same above in Premiere CS3 using some kind of concatenated string in the chapter area…it just doesn’t tell you how anywhere seemingly – WHY ADOBE!
    Currently when I export markers as cue points based on the advice in the page above, anything I put in the chapter section to force Premiere to create a cue point is converted to a string, which becomes the cue point ‘name’.
    This cue point name is then automatically appended to the ‘time’ the marker was inserted at and is always encoded as type ‘navigation’, with no obvious means of adding ‘parameters’ into the equation.
    So (finally) does anyone know if you can insert this information into the chapter area for correct interpretation by flash (i.e. thus allowing you to choose between either 'navigation' or 'event' types, and pass as many 'parameters' as you wish etc) or are you just limited to supplying a name, and it being automatically set to the navigation type with no parameters?
    I’m sorry for this long essay but at least the issue is well defined for you to answer, honestly any help you can provide what so ever would really be most appreciated!
    Best regards,
    Kat
    PS – I have utterly no knowledge of XML either just in case you were wondering – and my only interest in XML is getting this basic information encoded into the FLV file from Premiere Pro CS3! Please help, pretty please with daisy’s!!!

    Hi dradeke,
    Thanks for your reply, which is indeed useful as clearly Adobe have made this task easier and less obscure in CS4 by adding simple interface functionality, however I'm stuck with using CS3 for the moment.  Its not majorly a problem as the video material in question can be exported uncompressed then setup with cue points using the Flash encoder as an alternative (i.e. or even After FX CS3 also) which both provide the same features as Premiere CS4 seemingly. It is just that it would be much easier to be able to drop in simple markers whilst working with Premiere CS3, as this is what we are going to be using primarily, I just wondered if anyone knew how to invoke this in CS3 - its possible you can't, the documentation is vague at best!
    However I really appreciate your response and help, thanks 

  • Using cue points to change a text box

    Ok I asked a simlar question before but I am still having trouble getting it to work.
    I have a video with 11 Cue points and at each cuepint I want the Typebox to change it text at each cue point.
    When the video is playing I want a the textbox to change the text when cue point 1 is reached. This is the code I am using. But every always goes straight to the whatever the last functions text and skips all the other before it. Its bassically this code repeated with difffernt function name and string.
    import fl.video.MetadataEvent;
    flvplayer.addEventListener(MetadataEvent.CUE_POINT,section2Cue);
    function section2Cue(event:MetadataEvent):void{
        for(var String = "section2" in event.info){
            typebox.text = "Hello";                        }
    So basically I want to tell flash, when CuePoint1 is reached text = "hello world" and when CuePoint2 is reached I want the text ="Hello Again". I don't know what I am doing wrong or what is the best way to tell flash how to do this

    Ok, I tryed that code Basically I want to call upon each cue point individually and have an event for each one. So how i tell it to display this only when Cuepoint1 is reach and display that only when Cuepoint2 is reached.  What data would help ?
    Most of my code is just buttons to reach each cuepoint within the video. I got that to work fine.
    I'll supply it anyways
    import flash.events.MouseEvent;
    // Assign a new skin to my FLVPlayback instance using ActionScript
    flvplayer.skin = "player.swf";
    flvplayer.fullScreenTakeOver = false;
    //select section menu button
    selectBtn.addEventListener(MouseEvent.CLICK, openMenu);
              function openMenu(event:MouseEvent): void{
                        trace("working");
                        selectMenu.gotoAndPlay(2);
              selectMenu.closeX.addEventListener(MouseEvent.CLICK, closeMenu);
                        function closeMenu(event:MouseEvent): void{
                                  trace("closing");
                                  selectMenu.gotoAndPlay(11);
              //Cuepoint Buttons
    selectMenu.sec1.addEventListener(MouseEvent.CLICK, section1Button);
    function section1Button(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component.
              // Replace "Cue Point 1" with the name of the cue point to seek to.
              var cuePointInstance:Object = flvplayer.findCuePoint("section1");
               flvplayer.seek(cuePointInstance.time);
               typebox.text = "Orion Health EMR Lite Overview";
    selectMenu.sec2.addEventListener(MouseEvent.CLICK, section2Button);
    function section2Button(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component.
              // Replace "Cue Point 1" with the name of the cue point to seek to.
              var cuePointInstance:Object = flvplayer.findCuePoint("section2");
               flvplayer.seek(cuePointInstance.time);
               typebox.text = "Adopt Electrionic Patients Records Easily";
              selectMenu.sec3.addEventListener(MouseEvent.CLICK, section3Button);
    function section3Button(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component.
              // Replace "Cue Point 1" with the name of the cue point to seek to.
              var cuePointInstance:Object = flvplayer.findCuePoint("section3");
               flvplayer.seek(cuePointInstance.time);
               typebox.text = "Introducing Orion Health EMR Lite";
                        selectMenu.sec4.addEventListener(MouseEvent.CLICK, section4Button);
    function section4Button(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component.
              // Replace "Cue Point 1" with the name of the cue point to seek to.
              var cuePointInstance:Object = flvplayer.findCuePoint("section4");
               flvplayer.seek(cuePointInstance.time);
               typebox.text = "Meet Mr. Smith - Patient Registration and Intake";
    selectMenu.sec5.addEventListener(MouseEvent.CLICK, section5Button);
    function section5Button(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component.
              // Replace "Cue Point 1" with the name of the cue point to seek to.
              var cuePointInstance:Object = flvplayer.findCuePoint("section5");
               flvplayer.seek(cuePointInstance.time);
               typebox.text = "Orion Health EMR Lite in the Exam Room - Clicnical Documentation and Orion Health HIE Integration";
    selectMenu.sec6.addEventListener(MouseEvent.CLICK, section6Button);
    function section6Button(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component.
              // Replace "Cue Point 1" with the name of the cue point to seek to.
              var cuePointInstance:Object = flvplayer.findCuePoint("section6");
               flvplayer.seek(cuePointInstance.time);
               typebox.text = "Working with Orion Health EMR Lite - Documentation";
    selectMenu.sec7.addEventListener(MouseEvent.CLICK, section7Button);
    function section7Button(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component.
              // Replace "Cue Point 1" with the name of the cue point to seek to.
              var cuePointInstance:Object = flvplayer.findCuePoint("section7");
               flvplayer.seek(cuePointInstance.time);
               typebox.text = "Order Entry in Orion Health EMR Lite";
    selectMenu.sec8.addEventListener(MouseEvent.CLICK, section8Button);
    function section8Button(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component.
              // Replace "Cue Point 1" with the name of the cue point to seek to.
              var cuePointInstance:Object = flvplayer.findCuePoint("section8");
               flvplayer.seek(cuePointInstance.time);
               typebox.text = "ePrescribing";
    selectMenu.sec9.addEventListener(MouseEvent.CLICK, section9Button);
    function section9Button(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component.
              // Replace "Cue Point 1" with the name of the cue point to seek to.
              var cuePointInstance:Object = flvplayer.findCuePoint("section9");
               flvplayer.seek(cuePointInstance.time);
               typebox.text = "ePrescribing";
    selectMenu.sec10.addEventListener(MouseEvent.CLICK, section10Button);
    function section10Button(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component.
              // Replace "Cue Point 1" with the name of the cue point to seek to.
              var cuePointInstance:Object = flvplayer.findCuePoint("section10");
               flvplayer.seek(cuePointInstance.time);
               typebox.text = "Quality and Utilization Reporting";
    selectMenu.sec11.addEventListener(MouseEvent.CLICK, section11Button);
    function section11Button(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component.
              // Replace "Cue Point 1" with the name of the cue point to seek to.
              var cuePointInstance:Object = flvplayer.findCuePoint("section11");
               flvplayer.seek(cuePointInstance.time);
               typebox.text = "Summary";
    As for data? This is all I know about my CuePoints
    Would the best way to acheive changing type is to change the way my movie clips are set up? Instead of telling it within the actionscript maybe telling it to go to next frame within a movieclip with the content? I don't know exactly how to word what I am trying to acheive but I'm trying!
    thanks!

  • Odd cue point problme

    Howdy all
    I have 4 frames in a urlMC on each frame is a button. They
    all work fine.
    I have a FLV that plays and a cue point moves the urlMC to
    the next frame to
    reveal the new button. When used this way the buttons don't
    work. Any
    thoughts? Thanks.

    1. A cuePoint has to be attached to a certain point in time. Look up the docu: http://help.adobe.com/en_US/ActionScript/3.0_UsingComponentsAS3/WS5b3ccc516d4fbf351e63e3d1 18a9c65586-7feb.html
    2.In as3 the getURL method is not valid anymore, use navigateToURL() instead [google for examples how to use it]

  • [Q] Can I insert the cue point when recording an FLV via FMS2???

    Hi... :)
    I think this can be a simple yes/no question...
    Does anybody know if I can insert the cue point when
    recording an FLV via FMS2 via AS???
    Thanks... :)
    CyanBlue

    According with fms2 documentation, you can define cue points
    in an FLV file when you first encode the file, or when you import a
    video clip in the Flash authoring tool by using the Video Import
    wizard.
    The FMS2 only handles with cue points.... using the
    NetStream.onCuePoint event handler.

  • Cue Point in FLV Help

    I have a progresive flv with an instance name of myVid which
    is already on the stage and set to autoplay via the component
    parameters tab. When the video plays and gets to a cue point I want
    the flv to pause. The cue point names (embedded when I used Flash
    Video Encoder) are cp01, cp02, and cp03. The video doens't stop on
    the specified cue point and instead just keeps playing. Can anyone
    help me with my code? Is there a better way to do it? Here is what
    I have so far:

    necie,
    > The video doens't stop on the specified cue point and
    instead
    > just keeps playing. Can anyone help me with my code?
    This is definitely the best Adobe forum for your question,
    but since you
    happened to post in the General forum first, I answered your
    thread there.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Simple Flash Video Cue Point Problem (I assume)

    Hello everyone. Quick question. After I have added a cue
    point to an end of a video, how can I have the cue point trigger an
    action such as "gotoAndPlay" or "fscommand("quit");" etc.?
    I thought this would be an easy thing to find by checking on
    the various websties for other posts or tutorials but nothing I
    found addressed this. Any info will be most appreciated.
    Thanks.

    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

  • Using cue points to trigger events on the main timeline...

    Hi--
    I have successfully placed an flv (video) file (progressive
    download) on the main timeline of my movie with controls to play
    and pause (Flash 8 Professional). So far, so good!
    NOW TWO PROBLEMS: Does anyone know how to set it up so that
    when a specific cue point is reached in the video, it triggers an
    action on the main timeline? In this case, once the video is over,
    I want the main timeline to gotoAndPlay frame 3. Specific script to
    do this would be great!
    The other action I'd like to happen is that when the video
    begins, it targets a scrolling text mc ("text") in the main
    timeline and tells it to gotoAndPlay frame 2.
    Any advice would be GREATLY appreciated!!! Many
    thanks!!!

    I usually start off solving problems with the livedocs, as I
    recommend for anyone. The following link will take you to the
    NetStream.onCuePoint handler. This is what you need.
    http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context= LiveDocs_Parts&file=00002561.html
    You can have this code on the main timeline. When the
    cuepoint is hit, it will invoke this event handler and inside is
    where your gotoAndPlay( ) should go.
    Your other question about the text will get activated by the
    same handler. Just have a conditional statement (if, switch, etc.)
    to differentiate between the two events. The text itself can be
    mask inside a movieclip.
    Does this help?

  • Cue Point/Markers

    We are trying to make an educational series we have created with Flash (FLV) videos compatible with the iPad. We currently use .flv files with cue points to trigger URL flips with java script to change the mulitple choice questions that appear next to the playing video using JWPlayer. JWPlayer will also play the .mp4 files we need to get the videos to play on iPad, but I cannot find out how to put a cue point into a .mp4. Would that be a "chapter marker" in FCP? So if the video was to trigger test#28 we now insert a cue called "test_28" in the flv, would we make a chapter marker titled "test_28" in FCP and then export with markers?

    We currently use .flv files with cue points to trigger URL flips with java script to change the mulitple choice questions that appear next to the playing video using JWPlayer.
    This is a job for Adobe Flash Pro:
    http://www.adobe.com/products/flash.html

  • Cue point code in video to open URL?

    I have a cue point in a video, named "CUE_POINT" and I'm trying to get a new URL to open when the cue point is reached.
    This is the code I've tried.  Any suggestions??
    import fl.video.MetadataEvent;
    mymovie.addEventListener(MetadataEvent.CUE_POINT, fl_CuePointHandler_2);
    function fl_CuePointHandler_2(event:MetadataEvent):void
    getURL("Black_Vault/vault.html");
    thanks,
    GL

    1. A cuePoint has to be attached to a certain point in time. Look up the docu: http://help.adobe.com/en_US/ActionScript/3.0_UsingComponentsAS3/WS5b3ccc516d4fbf351e63e3d1 18a9c65586-7feb.html
    2.In as3 the getURL method is not valid anymore, use navigateToURL() instead [google for examples how to use it]

  • Cue point event to display text link in movie

    HI -- This may be a fairly mundane question but I am having a
    hard time figuring it out. I have a movie with several cue point
    events. I would like a text link to be added to the right of the
    movie when a certain cue point is hit. I would like the link to
    stay in place and each time a new cue point is hit, a new link is
    added below the last link.
    I am stuck and can't seem to get this to work. Having a hard
    time figuring out the action script. Any suggestions? I have
    already followed the macromedia tutorials on this subject and am
    just floundering.
    thanks!

    Since you are storing the number as an 'int' and then converting that int to a String for display, then you shouldn't expect 0's to be added on if the number is currently 0:
    1) curnum = 0
    2) 0 key is pressed
    3) curnum = curnum * 10 + 0 = 0 * 10 + 0 = 0
    A real calculator wouldn't keep appending 0's... at least, not a simple calculator comparable to the one you are writing. If you want to append 0's, try this:
    - Keep a count of the number of 0's pressed.
    - If curnum is changed to 0 (by pressing clear, for example, or turning on the calculator), reset the zero count to 1.
    - Each time the '0' key is pressed, if curnum is 0, then increment the '0' count.
    - When you update your display, use the following logic: if curnum is 0, then display the number of 0's specified in the zero count, otherwise just display the value of curnum.
    Jason

  • As3 cue points from soundbooth

    hello one and all,
    i am a bit frustrated because i can not find a straight forward howto/tutorial on accessing cue points from a flv or xml file produced in soundbooth and imported or read into flash so trigger a MetadataEvent.CUE_POINT event within an action script.  i have fuzzy understanding about it but not quite enough to make it work properly and with small efficient code.  can anyone direct me please to a good howto/tutorial on triggering an event when a cue point is hit when an audio file plays in flash cs4?  btw, i only want to do it with pure audio and not video also, if that makes it simpler.  thank you in advance and have a great day.
    lucas

    well, i got very lucky and after 6 days of searching for a good tutorial, i just finally got lucky.  a piece here another there.  essentially, soundbooth is a pretty suit little program and saving the cue points within are excellent also.  it can even do it for video.  anyway, i was only working with audio and was able to save my flv audio as audio only which included the embedded cue points and attached parameters.  the below code, actionscript 3, works very well and i believe it is the simplest code for reading and triggering on cue points as the audio is played.  txt1 and txt2 are simply dynamic text boxes on the stage on frame 1.
    i still have a question though.  how do i give the audio in the library an instance name outside of an actionscript?  as you can see below, i create an FLVPlayback instance and load the file through as.  with text boxes and rectangles and such, i can give those an instance name under Properties off of the stage.  however, the audio is not visible on the stage so i can't access it through the Properties window.  i can somewhat access it through the frame, that that is a frame label and not an instance variable.  so, how do i assign an instance variable to audio outside of actionscript?
    anyway, the code is below for anyone to use.  thank you and have a great day.  lucas
    import fl.video.*;
    trace("FLVPlayback Version = "+FLVPlayback.VERSION);
    txt1.text = "file: \"1st.fla\", initializing...";
    var p:Object;
    var player:FLVPlayback = new FLVPlayback();
    player.addEventListener("cuePoint",onCue);
    player.load("voice1.flv");
    player.play();
    function onCue(e : MetadataEvent) : void {
    txt2.text = e.info.time+"s";
    trace("cue "+e.info.type+" name: \""+e.info.name+"\" @ time: "+e.info.time);
    p = e.info.parameters;
    if (p != undefined) {
    txt1.text = e.info.parameters["en"];
    trace("   name of \"en\" only: \""+e.info.parameters["en"]+"\"");
    trace("   all name/value paired parameter(s).. .");
    for (var n:String in p) {
    trace("      "+n+"=\""+p[n]+"\"");
    else {
    txt1.text = e.info.name;

  • Cue points read from asnd files.

    hello one and all,
    it seems to me that asnd is a good loseless file format for soundbooth, and since that the case, shouldn't flash natively read not only the audio stream from an asnd but also its cue points, since they are also obviously stored in the asnd file also because soundbooth stores and retrieves that information from the asnd.   i mean it would be good from embedded audio within flash and a lot easier then exporting to flv or xml.
    can't this feature be built into cs5?
    thanx, lucas

    Use File IO>>Advanced File Functions>>Set File Position.vi from the functions palette to set the position of the file as required. 
    I am curious as to why you would want to read the file multiple times; If the data in the file is not changing, it is more efficient for you to read it once.
    Also, there is no device called a DAQ.  DAQ drivers (NI-DAQmx is the latest version) are used to run a variety of data acquisition devices.  Whether you can output your waveform at your required resolution and speed depends on what kind of data acquisition device you have.  Regarding your question about data format, most boards accept data in a variety of forms.  Even if your particular form is not supported, conversion is pretty easy.  We need more details about the format of your data and the type of device you have to better answer this question.
    S G
    Certified LabVIEW Architect, Certified TestStand Developer, Certified Professional Instructor

Maybe you are looking for