Control FLV Playback with separate SWF

So, I have an HTML file with three Iframes. Just know that
due to the nature of my project I need to use iframes. Basically,
in one iframe is a bar with playback controls. play, pause, stop.
In a second iframe is a video, in a third iframe is a you tube
style panel that allows you to select different videos to watch. I
need to control the video in iframe A with the controls in iframe
B. If using iframes makes this solution untenable, a solution sans
iframes is welcome.
Is this possible? and if so, could someone direct me to some
resources?
I know a tad of actions script, and a decent amount of
javascript, so I'm not a script expert by any means, but I
understand the language enough to be functional.
Thanks
luke

BTW, I realize that this will require the use of Local
Connection Objects, as I have found some useful tutorials on the
subject, but modifying them for my flvPlayback purposes has proven
difficult due to my inexperience with action script.
So, again, thanks in advance.
Luke

Similar Messages

  • Control FLV playback with button on different timeline

    I have an FLVPlayback instance on my stage within a movie
    clip within a movie clip eg.
    _root.showreel_mc.showreelHolder.showreel (where showreel is
    the instance name given to the FLV component itself)
    I already have a button that fades out showreel_mc in order
    to fade other content in but I also need it to pause the FLV so it
    doesn't keep playing in the background. I've tried this...
    _root.showreel_mc.showreelHolder.showreel.pause()
    But it doesn't work - anyone got any ideas? I'm using
    Actionscript 2.0.
    Cheers!

    I found the option to sync with rest of project under the options tab and this solved my problem.

  • Control and playback of AS2 SWF playing in AS3 SWF?

    Hi,
    I have a rather interesting techincal question:
    1. For starters I have a main flash movie which was developed
    using AS3 code. It is a video player type flash movie set up to
    play SWF files including 4 selectable SWF segments.
    2. However I have received the 4 existing SWF files from the
    client which were developed using AS2. Most likely they will not be
    able to provide original FLA files because another company has
    created the SWF presentations long time ago.
    Can I load and control the playback of the external AS2 coded
    SWF files in the main AS3 coded environment? And I mean having
    complete access to it? (not just fast forward, pause, stop but also
    communicate with it)
    Thanks,
    Attila

    You can use gSkinner's SWFBridge located here:
    http://www.gskinner.com/blog/archives/2007/07/swfbridge_easie.html

  • 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

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

  • Controlling FLV and SWF scrubbing at the same time

    I have a flash project with an imported swf animation and an
    imported flv video. So far I have made a play and pause button that
    can play and pause both objects at the same time. Is there way to
    make a scrub bar that can control scrubbing through both objects at
    the same time.
    The FLV and the SWF are the same length and all the
    animations in the SWF file are timed to a separate audio file from
    the flv I am using so when the flash file is play without any
    controls, the swf and the flv play n sync. I have been able to make
    separate scrub bars that control the video and the swf separately
    but when ever I try to combine the code it does not seem to work.
    Does anyone have any suggestions on how to do this starting from
    scratch?
    for reference:
    my video instance name is : myVideo
    my swf instance name is: mySwf

    Ngarraud,
    Try this:
    *Multicast Rate / Transmit Power*
    Launch Airport Utility.
    Select your Time Capsule on the left.
    Click "Manual Setup".
    Select "Airport" from the toolbar at the top.
    Click the "Wireless" tab.
    Click the "Wireless Options..." button.
    Check the setting for "Multicast Rate".
    This setting controls the range at which you allow devices to access your network. Lower is better if you want access throughout the house. But this setting won't improve speed. Tesserax has a nice explanation of this setting in the following quote:
    +"The Multicast Rate option sets the threshold throughput level a wireless client must obtain in order to be "accepted" by the base station. The lower this value, theoretically, the greater number of clients that can connect, especially those at greater distances from the base station. At the opposite end, the higher this number, only those wireless clients that can achieve the higher throughput value will be able to connect.+ [http://discussions.apple.com/thread.jspa?messageID=6736587]
    Next, verify that your "Transmit Power: is set to 100%.
    *Interference Robustness / Use Wide Channels*
    Finally, ensure that "Interference Robustness" is checked (For certain network configurations this setting will say "Use Wide Channels. Verify that it is checked nonetheless.)
    Help Doc states: +"You may experience network performance problems if a microwave oven or other source of interference is used frequently near your base station or Time Capsule. To help minimize interference, turn on interference robustness."+
    Let us know if this was helpful.
    Cheers!

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

  • Control 2 flv movies with one button

    Hello,
    I am not even sure this can be done, but I am trying to
    control 2 flv's with one set of controls. The reason; We have
    footage of a talking head as one flv and footage of a microscope.
    Basically, the guy talks and moves the microscope around. These 2
    flv's have to be synched b/c the guy is talking and showing how
    things look under a microscope (the original footage was shot at
    the same time using 2 different methods - I imported both in
    Flash). So, my quandry is that I need one set of controls for both
    these flv's b/c if you pause the talking head, you also have to
    pause the scope. I tried to make both flv's a movie clip and
    control them that way, but got no where with that. I also tried to
    build my own skin with a Play and Pause Button for now, but only
    got as far as the code below. Basically, I can control one flv
    component, but not both at the same time. Any ideas would help - I
    am not sure if this is an AS issue, or a complete design issue, or
    if it can even be done at all - thanks much in advance...
    Jason

    I have discovered that what I wanted to do above is not possible in Livecycle. The only thing that works in the Livecycle script editor is the xfa.host.print from what I found.
    I was able to add a print button to a form that I scanned in that enabled me to print at 2 different printers at the same time. What I did was to first set up a mouse up action to execute a menu item (file>print) and then I added a second mouse up action to run the JavaScript below
    var pp = this.getPrintParams();
    pp.interactive = pp.constants.interactionLevel.automatic;
    pp.printerName = "\\\\DPDSVR\\Xerox WorkCentre 7435 PCL6";
    this.print(pp);
    This resulted in me being able to print to my default printer (HP) and the Xerox with just one click of the button.

  • Control swf from separate swf in main file

    Im loading 2 swfs into my main swf. So I have a top swf and a
    bottom swf being loaded in externally into my main swf that makes 3
    swfs, 1MAIN swf loading TOP swf & BOTTOM swf.
    Is there a way to have the bottom swf control or command the
    top swf? I need a button on in the bottom swf to tell the top swf
    to load a movie.

    in AS2 you can point directly from one to the other with the
    correct pathing.
    IE:
    _level0.TopSwfLoader.content.FunctionToCall();
    or
    _level0.TopSwfLoader.content.Property = NewPropertyValue;
    _level0 takes you to the main swf (_root, but this works
    around if lockroot is set)
    TopSwfLoader.content is the content of the Loader component
    that has your Top.swf loaded into it. If you are not using a Loader
    component, then you can change this to the instance name of the
    Movie Clip that has the swf loaded into it.
    FunctionToCall()/Property is what you want to control. Either
    a function call or a property.
    In AS3 this works a bit differently. I would dispatch a
    custom event from the Bottom swf. Then the main swf would catch
    that event, and call the appropriate function/property in the top
    swf. I can elaborate more on this if you need.

  • I am experiencing choppy playback with converted .flv video file?

    I have just reinstalled a fresh copy of Windows XP Pro and then installed CS4. I have updated the suite and tried converting my first .avi file. I was told in a previous post that I should not use K-lite Codec pack with Pr Pro, so I tried using the Adobe Media Encoder included in the CS4 package. It took the media encoder a better part of an hour to covert Beerfest from an .avi file to a .flv file. I was hoping this would allow for a better quality playback, Unfortunately it did not work. During playback with no edits or cuts of any kind, I still experience huge sync problems with the audio and the video. I heard there is a way to use you GPU to accelerate the speed of Pr. Can someone please help me configure my system if that is possible?
    Should I use a third party encoder or codec? IF so which one? Is there a general setup guide or tutorial that I can review so I can make sure all my settings are correct, for playing and editing .avi files?  Once I import an .avi file into a sequence, is there something more I should do before I begin to edit and playback?
    If anyone could help me get started I would be very appreciative.
    My System
    AMD Anthlon 64 X2
    6400 3.2 GHZ (OverClocked to 3.42Ghz)
    8GB G-skill SDRAM (3.25GB recognized by XP Pro)c
    Nividia 8800GT Video Card
    OS Windows XP Pro SP3

    I was told in a previous post that I should not use K-lite Codec pack with Pr Pro
    This was good advice. K-Lite, though one of the more benign CODEC "packs," has still caused many users all sorts of grief.
    Along with the answer to Jeff's question, please let us know the complete specs. on your Export. It could be something simple there.
    Good luck,
    Hunt

  • 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 to playback an embedded swf in a Captivate project

    Hello,
    I generated a swf file from one captivate project and am embedding it into another.  When I play back the slide that has the imported animation the playback from the slide and the imported swf are different.  If I pause the main slide playback the swf continues and vice versa.  How do I get the playback of the imported swf file to be controlled by the main playback controls?  I am using Cpativate 4.
    Thank you in advance

    Hi there
    I'm hoping one of the Captivate team members picks up on this one and either confirms or denys my findings.
    It is my understanding that one cannot control the other. Likely you may want to simply insert a Click Box or Button on the slide with the SWF and allow the user to move on when they are ready after having interacted with the SWF.
    You may wish to experiment with the properties of the embedded SWF. There is an option called "Synchronize with project". But I'm doubtful it will work to accomplish what you want. I think what this option does is to ensure that if the timing of the slide is different than the SWF inside, it will play the SWF in its entirety.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Controlling multiple movies with one button

    Hi flash gurus,
    I have 4 movies of the same length running on my stage in the
    FLV playback component, with different instance names. I also have
    a single play/pause component. I want all of the movies to play
    together and unpause/pause when I press the play/pause button.
    However, I have only been able to get the play/pause button to
    control one of the movies (the last one listed in the
    actionscript). I'm using the following code to attach the
    play/pause component to the FLV playback movie:
    FLV_instance_name1.playPauseButton = PlayPause_instance_name
    FLV_instance_name2.playPauseButton = PlayPause_instance_name
    FLV_instance_name3.playPauseButton = PlayPause_instance_name
    FLV_instance_name4.playPauseButton = PlayPause_instance_name
    When I use this, the play/pause button only controls the
    FLV_instance_name4 movie. How do I get it to control all 4 moives?
    Any help is much appreciated. Thanks!

    PS, I'd also prefer for the controls to be detatched from any of the viewers, if possible. Thanks!

  • CP5 Project with inserted SWF animations

    We have a CP5 project with SWF Animations inserted on the slide.  The narration for the slide is on the CP5 project.  Is there a way to tell the SWF animation to pause is a student pauses the CP5 project?  I'm thinking some advanced action.  Also if they select the pause button on the SWF animation the animation's screen goes blue until the project advances to the next slide.
    As always thanks in advance for any help/ideas.
    Susan

    You won't be able to control the SWF playback with Advanced Actions in Captivate.  They're a bit limited in that respect.
    If you have access to an ActionScript developer, they might be able to create a solution for you.  AS3 is much more powerful than Advanced Actions.
    Your query seems to suggest that you have tried inserting these SWF animations in your project already and that there is a "pause button" on the SWF.  In most SWF animations that I've created in Flash and inserted into Captivate projects, the pause button on the main project also pauses the animation at the same time.
    So if your SWF is NOT pausing, it might be something to do with the way it was created.  Were these SWFs created in Flash or some other application?

  • Controlling flash presentation with voice over and animation

    Hi everyone,
    I have a project coming up where I will have voice over to
    explain some animation that will appear on stage. It is basically a
    explanation of what a company does, services they offer...etc.
    Can anyone point me in the right direction on where to start
    something like this? So that my final project has a prev, next,
    stop, play, pause buttons and all of these affect the animations
    and voice overs. I suggested to make this on video and bring it
    into flash using a video player, but they want it to be into a
    single SWF to put on their website.
    Any help would be great!
    Thank you,
    Rafa.

    kglad,
    That is what I ended up doing after posting. I made a little
    demo for my client showing him how well it was running as an FLV
    and mentioned the possibility of losing sync if we went the other
    way.
    They were not to impress with the default player controls
    that come with flash. Do you know of any good tutorials on building
    custom controls (scrub bar, play/pause, prev, next...etc)?
    thank you,
    Rafa.

Maybe you are looking for