Pause on Cue Point

I have set a cue point in my FLV at 58 seconds. Can someone
tell / show me
how I can add a pause to the video when it reaches that first
cue point. I
have it set (intially) called break and it is set to 'Event'.
Thanks. I am an eager noobie to Flash video and actionscript.

NetStream events have nothing to do with cue points.
onCuePoint method belongs to NetStream client. So, you will need
something like this:
client.onCuePoint = pointListener;
function pointListener (cuePoint:Object):void {
trace(cuePoint.name + " " + cuePoint.time);
In a nutshell NetStream events are fired when changes occur
in video delivery (buffer, start, pause, etc.) - not video content.
More information:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/NetStream.html
As for your code, your syntax is not correct.
You wrote: vid.addEventListener(NetStatusEvent.NET_STATUS,
"myFirstCuePoint");
If you listener function is myFirstCuePoint you need to
write:
vid.addEventListener(NetStatusEvent.NET_STATUS,
myFirstCuePoint); - no quotes.
Also, I don't use FLVPlayback - it has it's own methods and
events. What I wrote pertains to the cases when NetSream and
NetConnection are used stand alone.

Similar Messages

  • Need .flv to pause on Cue Point usingActionScript 3

    I'm creating a presentaiton of a Google Earth flythru. At
    specific (cue) points I need the FLV to pause and then when the
    presenter pushes a key (space bar) the FLV continues to play. I
    have a good understanding of the Event Listener process for AS 3.0
    but am not sure how to address the the action of the pausing once
    the flv reaches the cue point. Does anyone know of any good
    tutorials? Or any helpful insight?
    Thanks,
    Mike

    NetStream events have nothing to do with cue points.
    onCuePoint method belongs to NetStream client. So, you will need
    something like this:
    client.onCuePoint = pointListener;
    function pointListener (cuePoint:Object):void {
    trace(cuePoint.name + " " + cuePoint.time);
    In a nutshell NetStream events are fired when changes occur
    in video delivery (buffer, start, pause, etc.) - not video content.
    More information:
    http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/NetStream.html
    As for your code, your syntax is not correct.
    You wrote: vid.addEventListener(NetStatusEvent.NET_STATUS,
    "myFirstCuePoint");
    If you listener function is myFirstCuePoint you need to
    write:
    vid.addEventListener(NetStatusEvent.NET_STATUS,
    myFirstCuePoint); - no quotes.
    Also, I don't use FLVPlayback - it has it's own methods and
    events. What I wrote pertains to the cases when NetSream and
    NetConnection are used stand alone.

  • Use cue points to automatically pause flv

    I have a video that I would like to make play in steps. I
    already have a custom flv playbar, so I would like to use cue
    points to control it
    Thanks in advance

    i am looking for this same answer. i am not a pro at flash
    but good enough to make my way around. Here is what I have done so
    far....
    using components i dragged the FLVPlayBack onto stage, i set
    the source of the playback to my flv. as of right now, 'cuepoints'
    is set to none. i'd like to be able to set in about 5 cue points
    and have them auto pause each time they come up. any help would be
    appreciated!
    thanks,
    travis

  • 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

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

  • Jumping to Specific URL from a cue point in video

    Hello,
    I am having a video play within flash CS3 and it does fine.
    Now, I need to tell Flash that when it reaches cue point "end", it
    should go to a specific web page. How can this be accomplished? I
    am new to Actionscript 3.0 and after trying different things, I
    don't seem to be able to accomplish this.
    Thanks all.

    Why yes indeed, just move the mouse to where you want to start playing on the timeline. Now press on the Spacebar and Voila, it starts playing from that point forward. Stop, just hit spacebar again. It's like play/pause button on a cd player or vcr.

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

  • Stopping streaming video with cue points

    I've been searching for a solution to this problem for weeks now. All i want to do is make a video streaming in a video object to stop on a cue point, and play from abother when a button is pushed. It's relatively simple, right? Wrong. Over a hundred $s in how-to books and several hours wasted searching online later and I have nothing. I have checked and re-checked the cuepoints are correct (i made them in flash video encoder CS3) and tried just about everything as far as AS is concerned. Here is my latest attempt: (obmintro is the player instance name, i have the rtmp info in source under player parameters and it plays fine)
    import fl.video.MetadataEvent;
    obmintro.addEventListener(MetadataEvent.CUE_POINT, cp_listener);
    function cp_listener(eventObject:Object):void
    if (eventObject.object.name == "site_end");
      obmintro.pause();
    //i have also used stop, stop("obmintro"); and i don't even know what else.
    please tell me what i'm doing wrong and how it's really supposed to be done. i'm feeling very hopeless and blonde right now. help a girl out?

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

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

  • Director buttons to FLV cue points?

    Is it possible to use a button to jump the playback head to a flv cue point?
    Director V11.5 Mac

    If you know where the cuepoint is (in milliseconds), you can use the seek() command to jump there.  You might have to do some experimentation to get it to work the way you expect it to.
    Seek() is an asynchronous command.  It can only be used if the sprite currently has a mediaStatus of #playing.  It is ignored if the mediaStatus is #paused, #stopped or #error.
    Immediately after the command is issued, the sprite's mediaStatus switches to #stopped (not #seeking or #buffering) and the currentTime of the sprite is set to the target value.
    If the seek target is negative or greater than the duration of the media, nothing happens.

  • Need Help with Cue Points/Custome Code

    So I've figured out that videos with a playback component need cue points in order to set up all the interactivity I want to use. The only way to make animated graphics, interactive graphs and text is to apparently create custom code, which I no zip about.
    Should I hire someone to do that for me? I was thinking elance, but does anyone have any suggestions on how to make an interactive video other ways (or cheaper)ways.
    p.s
    how much do you think I should charge for that:)?

    My advice... start with a very simple "proof of concept" project before you attempt the entire package.
    It will be much easier to scale up if you first have a very good understanding of what's going on.
    So one simple video with just one cuepoint and only one button and additional display. You'll also have to work out the interaction of pausing the video when a cuepoint is reached or button pushed to display the graph, giving the viewer time to read the graph... then when the viewer closes the graph, the video should "resume".
    Start very simple and build on that only after you understand the fundamentals.
    Second, you mention "video reports"... plural. So that most likely means that you will need a video player with a "playlist".
    This may mean that you'll need to learn to use a little .xml to bring in the playlist data. You may also find xml an excellant way to bring other data into you project.
    At the link listed above there is an excellant tutorial on "Integrating Flash and XML"
    "Flash and XML"
    "XML Video Playlist"
    "ActionScript 3 XML Basics"
    "ActionScript 3 Advanced XML"
    Personally I would not even begin a project like this without considering how I could use xml to feed data into the project.
    Here's an example of a video player I created that has a playlist, thumbnails, categories, transcipts, "Now Playing" etc. All that data comes into the main .swf via various xml files. Super good way in input data into Flash.
    http://www.drheimer.com/video/
    Yours is a rather ambitious project and will take awhile to gain the skill and assemble the pieces. So when you come to a new part... first create a real simple "proof of concept" model so you can learn how that section works. Don't expect to be able to assemble the entire project all at once.
    Best wishes,
    Adninjastrator

  • Flash Video: Dynamic Cue Points?

    I am trying to write a Flash movie that will play an FLV and
    pause the video dynamically at a specified time without the use of
    embedded cue points. Is this possible?
    For example, I want to be able to play an FLV for 5 minutes
    and automatically pause the playback. I want this pause time to be
    defined before each FLV playback. So I cannot use hard coded cue
    points.

    set two variables:
    _root.tTime =t he time you want to pause
    and
    _root.hTime = the playhead time at any given moment.
    Select your .flv component on the stage & open the
    Actions panel, place the following code:
    onClipEvent (enterFrame) {
    //set the time variable to equal playheadTime
    _root.hTime = _root.FLVPlayback.playheadTime;
    //Test repeatedly,to see if playheadTime has reached
    totalTime
    if (_root.hTime > _root.tTime) {
    //If so then pause the .flv file Place your code here
    Then set _root.tTime to define the pause time before each FLV
    playback. As soon as hTime > tTime your pause will take place..
    Hope this helps...
    Dcon

  • How to hear audio while scrubbing for cue points?

    There don't appear to be any video control functions in AME in the Export Options dialog. How can I play and pause the video? How can I insert cue points if I can't hear any audio?

    You do all this while still in PP.

  • Best way to control graphics synchronized to video cue points

    Hello,
    I've recently completed (well, 'completed' is a strong word)
    a phase one implementation of a synchronized video presentation
    using After Effects and Flash. The basic idea driving the
    synchronization of cue points to motion graphics revolves around
    creating a listener in the following fashion:
    var listenerObject:Object = new Object();
    listenerObject.cuePoint = function(eventObject:Object):Void {
    // Put any code you like here
    trace(&quot;Cue point name: &quot; +
    eventObject.info.name);
    my_FLVPlybk.addEventListener(&quot;cuePoint&quot;,
    listenerObject);
    and then using the cue point name to play a variety of
    movieclips at the appropriate time in the presentation.
    The video presentation had four sections, each of which could
    be arbitratrily browsed to at any point in the presentation, so it
    was important that the the movieclips did not need to play in order
    and that they could be interrupted at any point without an visual
    confusion.
    I dealt with this two ways (I am sure these are not the best
    ways, which is why I am writing this post):
    First, every single movieclip was already on the stage from
    the outset, stopped on the first frame, with the alpha property set
    to 0 (based on Aran Balkan
    http://aralbalkan.com/444).
    The final frame of each clip had a gotoAndStop(1) action on it so
    that when a clip finished playing it 'reset' itself. I also wrote a
    &quot;rewind&quot; function which pretty much did the same
    thing whenever a user clicked on one of the navigational tabs.
    For a first iteration, this worked pretty well, and it
    impressed enough people in my organization (university) that now
    the President wants to deliver a similar message. It seemed prudent
    at this point to ask a general question about best practices in
    this area. I am working with the full Master Collection suite, and
    can target later versions of the Flash Player (I believe I can use
    AS 3.0, although I will have to learn it). One thing that I am
    hoping any pointers you guys might have will cover is this:
    How do you handle starting/stopping/pausing of the video and
    also make sure any currently playing graphical assets also
    start/stop/pause on cue? I was thinking of setting a variable on
    the second frame of each movieclip, something along the lines of
    'nowPlaying = this;' and then resetting that to null at the end of
    the clip and in the rewind function, then using that variable to
    control the currently playing clip (would have to bu just one, I
    imagine).
    But there has got to be a better way. I have some down time
    to do research and to experiment, but it is going to be very high
    profile when it rolls around, so I thought I'd send out some
    feelers.
    Has anyone done anything like this? Seen a better way? Etc .
    Thanks so much.

    Best practice is to keep one single file as long as humanly possible.
    In this case, you "branched" a version for another format; I'd suggest you don't edit that any further (apart from the formatting stuff you mentioned), but inform your client this version is to be worked on. Work on your "real" version until it's really really done, and only then make other versions.
    It's a different story (no pun intended) if the transition between the two versions can be automated; that way you'd still only work on the 'real' version, but then you could generate the other with every edit you make -- you should still not be doing any work in the dumbed-down version.

  • Need some help learning cue points, etc

    I need some help with a Flash project I'm working on. If any
    Flash junkies out there are up for sitting down with me through
    email or IM and helping me get to the point where I have a template
    FLA doing what I want to do, I'd be willing to pay you. It wouldn't
    be much, but it would be something. Here's what I'm trying to do:
    I need to create an interactive talking-head style flash
    presentation with a number of progressive download externally
    linked FLV files, playing in succession, supported by movie-clip
    text animations and supporting graphics which are triggered by cue
    points in the video. I also need a simple navigation menu linking
    to the FLV files. I've got some of this down already, namely, I've
    laid the FLVs in and they are playing in succession. I'm stuck on
    the cue point part. At this point I really just need some hands-on
    help. I've bought books, I've scoured the web.
    I'm easy to communicate with, and I'm good with computers and
    comfortable in many multimedia design programs. Flash is very
    powerful, but tougher to learn than I expected, and I'm at the end
    of my rope =P

    My advice... start with a very simple "proof of concept" project before you attempt the entire package.
    It will be much easier to scale up if you first have a very good understanding of what's going on.
    So one simple video with just one cuepoint and only one button and additional display. You'll also have to work out the interaction of pausing the video when a cuepoint is reached or button pushed to display the graph, giving the viewer time to read the graph... then when the viewer closes the graph, the video should "resume".
    Start very simple and build on that only after you understand the fundamentals.
    Second, you mention "video reports"... plural. So that most likely means that you will need a video player with a "playlist".
    This may mean that you'll need to learn to use a little .xml to bring in the playlist data. You may also find xml an excellant way to bring other data into you project.
    At the link listed above there is an excellant tutorial on "Integrating Flash and XML"
    "Flash and XML"
    "XML Video Playlist"
    "ActionScript 3 XML Basics"
    "ActionScript 3 Advanced XML"
    Personally I would not even begin a project like this without considering how I could use xml to feed data into the project.
    Here's an example of a video player I created that has a playlist, thumbnails, categories, transcipts, "Now Playing" etc. All that data comes into the main .swf via various xml files. Super good way in input data into Flash.
    http://www.drheimer.com/video/
    Yours is a rather ambitious project and will take awhile to gain the skill and assemble the pieces. So when you come to a new part... first create a real simple "proof of concept" model so you can learn how that section works. Don't expect to be able to assemble the entire project all at once.
    Best wishes,
    Adninjastrator

Maybe you are looking for

  • Iphone 4 is no longer recognized by my computer

    My iphone 4 isn't recognized by my computer.  When plugging it in, a message on PC states that my phone can't be used due to software not being installed.  It then prompts for a reinstallation of itunes to correct.  However, this doesn't resolve the

  • How can i convert an excel file for use in an ipad mini?

    I have 3 or 4 Excel files on my PC that I would like to keep for reference on my iPad Mini.  I would have to update the files on a weekly basis.  What's the best solution for this? Thank you.

  • Why does N97 charge from some USB port and some no...

    OK some seem to have same sort of troubles but I couldn't find an answer to this one... So I have a N97 that charges OK when I plug it in computers USB port or in a (powered) hub. But I also have a USB power adapter that I can plug in a wall socket a

  • Layout is not saved

    Hi SAP developers, I got the following problem: In an Interactive Forms I inserted some ui-elements which are invisible when the form is opened the first time. After the user makes some interaction then those ui-elements get visible. The problem now

  • LMSW or Excel macro...that is the question

    Hi all, I've written an interface that uploads planned independent requirements from a spreadsheet...couldn't have done it without the assistance of this forum of course...thank you!!! Now I've been handed a spreadsheet from a legacy system that cont