How to recognize FLVPlayback Component

Publish to Flash 8 and using the FLVPlayback component as part of a larger elearning course.
We have a legacy pause button that works by recursively looking through every item on stage and if the item is a movieclip following its children and so on. Something like this (there is more to the whole thing, but this is where the problem is):
findCurrent = function (obj)
// RECURSIVE SEARCH FOR MOVIECLIPS
for (var i in obj) {
  if (typeof (obj[i]) == "movieclip" && obj[i] != obj) {
   if (obj[i]._name == "pauser"{
    continue;
   var m = obj[i];
   m.frameWas = m._currentFrame;
   isCurrent.push(m);
   findCurrent(m);
The issue is that when using the FLVPlayback component the 256 recursions limit is reached. I'm guessing that the video part contains a reference to playback controls skin and the playback controls skin contains a reference to the video part and the recursion just goes round and round till it hits the limit and then all actionscript is disabled for the rest of the file.
I thought of adding a counter, and that is probabaly a good idea, but I was wondering if there is anyway to identify that I've hit a video player and stop following it?
Obviously the topeof(myVideoPlayer) is coming back as "movieclip" or I wouldn't be getting this problem. I don't think there is a getQualifiedName for AS2, right? I looked at the properties and couldn't find one that said, "clearlyVideoPlayer."
So does anybody else have any suggestions?

if you don't have other components/movieclips (that use boundingBox_mc):
findCurrent = function (obj) {
    // RECURSIVE SEARCH FOR MOVIECLIPS
    for (var i in obj) {
        if (typeof (obj[i]) == "movieclip" && obj[i]._parent==obj) {
            if(i=="boundingBox_mc"){
                findPauseF(obj);
                abortSearch=true;
            if(!abortSearch){
                findCurrent(obj[i]);
function findPauseF(flv:MovieClip){
    // do whatever with flv

Similar Messages

  • How to play recorded videos using FLVPlayback component?

    Hey Guys,
         I recorded videos using fms and i want to play them using FLVPlayback component. I've done some research but i cant find something
    useful, I tried this code :
         flvplayback.source = "rtmp://localhost/appname/instancename/video";
         this code is not working. Am i doing it wrong or something? Can anyone please point me on the right direction!
        Thanks in advance!
    Randy

    You may like to use this tutorial for your purpose:
    http://en.wikibooks.org/wiki/Beginner's_Guide_to_Adobe_Flash/Video/Using_The_FLVPlayback_C omponent
    Here, in the content path you need to put your URL, also make sure that the instance name exist and provide the FLV extension in the url.
    Hope that will help you.

  • Need to stop playback of an FLVPlayback component when navigate away from page!

    I have an movieclip playing as auto start on the first page of my website.  The component continues to play when I navigate away from the page.  How can I stop the playback of the movie if it has not completed when navigation away from the page is invoked.  I have search and am unable to find such an event using an FLVPlayback component.  Presently there is no code in actionscript to display here.
    thanks

    Hi, this is the entire code that is placed on the timeline in frame 1 of the AS line.  There is now an error and the FLVPlayer component, which is also begin in frame 1. At this point there is one method that I thought should work when the vTinesDayBtn is clicked.  However, is not.
    The error is:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at ewddSite_fla::MainTimeline/vTines()
    ArgumentError: Error #1063: Argument count mismatch on ewddSite_fla::MainTimeline/stoppedVid(). Expected 0, got 1.
    The code is:
    stop();
    import flash.events.*;
    import flash.display.*;
    import fl.video.*;
    import fl.video.FLVPlayback;
    function stoppedVid() {
      vidPlay.stop();
    vTinesDayBtn.addEventListener(MouseEvent.CLICK, stoppedVid)
    function vTines(evt:MouseEvent):void {
    gotoAndStop(20);
    vidPlay.stop();
    function engagements(evt:MouseEvent):void {
    gotoAndStop(25);
    function weddings(evt:MouseEvent):void {
    gotoAndStop(30);
    function births(evt:MouseEvent):void {
    gotoAndStop(35);
    function birthdays(evt:MouseEvent):void {
    gotoAndStop(40);
    function graduations(evt:MouseEvent):void {
    gotoAndStop(45);
    function anniversaries(evt:MouseEvent):void {
    gotoAndStop(50);
    function specEvents(evt:MouseEvent):void {
    gotoAndStop(55);
    function memorials(evt:MouseEvent):void {
    gotoAndStop(60);
    //main.addEventListener(MouseEvent.MOUSE_DOWN, mainPg);
    vTinesDayBtn.addEventListener(MouseEvent.MOUSE_DOWN, vTines);
    engageBtn.addEventListener(MouseEvent.MOUSE_DOWN, engagements);
    weddingsBtn.addEventListener(MouseEvent.MOUSE_DOWN, weddings);
    birthsBtn.addEventListener(MouseEvent.MOUSE_DOWN, births);
    bDaysBtn.addEventListener(MouseEvent.MOUSE_DOWN, birthdays);
    graduBtn.addEventListener(MouseEvent.MOUSE_DOWN, graduations);
    annivBtn.addEventListener(MouseEvent.MOUSE_DOWN, anniversaries);
    spEventsBtn.addEventListener(MouseEvent.MOUSE_DOWN, specEvents);
    memorialsBtn.addEventListener(MouseEvent.MOUSE_DOWN, memorials);

  • How To Remove FLVPlayback Video on Scene with Audio

    I was trying to add a video for playback to be used in my Scene on Flash Professional CC. I imported the video and added it to my library, before adding it to my scene frame. My plan was to use the video and have its audio play in the background, while my Scene was running in the foreground. So I followed "Test Movie", then clicked on "In Flash Professional". I managed to have the Scene run in the foreground multiple times, while the video's audio was running in the background.
    However, while editing my scene and my video, I accidentally added the FLVPlayback component to my frame. I clicked on "Window", then clicked on "Components", and opened the "Components" window. I then dragged "FLVPlayback" from the "Video" folder, onto my Scene frame. Now, whenever I  follow "Test [my] Movie", my scene shows in the foreground while the video, that is, its image, graphics and audio, at the same time, run in the background.
    I want to get read of the "FLVPlayback" component so that I can get rid of the image and graphics running in the background when I "Test [my] Movie". I tried to reset my settings by clicking Ctrl+Alt+Shift and selecting my taskbar icon at the same time. I went through the whole process of restoring the default settings but it did not work.
    Can anyone help? By the way I am using the Flash Professional CC Trial Version.

    If you did a bunch of changes the only way to get back to how you had it before is to manually undo what you did yourself.
    To get rid of the FLVPlayback component just select it on the stage if it's there and press delete. Then in the library select the component and its skin folders and delete those as well. You should then just have your video in the library and any other assets you imported yourself. Then you can place the video back on the timeline if that's how you'd like to play it.

  • Remove sound in FLVplayback component?

    How do you remove the sound from "specifically" from FLVplayback component? Since the sound wont stop playing when I'm on different page(assume that if the person didnt click the pause button and navigate to other pages)....Normally I would add SoundMixer.stopAll(); for every button in my main and loaded swf but this will stop my background music as well....
    The flvplayback component is located in another swf file and the code was added on the second frame of the movieclip call "scrollGroup"
    import fl.video.FLVPlayback;
    import flash.events.Event;
    var flvPlayback:FLVPlayback = new FLVPlayback();
    flvPlayback.fullScreenTakeOver = false;
    flvPlayback.autoPlay = false;
    flvPlayback.source = "video/Listening_to_Community_Voices.f4v";
    flvPlayback.skin = "MinimaFlatCustomColorPlayBackSeekCounterVolMuteFull.swf";
    flvPlayback.x = 31;
    flvPlayback.y = 123.8;
    addChild(flvPlayback);

    http://forums.adobe.com/message/2587415?tstart=0

  • FLVPlayback Component video and skin as one swf

    Is it possible when publishing a Flash CS4 file to have the Video swf and the Skin swf be in one swf file?
    I have a Flash CS4 (AS2) file that has a FLVPlayback Component. When I publish or test movie 2 swfs are output. I need only 1 swf as I am then going to insert this 1 swf into a Captivate 4 project.
    When I insert the video swf by itself into Captivate 4, I do not have a play bar/skin.
    If it is not possible to publish as one swf, can someone please tell me how I can insert the 2 swfs into a Captivate file and get them to work?
    Thanks in advance.

    My project is called JumpVideo.
    The only 2 items in my library are the FLVPlaybackComponent and a Combo box.
    I have imported a video using the FLVPlaybackComponent and have selected the SteelExternalPlaySeekMute skin to go with the playback.
    The video has defined cue points. The combo box has two values. When the first is selected it jumps to the start of the video. When the second is selected it jumps to the cue point.
    When I publish there are two swfs that are produced; the project swf itself (JumpVideo.swf) and the skin (SteelExternalPlaySeekMute.swf).
    I would like there to be only one swf published (i.e. the skin is within the JumpVideo.swf).
    Is this possible?
    The swfs will then need to be inserted into Captivate 4 as animation.
    If 1 swf cannot be published, then can you perhaps help with how I can insert the JumpVideo.swf and the skin swf into Captivate and have it work as it does in Flash CS4?

  • Load FLV into FLVPlayback component?

    I have an array of videos coming from an XML doc. I am getting the name of my video in the trace statement okay, but am not sure how to go about loading the FLV video into the player. I have an FLVPlayback component on the interface named "video". The video I'm going to load will be ("videos/" + videoArray[0])). What is the proper way in AS 3 to load this video?

    var start:Number = 0;
    var videoConnection:NetConnection = new NetConnection();
    videoConnection.connect(null);
    var aStream:NetStream = new NetStream(videoConnection);
    aStream.play("myvideo.flv");
    aStream.pause();
    I hope this will help you

  • FLVplayback component halts everything

    I've been working on getting video into my flash site with
    the "FLVPlayback component " and i've been able to get it to launch
    and play locally, however when it does launch when i'm "testing
    movie", my flash site quits working. I know this is a bit open
    ended and i'm no flash programmer, but I've been working on this
    all weekend. Can someone help me to integrate the FLVPlayback
    component correctly within my flash site? Thanks!
    -Matt

    It would help if you could explain how your "flash site" is
    structured.

  • Targeting an FLVplayback component within a nested movie element

    I'm trying to get my own buttons to load FLV movies into the FLVplayback component. I've got it to work in a simple test but need help making it work on a more complex level. The test is here http://lawrencejonespromoprince.com/testvideo.html
    I've named the FLVplayback instance 'my_video'
    The simple buttons have this script in the actions:
    on (release) {
          my_video.load("videonamehere.flv");
          my_video.autoPlay=true;
    This all works great as long as the buttons and the FLVplayback component are on the same frame on the same page. But for the actual use, i need it to work where the buttons are on a nested page within another movie element. So the nest looks like this:
    Scene1   Nestmovie1   Nestmovie2   Nestmovie3
    ...where the FLVplayback component is in Nestmovie2 and the buttons are in Nestmovie3.
    The nesting was needed so the buttons are on a separate slider panel so i can scroll through the list of movies.
    See the actual flash site in progress here http://lawrencejonespromoprince.com/index2.html
    and the movie list (not done) will be on the 30 Promos page.
    So now the question is, how can i target the FLVplayback instance within a nested movie.
    Thanks

    You should be able to use _root references to get back to the main timeline to target the flv player
    on (release) {
          _root.nestedMovie1.my_video.load("videonamehere.flv");
          _root.nestedMovie1.my_video.autoPlay=true;

  • FLVPlayback Component Volume Issue

    Hopefully someone can give me a hand with this one. I'm using the FLVPlayback component to play a movie. In the parameters, I'm setting volume to "8" where the default is "1".
    This works great and gives me the right volume setting, but if the user touches the volume slider (which I'd like to keep), the new maximum volume is only one.
    Any idea how to set the max volume for the volume slider? I'd have thought the volume parameter setting would be tied to this.
    Thanks!

    Thanks, Kibbik.  That's actually very helpful.  I guess I was just wondering if there was a method to reset the max volume of the slider to 200% or something similar, but I suppose not.
    I figured redoing the volume on the original movie was one solution, but it would be nice to see the component rewritten so as to reset the max volume of the slider to the volume parameter setting.

  • FLVPlayback Component + HTML5

    For a HTML5 Canvas project I'm in need to use imported FLV videos (green screen w/ alpha channel), with the goal to publish it highly compatible on the web. As the FLVPlayback Component is not supported in HTML5 projects, is there some possible workaround to achieve what I want with Adobe's software? If not, could I get briefed how this could be done with other programs/techniques?

    While there have been 'workarounds' in the past, the answer is ultimately that codecs that support this are limited and unreliable. You'll need to use a <canvas> trick to really pull this off which involves separating your alpha channel into its own video, then using an invisible canvas to process the video based on the alpha channels (reading pixel by pixel to determine what opacity percentage to draw of every single pixel). Some people use a specific color in the video as the channel (for instance if you just needed red text, then use a different background color as the alpha). You then draw that to a visible canvas after calculated. It's very unideal but there's no "best way" to do this currently, outside Flash.
    A quick search will show you the techniques I'm talking about but none of them are drag and drop approaches to the problem. They require JavaScript, proper types of video and a bunch of processing.

  • F4V video will autoplay in FLVPlayback component but won't appear w/autoplay "false"

    I'm designing a Flash Form Application (using screens) for an interactive portfolio. One screen, labeled multimedia (video), has an FLVPlayback component that appears on "stage" once visitors click the "multimedia" text button. The screen appears fine and the video actually begins to play with the parameter to autoplay toggled to "true." However, as this is just one of many screens, I only want it to play when the screen loads or when the visitor clicks the play button.  And please don't assume anything.  I'm an amature with components.
    I'm sure it's something small that I've missed. Has anyone else run into this or know why this happens or what I may've missed? Am grateful for any helpful assistance anyone offers.
    Thanks.

    See:
    FAQ: How do I import VOB files / edit a DVD?
    You will also find links to many
    free tutorials in the PremiereProPedia that will quickly show you how things are done in Premiere Pro.
    Cheers
    Eddie
    PremiereProPedia   
    RSS feed)
    - Over 350 frequently answered questions
    - Over 300 free tutorials
    - Maintained by editors like
    you
    Forum FAQ

  • Loading a swf with FLVPlayback component, and the flv restarts playing by itself......

    Hi.
    i have an fla file with 5 keyframes. Each keyframe navigates forward to the following keyframe. On the fifth keyframe, a Loader loads an external swf. The external swf has an flv playback component with sound.
    The fifth keyframe, other than having a button to click to load the swf, has a movie clip that navigates you back to the first keyframe.
    The loaded swf, once loaded, may be removed using removeThis function which has removeChild code as well as a  _flv.stop(); which makes the flv stop when the swf is removed. So u're back on keyframe 5, no sound - good!.
    ASo, all is well and the user can navigate back to the first keyframe (from keyframe 5), and from there continue on to the 2nd, 3rd, 4th and 5th keyframes again,  problems start though, when you get to that 5th keyframe again: that keyframe has an FLVPlayback component playing an flv, which at that point becomes very sluggish as all the mc animations on that 5th frame. And worse, i realize, the flv in the external swf that was previously loaded, starts playing by itself, which i know, because i hear its sound track.
    I tried putting a conditional statement to tell the _flv to stop on keyframes 1 and 5, but that causes errors, considering that the flv is an undefined property from the perspective of those keyframes.
    Any help would be very appreciated:)
    thanks.

    var loader:Loader = new Loader();
    loader.load(new URLRequest("_.swf"));
    house.addEventListener(MouseEvent.CLICK, loadswf1);
    function loadswf1(event:MouseEvent):void
        addChild(loader);
    this is how i'm loading the swf. I tried using   Loader.unloadAndStop() inside that loadswf function but get an error -
    Scene 1, Layer 'a', Frame 75, Line 83
    1061: Call to a possibly undefined method unloadAndStop through a reference with static type Class.

  • FLVPlayback Component fails to call FLV source

    I have a progressive download FLV set up using the
    FLVPlayback Component which has cue points embeded. Everything
    plays back correctly locally or over a network. But once the files
    are deployed to the web the link to the FLV is broken. The Activity
    in Safari reports that the FLV file is not found, when it clearly
    is in the directory as it should be.
    Is there any reason to use Netconn and NetStream with this
    setup, or should this work as is? Any ideas how to cure this. I was
    up all night trying to reach a deadline for today (Tuesday) and I
    banging my head on my desk at this point.
    The link can be tested here...
    http://dev.binaryinteractive.com/transcepta/MultimediaTour/demo.html
    cheers
    mm66

    I am sad to say that is one element I could never figure out.
    The FLV is external and it buffers, so I am not sure it actually
    needs to be preloaded (or can be). The workaround is to hide the
    FLVPLayback component by making it invisible. Make sure it is not
    set to autoplay. Set the video content path early and the video
    will load into the hidden component. Then when you want the user to
    see the video you make it visible and start it playing, as it is
    sitting there pre-buffered and ready to go.
    Hope that makes sense.
    Here are some discussions and nobody seems to have it figured
    out:
    http://www.gotoandlearn.com/forum/viewtopic.php?t=4891
    http://www.gotoandlearn.com/forum/viewtopic.php?t=1264
    http://www.gotoandlearn.com/forum/viewtopic.php?t=1376
    You may need to sign up there to view these files. That forum
    is really good for FLV related issues.

  • FLVPlayback Component

    I have found where this question has been asked, but never
    answered. I need to access the buffer.Full and buffer.Empty events
    while using the FLVPlayback component. Does anyone have an idea on
    how to do this? I have gotten as desperate as to go through the
    FLVPlayback source code and I am at a loss. Any help
    appreciated.

    Its not possible to access it directly through a regular
    FLVPlayback component. I think you need to alter or extend the
    classes and recompile a component. Probably not a good idea to
    alter the original FLVPlayback... work on copies or extend the
    classes if you're going to do it.
    in VideoPlayer the reference to the netstream is _ns from
    memory
    in FLVPlayback the reference to the active video is repeated
    throughout.
    I think its
    _vp[_activeVP] which refers to the active VideoPlayer
    instance.
    that might help... with a caveat that its only based on my
    (limited) understanding of how FLVPlayback works

Maybe you are looking for

  • IPhone 6: Data not working on T-Mobile?

    I recently switched from Verizon to T-Mobile's Simple Choice family plan with unlimited talk, text, and unlimited 2G data (with an additional 2.5G 4G data/month until 2016, it will drop to 1G 4G/month). I have full text and call functionality (sendin

  • How can I increase the speed of LabView computing?

    Dear all, I have a problem which I didn`t thought to face. My problem is the folowing. I have Implemented some applications in Labview but with my great surprise the program is incredibly slow! One of these was just a simple try to produce sinusoidal

  • Sent emails also received in the inbox

    Hey everyone, so I've had a BB for just about ever now - but I've never seen this before. I just added a new email acct to my phone and whenever I send messages (with just that account) I get a copy in my inbox as an unread message. The email goes th

  • Benefits of Application Server over Web Server

    Hi I know it is very basic, but I would like to pose a question, and would really appreciate answers with some statistics and experience. I want to know what are the benefits of using application server over the traditional web servers. If I am using

  • Profile parameter name

    Hi Gurus, What is the profile parameter name which is used to increase the character length of user name? Thanks in advance.