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]

Similar Messages

  • Problems Using Cue points to Loop Video

    Ok, so I want to use cue points to navigate through video.  I want to start by simply looping the video from the end back to the beginning.  I keep getting an invalid seek error 1003.  Here is my code.  Any help would be much appreciated.  Thanks
    import fl.video.MetadataEvent;
    Movie.addEventListener(MetadataEvent.CUE_POINT, loopFunction);
    function loopFunction(e:MetadataEvent):void
        if (e.info.name == "end1")
            Movie.seekToNavCuePoint("beginning1");
            Movie.play();

    At least you are getting notified even if the seek doesn't work.
    A brief workaround could be to iterate over the cue points you detect in metadata, assigning each cue point name and time in an object. Once you hit the cue point you desire, see if the object has the time value and seek() to the time for that cue point rather than seeking for it by name.
    e.g. (written briefly, you get the idea):
    // object to hold time values
    var cuePointArr:Object = new Object();
    function onMetaData(infoObject:Object):void
        var cueIndex:String;
        for (cueIndex in infoObject.cuePoints)
            trace("Adding cue name[" + infoObject.cuePoints[cueIndex].name + "] at time[" + infoObject.cuePoints[cueIndex].time + "]");
                        // store as name = time
                        cuePointArr[infoObject.cuePoints[cueIndex].name] = infoObject.cuePoints[cueIndex].time;
    function loopFunction(e:MetadataEvent):void
              // correct cue point and has a value in cuePointArr?
        if ((e.info.name == "end1")&&(curPointArr[e.info.name] != null))
                        // seek to time value
            Movie.seek(Number(cuePointArr[e.info.name]));
            Movie.play();
    Moving 900mph here so forgive any typos but turning it into a normal seek based on the time value should work for now.

  • Reading cue point parameters on video start

    Im trying to create a table of contents to navigate to various points in an .FLV file.  I've encoded the flv with cue points in media encoder. I've also added a parameter to each cue called toc_title with the lable that should represent the time in the video to jump to. It occurred to me though that those parameters might not be available to my flash player until the frame of the cue was reached. I need my toc to be visible when the video starts. First of all, is this entirely the wrong approach? I want to make this video player as dynamic as I can and would like to reuse it for several different videos with different TOCs. Is the parameter data set on cue points available at any time in the video playback or only when the cue is reached?  Thanks, John

    Hi John, You may receive more advice and help on the Flash forum. You can start a thread there or perhaps some threads may already be discussing your concerns.
    http://forums.adobe.com/community/flash/flash_general?view=discussions&start=0
    Hope that helps.
    eidnolb

  • Rendering .flv with cue points but maintaining video size

    When I render an .flv by exporting in After Effects I cannot get cue points however when I import the .flv to a Flash doc, the controller is the same width as the video.
    However, in order to get cue points, you have to add the video to the Render Queue in AE in order to see the cue points in Flash. But the video controller ends up wider than the video itself when imported to Flash.
    My video is 495 wide by 360 high. When I render in AE in the Render Queue, and then import to a Flash doc, the video controller is about 30 pixels wider on both the left and right of the video. This looks goofy. Is their a way to resolve this?
    Thank you.

    Thank you for responding. I tried to but what happens is that that there is about 15 pixels of black space on the left and 15 pixels on the right side of he video. This does not happen when I export to Flash, only when I add to the Render Queue.
    So If I adjust the video size in Flash, the video size changes however the black space still remains. Somehow AE is creating extra space black space on both sides of the .flv. Again, this does not happen when export to .flv.

  • Video Cue Point problem

    I have an FLV loaded into a video player component. The FLV
    has embedded cue points, from Flash video encoder:
    <mx:VideoDisplay id="vidScreen"
    cuePoint="cpHandler(event)" />
    And the handler:
    private function cpHandler(event:CuePointEvent):void {
    Alert.show(event.cuePointName);
    It works, since the Alert boxes open on cue and show the name
    of the cue point. However, if I try to get the array of cue points
    with something like trace(vidScreen.cuePoints) I get null. I need
    to get the array, since I want to do something on each of the items
    in the array of cue points. What am I missing here?

    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

  • Handling Flash video cue points in Javascript

    Can any kind person give me any pointers on how to get Javascript in an HTML page containing an FLV video to listen for cue points in the video? I understand how to get the cue points in, but most people only seem to want to handle the cue point events within Flash. I want to use Javascript to display a different text in a page element at each point. Does the method vary depending on what player you're using? How about when it's the standard Flash playback component? Does there need to be any special Actionscript in the SWF containing the FLV?
    Thanks
    Fred

    Thanks Rob, will do.
    For anyone else looking into this issue there are some links to the ActionScript documentation on this StackOverflow post and an explanation of how to use ExternalInterface halfway down the page in this Adobe Devnet tutorial.
    Presumably you'd first import the ExtenalInterface class into your Flash with
    import flash.external.*;
    And then add an ActionScript event listener which sends the ID of each cue point out to the Javascript using the ExternalInterface.call() method:
    ExternalInterface.call(methodName:String, [parameter1:Object])

  • Streaming Video with Cue Points

    I have made a video with cue points, when it is in a local
    file, lingo can check its cuepointtime and cuepointnames as well,
    but when it is put in streaming server, its cuepointtime and
    cuepointnames are both empty when get by lingo.
    Could anyone please tell how to get the cue points of a video
    when getting it from streaming server?
    Linda

    you're welcome.
    for anyone else with a similar issue, using the info property of the MetadataEvent is the correct way to proceed.  (that event has no object property.)

  • Flash video - Cue Points

    I've just added some external FLV playback in a project that I am currently completing.
    I've currently set my navigation button (next_btn) set to invisible when the page loads (forcing the user to watch the video).
    Can I set a cue point in the video to change the state of the next button (i.e. next_btn._visible = true;) ?

    you don't need a cuepoint to detect the end of your video.  use:
    var lo:Object = {};
    lo.complete = function(eObj:Object):Void {
    next_btn._visible=true;
    flv_pb.addEventListener("complete", lo);   // <- use the instance name of your flvpb component

  • Streaming .flv cue point problem

    I’ve been working with Flash video with synced slide
    presentations since February, which have been exclusively download
    streaming, all based on the presentation available at the adobe web
    site:
    http://www.adobe.com/devnet/flash/articles/vidtemplate_corppreso.html
    My issue has come up when using this template with streaming
    flv’s, the buttons that I use to reference the cue points in
    the video and slides on the timeline do not work reliably;
    sometimes they will shuttle the video and slides to the correct
    point, usually they move the slides on timeline to the appropriate
    spot and the video jumps back to the beginning. Besides this
    sizable problem, the presentation plays the way it is supposed to.
    Is there a setting in the component inspector that I’m
    missing? Should I re-encode the video with Navigation cue points?
    Any help would be appreciated.
    L

    If you look at the source code for the first link you'll find this at line 71:
    <p id="player1" style="margin: 0px; padding: 0px; text-align:center;"><embed type="application/x-shockwave-flash" src="http://www.thebellyfatsolution.com/flvplayer.swf" style="" id="player1" name="player1" quality="high" wmode="transparent" allowscriptaccess="always" allowfullscreen="true" flashvars="height=390&amp;width=504&amp;file=http://www.thebellyfatsolution.com/beta/video/BellyFatFINAL_6_30_nL.flv&link=http://www.th ebellyfatsolution.com/beta/video/BellyFatFINAL_6_30_nL.flv" height="390" width="504"></p>
    <p><noscript>
    Apparently your video has been encapsulated in JWPlayer. You can find out more about JWPlayer here: http://www.longtailvideo.com/players
    This seems to be yet another solution to a problem that doesn't exist, and whoever runs that website fell for the sales pitch.

  • Cue Point Navigation

    I will preface this all by saying I am very new to the whole
    idea of using code for anything (I have problems programming my
    watering system at home and it's got buttons) and I could sure use
    some help from people in the know.
    I'm working on an FLA that has 7 talking head videos
    w/PowerPoint slides as pngs from a medical conference.
    I'm trying to get slides to synchronize with embedded
    navigation cue points in the video. All the code I entered so far
    was based on the Adobe article "Controlling Flash video with
    FLVPlayback programming-Cue point event handling" and I used the
    code example provided. When I exported the movie all I get is a
    flickering flv icon on the screen and the following error message:
    line 1 1046: Type was not found or was not a compile-time
    constant: MetadataEvent.
    Attach Code
    function cuePointHandler(event:MetadataEvent):void
    trace("name = "+event.info.name);
    trace("time = "+event.info.time);
    // Go to a frame label with the cue point name
    gotoAndStop(event.info.name);
    flvControl.addEventListener(MetadataEvent.CUE_POINT,
    cuePointHandler)

    before the function add the following line:
    import fl.video.MetadataEvent;

  • Cue points - Non-Component-based, NetStream class to gotoAndPlay?

    Hello all,
    I am trying (unsuccessfully) to utilse cue points in my flv (my_video) to jump to places in my timeline. My flv's are placed within a movieclip if this is helpful? I've learnt alot from this website (Goldmine for anyone needing help) http://www.quip.net/blog/2007/flash/how-to-use-flash-video-cue-points
    but i just don't know enough about coding to get it to work. I've done a trace of my flv and this is the information it came back with;
    onCuePoint:
    parameters =
    web1: website1
    type = event
    time = 3.009
    name = web1
    onCuePoint:
    parameters =
    web2: website2
    type = event
    time = 10.127
    name = web2
    onCuePoint:
    parameters =
    web3: website3
    type = event
    time = 17.866
    name = web3
    I've tried to 'fudge' my way through this but don't understand the language?! I exprted the flv with embeded cue points called web1, web2 & web3 and am trying to get these to jump to the main timeline (out of the mc) to their respective labels (web01, web02 & web03) Whilst I was embedding those cue poitns i also added event names (also web1, 2 & 3) and  values of website1,website2 & website3 -no idea why just thought they had to be filled?
    Just to reiterate i'm not using components and I am using the net stream class.
    Help!
    ...please!
    Here's my code so far;
    ns.onCuePoint = function(evt:Object):Void {
      trace(evt.name);
      trace(evt.time);
      trace(evt.parameters);
    var listenerObject:Object = new Object();
    listenerObject.cuePoint = function(eventObject:Object):Void {
    // Put any code you like here
    trace("web1: " + eventObject.info.name);
    trace("event: " + eventObject.info.type);
    if(eventObject.info.name=="web1"){
    gotoAndStop("web01");
    my_video.addEventListener("cuePoint", listenerObject);

    Thanks kglad. Being able to customize is always better in my flash world. LOL
    I'll have to stay with the FLVPlayback component as long as I have to use cue points in my videos.
    Thanks

  • NetStream Cue Points

    Tried adding cue points via as3 code but haven't been able to find anyway to accomplish this task. Read allot places that when you load a video via netStream you can't add cue points with actionscript. The only way is to embed the cue points is into the video. But this is not an obtain for me since someone else does the videos and they may change or be modified at some time. I can add actionscript cuePoints with the FLVPlayback component but I am looking for ways of increasing video performace.
    By the way what is the difference\advantage of using netStream over using the FLVPlayback component? Often wander this but haven't read anything to say one is better then the other when running video over the web.
    Thanks

    Thanks kglad. Being able to customize is always better in my flash world. LOL
    I'll have to stay with the FLVPlayback component as long as I have to use cue points in my videos.
    Thanks

  • 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.

  • Using external XML to add and set parameters for AS cue points.

    Hi there. I am trying to use external xml to set cue point
    times (for video), titles, and other parameters. I have everything
    set up, except getting the proper data from the xml file to set the
    parameters for my cue points. I am researching hard and learning
    quickly - at this point, I need help. Thanks!

    Anyone?
    Still working on this if anyone has advice. Still haven't
    been able to figure out how to put xml data in the right place:
    addASCuePoint(//data from xml here to set name and time of
    cue point - HOW??//);
    Thanks!

  • 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

Maybe you are looking for

  • Auto selection of file from folder during uploading??

    Hi all friends, Iam facing with one problem I am developing one uploading software for that i have used swing and servlet.Now my problem is i want to give auto selection of file from one folder means user just copy the files from any computer on netw

  • Windows 7 on bootcamp want to reinstall with out reformating the whole thing

    if im using windows 7 pro on macbook via bootcamp if i reinstall windows 7 with ulimate disc can i revert back to windows 7 pro with my product key and if i reinstall windows will i have to re partition because i dont wanna reinstall logic if so just

  • Any substantial tcp/ip connection must be tracerouted to work

    Before I get into my problem, I'd just like to say a quick hello to the Arch Community! (my first post). I've been keeping an eye on Arch for some time now, waiting for a lull in my uni work so I could dedicate the proper time into installing this gr

  • MacBook Air and Time Machine

    Hello, for doing my regular backups I am using a QNAP NAS. It works well with my Ethernet connected iMac and also with my wife's Macbook Pro. Recently I bought a Macbook Air for my work and I want to backup this one on the NAS, too. But all my attemp

  • 806 home and ias home related

    Hello, 806/network/admin/ we have listerner.ora and tnsnames.ora. Ias/network/admin we have listerner.ora and tnsnames.ora I am bit confused why this files are used and all that. 806 listener is used by appslistener to get started.If this file is not