AS 2.0 FLV playback multi videos

I've set up FLV playback for one video, but need to allow
users to choose the next movie they want to view (non linear), as
well as allow them to click through each movie in a linear fashion.
Not sure what code to attach to buttons to:
1. Allow non-linear video playback
2. Allow the if/then/else option of going through each video
in a linear manner--thinking should attach code to fwd button
Code below, any help would be much appreciated! thx
//------NETCONNECTION SETUP--------------------
var nc:NetConnection = new NetConnection();
nc.connect(null);
//------NETSTREAM SETUP--------------------
var ns:NetStream = new NetStream(nc);
ns.onStatus = function(info) {
if(info.code == "NetStream.Play.Start") {
progressBar.onEnterFrame = videoUpdate;
ns.onMetaData = function(info) {
ns.duration = info.duration;
//------ATTACHING NETSTREAM--------------------
video.attachVideo(ns);
//------PLAYING EXTERNAL FLV--------
ns.play("sample pics.flv");

The person above is correct but assure you enter into component inspector, and change the the parameters of the component.

Similar Messages

  • FLV Playback repeats first second of video

    I'm having trouble fixing a problem with an flv playback issue. A main swf loads a child swf which preloads a movie. If the movie is preloading and you close the child swf with
         _global.lightBox = false;
         _global.nc.close();
         unloadMovieNum(2);
    The global variable lightBox is set to false so when the video is fully loaded it sees that lightBox is false and does not try to play. The global variable nc is the movie's netConnection. The problem occurs when you click to close the movie and then try to load the movie again. What happens is it stays on the preloader going from 1 to 99 over and over again while playing the first small bit of the movie's sound.
    I can give more information if needed, thank you for any help.
    Ed

    Have you tried using the MovieClipLoader class instead of unloadMovieNum?

  • FLV Playback Component - specifying an image before it plays

    I am using the FLV Playback Component to play a video.
    Instead of playing automatically, I want to be able to set an image
    (or a frame of the movie) to display and only play the movie after
    the user clicks the play button. I can't find anything anywhere to
    explain how to do this or a workaround for it. Can anyone point me
    in the right direction? thanks.

    Actually, I'm just trying to access the movie controls in the
    FLV Playback component, so I can adjust how the work.
    This does not work:
    this.movie.forward_mc.addEventListener(MouseEvent.MOUSE_DOWN,someFunction)
    Neither does this:
    MovieClip(this.movie).forward_mc.addEventListener(MouseEvent.MOUSE_DOWN,someFunction)

  • Stuttering flv playback issue- need help asap

    We need help asap. Have a project is due to deliver today (5/14).
    We have a video to go on a dvd-rom, live action with Motion Graphics behind.
    When output is done thru Projector the Motion Graphics stutter as they scroll.
    Here is more technical info:
    Stuttering flv playback issue:
    Prores 422 timeline 29.97fps 1280x720 output from fcp using current settings.
    Mov file is approx 7gb, plays relatively smooth on a mac pro with no raid.
    Frame by frame analysis shows all frames are present with no jumps tears or skips.
    Tried several output paths, programs and settings to create a smooth flv file to no avail.
    We adjusted data rates from 2k, 3.5k, 4k and 8k, no luck
    We adjusted keyframe rates from low to all frames, no luck.
    We tried cs3 flash encoder, cs5 media encoder, squeeze ect, same results.
    Playback in the flash projector seems to choke slightly no matter what we do.
    Have also posted in the Director Forum.
    Any help much appreciated!

    Here are a few ideas off the top of my head:
    Try playing the file using a different xtra, sometimes different ones will work better.  If you have Director 11.5, there is a native flv playback xtra.
    You can build a player easily in Flash using the flvPlayback component, then bring that into Director as a swf.
    Once you have the video in Director, try making the member Direct To Stage (DTS).  If it is already DTS, try making it not DTS.
    Make sure the video is not transparent, and nothing in Director overlaps the video... in fact, when the video is playing, nothing should be moving at all, and try to keep the amount of code that is running to a minimum.
    Try lowering your video's data rate further or try using a different codec.
    Using VBR (Variable Bit Rate) compression often makes the video appear to play smoother.
    Try compressing the flv with different software.  FFMpeg, for example, is free and does a very good job, often better than the Flash Video Encoder that comes with Flash/Creative Suite.

  • How do you make the black area in an FLV playback white or transparent

    Trying to make the FLV playback black area white or
    transparent, because there is a black flash that shows up when play
    the movie. I am trying to alleviate this by changing the black area
    to another color or alpha.

    In your publish settings, click on the HTML tab and look for
    a field entitled 'Window Mode'. One of the choices is 'Transparent
    Windowless'. This should work if you have objects that don't have
    backgrounds. If you are looking to make video transparent, so far
    in my experience, the only video I have been able to make this work
    with is a Quicktime Animation with the RGB + Alpha. Also, when you
    import your video to the stage, make sure to click on the 'Encode
    Alpha Channel' box. That will give you the transparency you're
    looking for.

  • Auto/Hide with Flv playback doesn't work with javascript lightbox, need help?

    Hi everyone,
    i created some swf loading a flv file in a flv playback and
    check on the auto/hide parameter. When i test the movie it works
    very well. BUT, in my website, i put those swf files in Lightbox
    (javascript computed) and when the mouse goes Over the flash video,
    it shows the Skin player and when the mouse goes Out, the Skin
    player stays over the video!? Why? Does someone has an idea on how
    to force the auto/hide paramater in this case?
    Thanks for your help
    Orlenka

    Found this post when searching for an answer, but didn't find much elsewhere so I'll post my quick and ugly solution here. I'm sure it can be vastly improved, but I didn't have much more than 5 minutes. Note - setting .visible to false just ended up causing the autohide transition to occur over and over, so instead I'm just temporarily moving the whole sprite offscreen.
    (AS3, using CS5 component... note that 'player' is the FLVPlayback instance):
    //### force 'autohide' when mouse inactive
    var timer:Timer = new Timer(1500, 0);
    timer.addEventListener(TimerEvent.TIMER, onTimer);
    timer.start();
    var skinSprite:DisplayObject;
    var prevMouseX:Number;
    var prevMouseY:Number;
    function onTimer(e:TimerEvent):void {
      //get skinSprite if we haven't already
      if(!skinSprite) {
        var child:DisplayObject;
        for(var i:Number = 0; i < player.numChildren; i++) {
          child = player.getChildAt(i);
          if(i == 2) { //this is the skinSprite
            skinSprite = child;
      //check to see if mouse hasn't moved since last timer event
      if(skinSprite && mouseX == prevMouseX && mouseY == prevMouseY) {
        skinSprite.y = -1000;
      prevMouseX = mouseX;
      prevMouseY = mouseY;
    stage.addEventListener(MouseEvent.MOUSE_MOVE, stage_onMouseMove);
    function stage_onMouseMove(e:MouseEvent):void {
      if(skinSprite) {
        skinSprite.y = 0;

  • Best method for flv playback in flash 8

    group,
    i am currently trying to get to grips with flv playback with
    flash 8. i have come across a number of methods for flv playback
    within flash 8 and am curious to know the difference between
    methods and ultimately if there is such a difference discover which
    is best. I have had a few issues with some methods and was
    wondering if it was because that method sucks.
    In particular i am looking for the best method for allowing
    custom skinning of the player with the ability to have a player
    somewhere on stage without it being stapled to the darn flv file.
    METHOD1:
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    theVideo.attachVideo(ns);
    ns.play("testmovie.flv");
    METHOD2:
    import mx.video.*;
    this.attachMovie("FLVPlayback", "my_FLVPlybk", 10,
    {_width:360,_height:240,x:0, y:0});
    my_FLVPlybk.skin = "SteelExternalAll.swf"
    my_FLVPlybk.contentPath = "testmovie.flv";
    my_FLVPlybk.autoSize=true;
    my_FLVPlybk.autoPlay=false;
    what are the differences??
    any help would be much appreciated. Thanks for your time and
    expertises,
    Flash fan.

    Adobe has announced that it has ceased development of Flash for mobile phones (in favour of HTML5, and due to the opposition of both Apple and Microsoft to allow support of Flash for their mobile operating systems), so from that direction neither Microsoft nor Nokia is going to get any help.
    If the Adobe Flash Video format specification is publicly available to use or to license (I don't know if it is), then at least Microsoft could implement support for it, if they wanted to (Nokia might not have sufficient rights from Microsoft to add new codecs to Windows Phone).
    So, you might direct your question primarily to Microsoft, rather than Nokia (of course, a Microsoft representative will probably read this, too, but whether they'll response or not is another matter).

  • How to create a multi video player with iMovie

    Hey folks, I have a great wee QT player for my daughter's website which was generated for me by iMovie export. Lovely.
    But- folk are wanting to see more videos of her singing.
    Question- how to generate a multi-video player using the same principles (and same simple design)? One like those generated by YouTube's facility to create a list of videos to appear in a single player, or where it is possible to just click a "next" tab? Here is the page I am referring to: http://www.brigidmhairi.com/music.html
    Just to clarify- I am not wanting to use the YouTube player because it is a bit fussy and doesn't look right on the site in mind. The QT one has no borders etc and therefore suits me better. Besides- the 320 format is perfect.
    Hope someone can help me, thank you SO much.

    MacBraveheart wrote:
    .. how to generate a multi-video player using the same principles (and same simple design)? .. Here is the page I am referring to: http://www.brigidmhairi.com/music.html..
    Hope someone can help me, ..
    Hi HighlanderIn ..
    who else than me.. ?
    this is no iMovie related question.. that is
    a) html/CSS-coding or
    b) some flash-app
    read out the code on your linked website ... :
    <embed type="application/x-shockwave-flash" src="http://cache.reverbnation.com/widgets/swf/33/videogallerywidget.swf
    pageobject_id=artistxxx bla bla bla /><br/>
    <a href="http://www.reverbnation.com/main/artist_feature/widgets">
    bla bla bla ..
    </noscript>
    .. going to that website reverbnation.com, it looks like they offer, as YT, a video-hosting service plus that 'special' player as a flash-code you can embed in your website (as the YTplayer) ..
    so, here are your options:
    • use this service.. costs? no idea, research on your own ..
    • use flash, encode yourself.. perhaps, you can find some 'ready made' coding?
    • *what website-maker do you use?* iWeb offers a template for videos.. many on one preview-page, 'click' creates a bigger version for playback ..
    .. as mentioned: less iMovie, more 'website creation' ..

  • Imovie to Quicktime to FLV = poor quality video...how to improve

    I finally have a system down for getting video footage from Imovie onto my site:
    1.From Imovie Export using Quick time.
    2.W/ FLV crunch converter software Convert file into FLV.
    3.Insert FLV onto page and upload.
    The good news is this works, the bad news is the quality of  video is very poor. Any ideas on how I could improve the video quality?

    When you are talking "Quality" you are basically talking about the amount of incoming data required for one set display size... that's the video bitrate (the minimum amount of data flowing into the video player to continue the display uninterupted).
    If you are using the same bitrate as shown in your first image, "256kbps" and a display of "352 x 288 px", you are on the very low end of producing high quality... that bitrate at that size is more like medium quality. And then if the actual display size is increased on the web page at all, the quality will only degrade further. and you will never improve the quality with successive "converting" you'll only degrade it.
    If you do have to "convert" to a different file format, be sure to render the starting file at no less than double the bitrate that you want to finish with. So for example, if you must "convert" a file and you plan to use a 750kbps final video bitrate, you must start with at least a 1500kbps video, (even 5 or 6 times that is better) so that you have a plenty of extra data, which will get destroyed during the "convertion" process.
    Here is a little background info on bitrate as it relates to display size:
    Video bit rate
    One of the principle of goal setting is to "Begin with the end in mind". In this case it'll be very hard to give good recommendations because the end is not defined. So I'll just make a few assumptions and you can correct me as needed.
    First, I'll assume that since you are converting to Flash, you want to deliver this video over the Internet. If that's true, then we'll have to make some assumptions on the Internet connection download speeds of your potential viewers. Let's just say that most have at least a 1.5Mb connection or faster.
    OK, that would mean that a video bitrate of half that should usually provide a video download that is not interupped by buffering (most of the time anyway). So assuming a video bitrate of 750kbps, what would the optimum display dimensions be?
    Before we decide, here's a little info about bitrate. For highest quality playback, the video bitrate is tied directly to the display dimensions. That is, the larger the display, the more incoming data is required to properly display the video. Think of bitrate in terms of a can of paint. If you have 1 quart of paint, you might be able to do a very nice job on a 32 X 24 foot area. But if you try to stretch that same amount of paint out over a 64 X 48 foot area, the coverage will not be nearly as good and you get poor results.
    In the same way, a video displayed at 640 X 480 pixels will require 4 times the bitrate as a video displayed at 320 X 240 pixels to produce the same quality. So for example a video with a bitrate of 100kbps, displayed at 160 X 120 will produce the same quality results as a video with a bitrate of 1600kbps if displayed at 640 X 480.
    So to boil it all down, video bitrates of 750kbps, even up to 1000kbps can usually get delivered of the Internet on most high speed connections. Higher bit rates may work for really fast connections but will cause problems for viewers with slower connections. Video display size has a direct bearing on the final quality. In the 750 to 1000kbps range, display size should be kept around 450 or 500 width max (and whatever height the aspect ratio calls for). Yes it can be displayed larger, but the quality will suffer.
    Sound like your audio settings are fine, especially for Internet delivery.
    As for framerate, maintain the original raw video framerate for best results. So if the video was shot at 24fps, leave it.
    As for video converters, do you have the Flash 8 Video Converter? It works just fine for video to be delivered over the Internet. Remember, you are taking a Cadillac version of video (h.264 HD) and stuffing it into a Chevy body to get it to work over the Internet.
    Best wishes,
    Adninjastrator

  • AJAX and Actionscript to Control FLV Playback Skin

    I have AJAX running on an application that opens up a new panel displaying a flash video. The flash video uses one of the FLV Playback skins. When I play the video on the panel, everything is fine. But, when I close the panel with the javascript-enabled button, the video would still play even though the panel and video are "gone" from the html page.
    I was looking into using javascript to talk to actionscript to control the FLV Playback skin's stop function so that when the close panel function is activated, the video play's stop function would be called. How do I find out the path to and the name of the stop function inside the playback skin? Is it possible to call the stop function inside the FLV Playback skin? Or, would it be easier to create my own video controller?
    I hope this is clear. Any help is appreciated. Thanks.

    I don't clear your questions
    Regards,
    nha khoa
    nhua
    gia cong
    nhua
    gia cong chi
    tiet
    khuon mau
    thiet ke web
    do dung cho be

  • H.264 end loaded MOOV ATOM in f4v or flv playback

    I'd like to know that if I wrap H.264 video that has the MOOV ATOM located at the end inside an F4V or FLV file, can playback start before the MOOV ATOM is loaded (ie. before the file is completely read)?
    I've been trying for several months to get someone to MOOV the ATOM to the front so playback of our videos will start playing sooner. I'd like to confirm/unconfirm this question.
    Also, the videos are continually generated by our embedded system, so running an after-the-fact app. is not under consideration.
    Thanks in advance!
    G

    Well, unfortunately Flash was the universal format, and then Steve Jobs decided that he did not like Adobe. As most browsers on Earth were FLV playback enabled and if not, were only a quick, free download away. Now, it seems that Apple's devices will only work with flavors of MOV. One can still download and install Apple's QT Player (though several recent versions did not work well with Adobe programs - Steve Jobs sabotage?).
    Instead of coming together on universal formats/CODEC's, it seems that many wish to fragment the market to support just their products. One is at the mercy of these hardware and software companies. Producers probably should now do several versions of everything, if they wish to cover all bases. Someone will have to download and install something.
    Good luck,
    Hunt

  • How can I connect my iMac to a TV for playback of videos? My TV does not have HDMI.

    How can I connect my iMac to a TV for playback of videos? My TV does not have HDMI.

    You need to find out what video out you have on your iMac, and what kind of video inputs there are on your TV.
    It will help to know exactly what model iMac and exactly what make/model TV you have.
    Depending on the exact model iMac you have, it may have miniVGA, miniDVI, miniDisplayPort or Thunderbolt output.  Your TV may have composite, S-video, component, DVI, VGA or HDMI inputs.  Once you confirm what kind of ports your iMac and TV have, then we can probably suggest the correct cable or adapter so you can connect them to each other.

  • Multi Video Icon Not Showing Up

    I am hopping someone will have some advice for me. I am unable to partake in multi video chat conferences. One on one works great. The icon for multi video chat does not show up and I am unable to be invited into a muliti video chat.
    I am not running any apps in the background that would be using up bandwidth. I have read the help and FAQ and I think I have done everything suggested to address the matter. Nothing I have currently tried has made a difference.
    Any Suggestions?

    Hello Youseph
    Welcome to Apple Discussions.
    Have you seen Help for iChat AV 3 Problems?
    If you never used iChat before upgrading to Tiger, have you tried the suggestions applicable to your system in Using iSight with iChat AV? Particularly, try the wireless trouble shooting suggestions there if you do not get your problem solved before you get that far.
    EZ Jim

  • Flash 8 pro flv playback behaviors

    Could someone show me where I can get the FLV playback
    component behaviors
    for flash 8 pro? I couldn't find them on the Adobe exchange.
    Thanks
    -mark

    I got them, thanks.
    > That came from here
    >
    http://www.adobe.com/devnet/flash/articles/flvplayback_behaviors.html

  • What QT7 settings do I use to export a 1080p video for playback on iPhone4? I'm using the iPhone to playback 1080p video on 1080p monitor. Is this possible?

    Does anyone know what settings I should use to export a 1080p video for playback on iPhone4? I'm hoping to use the iPhone4 to playback 1080p video on 1080p monitor. Is this possible?
    I have previously saved my .mov file as Apple TV, but the quality is reduced from 1920x1080 to 960x540. I was unable to sync the higher quality file to my phone (and am worried this is the limitation of the hardware). I added this file to iTunes, added to a playlist, and sync'd to my iPhone. The playback works but the resolution is obviously a lower quality.Is it possible to keep the higher quality for playback through a 1920x1080 hd monitor?  Otherwise, would I be able to sync a 1920x1080 mov file to a new iPad or other device? Thanks in advance to your answers.

    Does anyone know what settings I should use to export a 1080p video for playback on iPhone4? I'm hoping to use the iPhone4 to playback 1080p video on 1080p monitor. Is this possible?
    No. Only the iPhone 4S, iPad3, and TV3 currently support 1080p30 content. Even then the 1080p30 playback support for your monitor may depend on how the device is connected. The iPhone 4 is limited to 720p30 playback.
    Is it possible to keep the higher quality for playback through a 1920x1080 hd monitor?  Otherwise, would I be able to sync a 1920x1080 mov file to a new iPad or other device?
    Not on your current device. As previously stated, the latest generation of iPhone, iPad, and TV devices support a maximum 1080p30 playback capability but may be limited to lower resdolutions depending on your method of connection to your monitor. This information can be found on the Apple web site TechSpecs page for each respective device.

Maybe you are looking for

  • Using ipod on multiple pc computers ? help

    hi i have been using it on my pc for 3 months or so and decided i would like to play it on another computer - also a pc but all i get is this messege trying to convince me to delete all the files and assign my ipod to the new itunes library. whats wr

  • I can't find the Pages application

    i have already bought Pages as an app on my ipad and have now bought a macbook air. I went onto the apple store and downloaded the Pages app for mac's but now can't find the app even when i search for it, just the individual documents from my pages a

  • Macbook slower after upgrading to Mavericks

    Hello, I'm owner of a Macbook Pro MD322LL/A and I haven't had any issues with Lion (the OS that came with) but after upgrading to Mavericks it changed a lot: Lower performance. Transitions in the launchpad are laggy (and also buggy). Start up time in

  • F command causes crash

    Sometimes when I use the F-command (Find) (on a Mac) it causes a crash. I get this message: [/ppro722/releases/2013.10/shared/adobe/MediaCore/MediaLayer/VideoRenderer/Make/Mac/../../ Src/RenderFrameRequest.cpp-200] Does anyone what´s causes this?

  • FlexBuilder3 Eclipse Plugin - Plans to support Eclipse 3.5?

    Are there any plans to support the FlexBuilder3 Plugin for Eclipse version 3.5? If so, is there any ETA? Thanks!