FLVPlayback with cue Points (2.0)

HI,
I'm new to working with cuePoints and listeners. i using
actionscript 2.0 and i want to make a video clip (called "video")
to stop playing and become invisible after playing for 30 seconds.
does anyone no a good cut and dry way to pull this off?
thanks.

Xero000,
> great. that will certainly do the trick.
> any suggestions on making use out of the 'complete()'
event?
> could i use that instead of having to hard code in the
milliseconds?
Sure. The events all work the same for FLVPlayback, so once
you get the
process, you'll be good.
var listener:Object = new Object();
listener.complete = function(evt:Object):Void {
video.stop();
video.visible = false;
video.addEventListener("complete", listener);
Still assuming an FLVPlayback instance name of "video," the
above should
do it. In AS2, there are at least four ways to handle events
-- much more
simplified in AS3 -- but the above shows how to do it for
FLVPlayback.
You need a generic Object instance, which you may as well
call
"listener," because it listens for the events. You'll assign
a function to
the complete event, which gets stored as a property of your
listener object.
The funtion, in this case, stops, the video and hides it.
Finally, you subscribe the complete event, and that listner
object, to
the FLVPlayback instance.
David Stiller
Co-author, Foundation Flash CS3 for Designers
http://tinyurl.com/2k29mj
"Luck is the residue of good design."

Similar Messages

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

  • Importing wav with cue points?

    I’m trying to import a WAV file with cue points and I
    get a “Director having trouble importing…” error
    message. I created the cue points in Sound Forge 9 using markers
    and save the file with meta data. From what I recall I should be
    able to simply import this file but Director (MX04) seems to be
    choking on the meta data (imports fine without cue points).
    I’ve been working with Director for over 10 years but lately
    it’s been mostly application development and not narrated
    multimedia, I feel like I’ve forgotten something very
    basic.

    Fixed it, sort of… Apparently by default Sound Forge
    doesn’t name the cue points at all and Director doesn’t
    like this (at least up to MX04, don’t know about 11). To
    create wav files with metadata that Director will read:
    In Sound Forge navigate to Options > Preferences >
    Labels.
    Check the box “label markers”, I also used the
    prefix and leading zero options
    Any new markers will now have labels
    For my present project I already had 83 cue points accurately
    positioned that I didn’t want to remake. In this case I
    renamed each cue point by hand, one at a time. Insanely tedious but
    better than marking the file again.

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

  • Exporting FLV With Cue Points In Adobe Premiere Pro CS5

    Hello
    I am currently using Adobe Premiere Pro CS5 to export to a FLV file with flash cue points. I have managed to do this but I also want to export (separately) a list of all the time codes of the cue points in the clip. I see that you can save the cue points to an xml file but it doesn't come up with the time codes (well it does, but it is in milliseconds and amongst other things). Is there any way I can save a list of the time codes of the cue points on my FLV file, rather than having to manually type it out?
    Thanks,
    Rvnistelrooy

    I don't think there is any easy way to do this, but one thing I could suggest is to export the metadata as an xml side car and then use the text editor to extract the times.  I'm not sure this would work, but it's worth a try.
    Cheers,
    Dennis

  • Problem with cue point from After Effects to Flash (CS5.5)

    Hello,
    anyone has, or has not problems reading, in Falsh, cue points included with After Effects? (Navigartion cue points).
    It is possible export from Flash movie in  .flv format? (Both versione CS5.5).
    Thank you.

    No I don't believe it's the footage, as I've been able to transfer the same files on my school computer and use it with ease.It's just any type of footage, if I attempt to drag any of my imported files (whether they're images of any kind or .mp4, .mov, .wav, .mp3) just as I would click and hold the file, my cursor turns into the Mac loading ball. Perhaps is there something these programs require such as Java? I'm not sure if it's related, but I've also not been able to play some games via Steam that I have been able to play in the past with the same system.

  • 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

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

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

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

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

  • 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 

  • 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

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

  • End of FLV advance? Cue points

    Hi there.
    Have been playing around with cue points in MX2004pro to get
    my swf movie to advance once the FLV that it loaded was at its end.
    However, MX2004pro gets really confused if you use the display
    component in instances in different scenes to call different videos
    with their own cue points. (you can delete them and then they just
    always exist when you're on the component again. No reference to
    the 2nd and 3rd component's action script for cue points in script
    editor etc.) Only got the first one to work and its cue points work
    fine, but the others are hopeless. Is there any other way to
    advance & play the timeline once a FLV reached its end apart
    from cue points?

    >>Is there any other way to advance & play the
    timeline once a FLV
    reached its end apart from cue points?
    Yes, you can use the onStatus event of the NetStream object
    to know when
    play has stopped.
    Dave

Maybe you are looking for

  • How do I get me mac pro to the original software it came with?

    When I loaded my Mac with my PC info I did it incorrectly. I want to start over, how do I wipe all the stuff I have done to it? Barbara

  • My sound won't work, how do i fix it if I've already tried the audio MIDI setup?

    So i plugged in a stereo system and when i unplugged it the sound won't work anymore unless it's plugged in? How do i fix it?

  • Mini display port wont work.

    I have bought an mini displayport to DVI adapter for my x1 Carbon, but when i plug it in the external display is just black. Do it need to some kind of special mini display adapter?  I have tryed to BIOS update, installed all the reqiuerd drivers and

  • Removing RAM from new Aluminum 24" iMac

    What's the best way to remove the RAM chips from the new aluminum 24" iMac? I had a leftover 256 MB chip that I installed for a total of 1.25 GB of RAM, but now I would like to go to 4 GB. The RAM is very snug in there, and I don't want to break or d

  • Calling a class from a servlet

    Hello, I have created this class for creating a connection pool, which I want to use in a web app with a bunch of servlets. My plan is to put this class in the classes folder with all my other classes (I hope that works). But first I am seeking an an