FLVPlayBack.stop()

I have a flvplayback video player which uses a VideoEvent.PLAYHEAD_UPDATE event listener to drive a custom tape timer display. I am trying to use the event listener to also trigger a stop command to the video when the playheadTime reaches a certain value. Putting the .stop() method inside the event listener triggers a 1009 Error when it tries to execute. Using the .pause() method does work but it's not exactly what I'm looking for. Is there another way to trigger the stop?

Here's the beginning of the error output. It repeats for a good 10 seconds before it clears.
TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::closeNS()
    at fl.video::VideoPlayer/stop()
    at fl.video::FLVPlayback/stop()
    at Function/Main/$construct/updateTapeTimer()[C:\Users\xxx\Documents\PhiloPlayer\PhiloStop\M ain.as:371]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at fl.video::FLVPlayback/http://www.adobe.com/2007/flash/flvplayback/internal::handleVideoEvent()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::doUpdateTime()
    at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::closeNS()
    at fl.video::VideoPlayer/stop()
    at fl.video::FLVPlayback/stop()
    at Function/Main/$construct/updateTapeTimer()[C:\Users\xxx\Documents\PhiloPlayer\PhiloStop\M ain.as:371]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at fl.video::FLVPlayback/http://www.adobe.com/2007/flash/flvplayback/internal::handleVideoEvent()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::doUpdateTime()

Similar Messages

  • FLVplayback stop the swf if...

    Hi, I have a strange problem..
    i'm using the FlVplayback component in Flash CS4.
    On line, when i drag the seekbar cursor beyond the  loaded zone the flv stops and the swf stops working.
    The problems occurs only with flv videos, the same player works fine with mp4 (it starts again from the beginning). I'm usign defaults skin.
    Have you any idea of what happens?
    thanks
    S.

    I want others to help put the pressure to get this addressed. Apple reads these forums, you can bet, especially related to Enterprise.
    They are invoking the backup for a reason. Canceling the backup has resulted in sync failures and restores. I want the forum to get involved in applying the pressure to get this addressed immediately. This to me is as critical to implementing via enterprise as is MobileMe. Apple has to get this right.
    Message was edited by: swheat
    Message was edited by: swheat

  • How to make a FLVplayback stop loading an FLV

    Hi guys,
    I am a newbie in As3, so please if you know the answer to my problem, explain it to me with a lot of details (how to write, where, what are the var to change...). I have a flash file, coded in AS3, that needs to have 4 FLVplayback movie in it. So right now, they way I did it, I have a mc on the stage with all my buttons (4) that are connected to a mc with all my vids (4 flvs). The vids in the mc are on the frame 1 - 5- 10 - 15. So when I click on the button 2 it plays frame 5 of the vids_mc. My problem is that when someone click on a button and the first movie didn't have time to finish loading, it will keep loading while the new one is loading too. At the end if someone clicks the 4 buttons, they will have 4 movies loading and after that playing at the same time. So what can I do to stop the other flvs from loading and playing every time I click to play a specific flv. Here's what I have now, it stops the sound and the movie if it's already playing, but don't stop the loading and will start to play when it's loaded even if I am watching a new movie;
    btn_2.addEventListener(MouseEvent.CLICK,btn2); //this code is in the buttons mc//
    function btn2(event){
    if ((root as MovieClip).vids.vid1) {
    (root as MovieClip).vids.vid1.stop();
    if ((root as MovieClip).vids.vid3) {
    (root as MovieClip).vids.vid3.stop();
    if ((root as MovieClip).vids.vid4) {
    (root as MovieClip).vids.vid4.stop();
    (root as MovieClip).vids.gotoAndPlay(5);
    Thanks in advance !!!!

    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf user manual

  • Stopping FLVPlayback

    I am making a slide show in Flash8 pro. I have a
    video on a child slide. When I leave that slide and go to another,
    the sound from the video continues until the video is finished. How
    can I stop it?

    I have tried to clean up code and do this right.
    I need help referencing (storing the value in the variable
    "stopsoundoverlapReq") the "flvplayback instance AFTER theVideo is
    instantiated (ie, the frame that contains theVideo has rendered)"
    correctly.
    Also, now I need help with the name of my nav bar button's
    method followed by parentheses, which should include the
    appropriate method parameter.
    On my main timeline, I tried to clean up the code and use:
    var stopsoundoverlapReq:FLVPlayback =
    stop("videopage.swf/MovieClip(ldr.content).theVideo");
    Then for my nav bar button on this same timeline use:
    any_btn.addEventListener(MouseEvent.CLICK, stopsoundoverlap);
    function stopsoundoverlap(event:MouseEvent):void
    stopsoundoverlap.stop(stopsoundoverlapReq);
    The 3 errors I get now are :
    1046: Type was not found or was not a compile-time constant:
    FLVPlayback. var stopsoundoverlapReq:FLVPlayback =
    stop("videopage.swf/MovieClip(ldr.content).theVideo");
    1061: Call to a possibly undefined method stop through a
    reference with static type Function.
    stopsoundoverlap.stop(stopsoundoverlapReq);
    1137: Incorrect number of arguments. Expected no more than 0.
    var stopsoundoverlapReq:FLVPlayback =
    stop("videopage.swf/MovieClip(ldr.content).theVideo");

  • How to stop and (rewind) videos.

    Hi.
    I am trying to create my first 100% to be the page of a Multi-Artistic Performance i have with some friends.
    All the content of the site is being displayed inside a Movie Clip (called "pageContainer_mc").
    I have then 6 diferent pages, each with different content that load inside the "pageContainer_mc" acording to the use of the menu buttons.
    the navigation worked fine.
    But now i ran into a problem that i cannot find how to solve.
    Inside 4 of the 6 pages i would like to put a video.
    I have put it there with the FLVPlayback and then created Play, Stop and Pause Buttons.
    The problem is, that when i click to go to another page the video continues playing back and then, when i come back to the previous page it is still going...
    What i would like is, for instance, when i am at Page2 and click to go to Page3, then the Video on Page2 will stop.  Once i click back to Page2 i would like that the video is again ready to start from the Begining (and not the place where it stoped previously).
    The code animating the menu and loading the diferent contents is on Scene 1. The code animating the buttons for the videos is on each page.
    Any ideas on how to achieve this?
    you can take a look at the .FLA file here:
    http://www.4shared.com/file/9Zos4HVd/four_elements.html?refurl=d1url
    Thank you for your time and help.

    well, if there is someone out there with the same kind of problem, this seems to have done the trick
    FLVPlayback.addEventListener (Event.REMOVED_FROM_STAGE, killVideo);
    function killVideo(e:Event){
    FLVPlayback.stop();

  • Can I access a label inside of an MC and then go back to the main time line

    Here is my current set up.
    I have a labeled section on main time line which has icons of 12 different videos. Each icon acts as a button and brings a user to a labeled section with a FLV Video Playback component impemented to play the corresponding video. These labeled sections are located on the main time.
    This methog makes my main time line very long. Is there a way to make an additional MC which will hold all the video buttons and then have this MC separated into labeled sections.
    In other words can I access a label inside of an MC and then go back to the main time line?
    My present code for accessing the label located on the main timeline is:
    HowTo_maininfo_mc.theArrangement_btn.addEventListener(MouseEvent.CLICK, theArrangement_btn_amimated_btnDown);
    function theArrangement_btn_amimated_btnDown(event:MouseEvent):void {
    gotoAndPlay("theArrangement");
    How would it look if my label "theArrangement" would be located inside of an MC?
    Is there any specific code if I want to have a close button located on the label inside of an MC and it needs to fire out to a label located on the main timeline?

    Oh, WOW! It is working perfectly now.
    My mistake was that I was specifiying the var sourceVar:String;
    for every single button. It was not clear to me from the first example that it has to be specified only once.
    I made a small test Flash file and everything works now. It still doesn't work on my big flash file, I guess some other code messes it up and I can' not figure what it is exactly.
    I would like to include the OUTPUT error message in hopes that you can spot right away what a mistake could be:
    VideoError: 1000: Unable to make connection to server or to find FLV on server
              at fl.video::VideoPlayer/stop()
              at fl.video::FLVPlayback/stop()
              at acolyteVideos_fla::mainsite_mc_2/stopF2()[acolyteVideos_fla.mainsite_mc_2::frame484:21]
              at flash.display::MovieClip/gotoAndPlay()
              at acolyteVideos_fla::mainsite_mc_2/onClick_GoBackToHowTo2()[acolyteVideos_fla.mainsite_mc_2 ::frame484:13]
    If there is no immediate cure for it, I will go through code line by line. Since it is working on the test it must be something wrong with my main file.
    Additiona question (please let me know if I should paste it as a new thread)
    I have similar set up with UILoader. Where different buttons set up to bring a user to individual labeled sections with individual UILoader. Should it be arranged in the same way that it is only one loader and "var sourceVar:String;" code is the one which brings up different content for each button?

  • FLV Progressive Download SeekNavCue

    Hello! I have been working on this issue for a couple days
    now and cannot seem to find the resolution. I have a flash movie
    that includes three FLV files that are progressively downloaded. I
    have no problems playing them, but when I get to a certain point in
    one, I want to switch to the other, but start the second FLV at a
    certain cue point. The test works when I play from my hard drive,
    but Since the files are progressive download, they don't jump to
    the correct cue point when viewed online. Any suggestions on what I
    should try next? My code for the FLV switch is below:
    This is on the first frame (checks to see if the root var is
    set to 1, if not then it should jump to a specific point in the
    FLV):
    import mx.video.FLVPlayback;
    var pam_vid:FLVPlayback;
    if (_root.link == 1) {
    pam_vid.play();
    if (_root.link == 2) {
    pam_vid.seekToNavCuePoint(repeatStory);
    pam_vid.play();
    This script is put on the last frame (detects when the video
    file is done playing, then jumps to frame 1 and checks the root
    var):
    import mx.video.FLVPlayback;
    stop();
    var listenerObject:Object = new Object();
    pam_back.addEventListener("cuePoint",listenerObject);
    listenerObject.cuePoint = function(infoObject:Object):Void {
    if(infoObject.info.name == "cue2"){
    trace("cue2");
    _root.link = 2;
    gotoAndPlay(1);
    thanks,
    Christy

    It's a snap with Flash 8 Pro. You just attach a skin to the
    FLV with all the components (such as volume, mute, play, and pause)
    and your good to go. Not sure how it works with earlier versions of
    Flash.

  • Audio from Flash CS3 Video overlapping

    audio from Flash CS3 Video overlapping
    help stopping the FLVPlayback instance (which has an instance
    name of theVideo) when another button is clicked!
    How do I stop flv playback when user clicks a navigation
    button ...
    Excuse me in advance for asking about a topic that may be
    very popular!
    I'm using the attached code to go from the main stage to one
    subset of .swf files (loaded movies) and I apparently have no
    problems with overlapping. Hell, the files even seem to unload
    themselves correctly. Then, when I go to my second subset of .swf
    files (with the exact same AS3 structure), which has a Flash Video
    file (made by the FLV Playback component), I get into an
    overlapping problem associated with the audio.
    How can I stop, cancel, or unload the audio when the file is
    clicked away from (the user selects another button on the main
    stage)?
    Code attached. Please let me know if anything else is needed.
    Yours Sincerely,
    Jntspecialty

    I have tried to clean up code and do this right.
    I need help referencing (storing the value in the variable
    "stopsoundoverlapReq") the "flvplayback instance AFTER theVideo is
    instantiated (ie, the frame that contains theVideo has rendered)"
    correctly.
    Also, now I need help with the name of my nav bar button's
    method followed by parentheses, which should include the
    appropriate method parameter.
    On my main timeline, I tried to clean up the code and use:
    var stopsoundoverlapReq:FLVPlayback =
    stop("videopage.swf/MovieClip(ldr.content).theVideo");
    Then for my nav bar button on this same timeline use:
    any_btn.addEventListener(MouseEvent.CLICK, stopsoundoverlap);
    function stopsoundoverlap(event:MouseEvent):void
    stopsoundoverlap.stop(stopsoundoverlapReq);
    The 3 errors I get now are :
    1046: Type was not found or was not a compile-time constant:
    FLVPlayback. var stopsoundoverlapReq:FLVPlayback =
    stop("videopage.swf/MovieClip(ldr.content).theVideo");
    1061: Call to a possibly undefined method stop through a
    reference with static type Function.
    stopsoundoverlap.stop(stopsoundoverlapReq);
    1137: Incorrect number of arguments. Expected no more than 0.
    var stopsoundoverlapReq:FLVPlayback =
    stop("videopage.swf/MovieClip(ldr.content).theVideo");

  • What video format to export for Ipad Apps

    Hi,
    I am new in export flash to ipad. I tried to export my video as FLV for my ipad apps, it plays but its lagging or jerky.
    I had tried other formats like mp4, f4v, m4v or mov it just doesn't play
    Wonder if anyone knows what video format to export for my ipad apps?
    Bruce
    http://www.vmw.com.sg

    [email protected], on an iPad, here's what I did to get the FLV loading and taking up (most) of the screen. You can't use the FLV Component skins so you have to use the UI Components as markc888 suggested below your comment. My only gripe with this solution is that I can't get the fullScreen button to make the video go full screen.
    This is starts from a playVideo button on my stage.
    playVideo.addEventListener(MouseEvent.CLICK, playVideoClick);
    function playVideoClick(event:MouseEvent):void {
    var flvPlayback:FLVPlayback = new FLVPlayback();
    flvPlayback.x = 62;
    flvPlayback.y = 62;
    flvPlayback.width = 900;
    flvPlayback.height = 506;
    flvPlayback.fullScreenTakeOver = true;
    flvPlayback.autoPlay = true;
    flvPlayback.source = "yourMovie.flv";
    flvPlayback.bufferTime = .1;
    addChild(flvPlayback);
    flvPlayback.playPauseButton = playPauseBtn_mc;
    flvPlayback.stopButton = stopBtn_mc;
    flvPlayback.seekBar = seekBar_mc;
    var closeMovie:yourMovieClip = new yourMovieClip();
    addChild(closeMovie);
    closeMovie.x = 977;
    closeMovie.y = 77;
    closeMovie.addEventListener(MouseEvent.CLICK, closeMovieClick);
    function closeMovie(event:MouseEvent):void {
    flvPlayback.stop();
    removeChild(flvPlayback);
    removeChild(closePres);
    Hope it helps...

  • More "TypeError: Error #1006: value is not a function." trouble

    var pntClk:int = -1;
    for(var t:int=0;t<tab1PointsArray.length;t++) {
         tab1PointsArray[t].addEventListener(MouseEvent.CLICK, tab1PointClicked); <Problem code i think. Error points to line 117
         trace("Event listener added to " + tab1PointsArray[t].name);
    function tab1PointClicked (event:MouseEvent):void {
         for(var T:int=0;T< tab1PointsArray.length;T++) {
              if (event.currentTarget == tab1PointsArray[T]) {
                   pntClk = T;
                   openInfoTab();
                   trace("Point Clicked: " +  tab1PointsArray[T].name);
    I wrote some previous code that worked and i copy pasted over to this project and it doesn't work.
    The weird part to me is that it still runs the first set of trace statements (there are 8 objects in that array). But, it won't run the second set...
    for(var l:int=0;l<Tab2PointsArray.length;l++) {
         Tab2PointsArray[l].addEventListener(MouseEvent.CLICK, tab2PointClicked);
         trace("Event listener added to " + Tab2PointsArray[l].name);
    function tab2PointClicked (event:MouseEvent):void {
         for(var t:int=0;t< Tab2PointsArray.length;t++) {
              if (event.currentTarget ==  Tab2PointsArray[t]) {
                   pntClk = t;
                   openInfoTab();
                   trace("Point Clicked: " +  Tab2PointsArray[t].name);
    if you need more code or info to help me figure this out let me know
    I don't know actionscript that well so bare with

    The output window:
    Event listener added to PointHitch
    Event listener added to PointPTO
    Event listener added to PointSafety
    Event listener added to PointGearBox
    Event listener added to PointBlade
    Event listener added to PointTeeth
    Event listener added to PointGrapple
    TypeError: Error #1006: value is not a function.
    at TractorSawFlash_fla::MainTimeline/frame1()[TractorSawFlash_fla.MainTimeline::frame1:115]
    I think the first set of listeners is added then the error happens and the second set of listeners doesn't get added.
    Here is more code.
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    import flash.events.MouseEvent;
    var infoTabIsOpen:Boolean = false;
    //TAB CODE
    var TractorSawTabToggle:Boolean = false;
    var TabButtonArray:Array = new Array(TabTR3200.TR3200BTN, TabTR3200LT.TR3200BTNLT);
    for (var i:int=0; i<TabButtonArray.length; i++)
         TabButtonArray[i].id = i;
         TabButtonArray[i].addEventListener(MouseEvent.CLICK, onClick);
    TabTR3200.TR3200BTN.mouseEnabled = false;
    TabTR3200.TR3200BTN.buttonMode = false;
    function onClick(event:MouseEvent):void{
         if (TractorSawTabToggle == true) {
              TractorSawTabToggle = false;
              swapChildren(this.TabTR3200,this.TabTR3200LT);
              TabTR3200LT.TR3200BTNLT.mouseEnabled = true;
              TabTR3200LT.TR3200BTNLT.buttonMode = true;
              TabTR3200.TR3200BTN.mouseEnabled = false;
              TabTR3200.TR3200BTN.buttonMode = false;
         else {
              TractorSawTabToggle = true;
              swapChildren(this.TabTR3200,this.TabTR3200LT);
              TabTR3200LT.TR3200BTNLT.mouseEnabled = false;
              TabTR3200LT.TR3200BTNLT.buttonMode = false;
              TabTR3200.TR3200BTN.mouseEnabled = true;
              TabTR3200.TR3200BTN.buttonMode = true;
    //END TAB CODE
    //MovieTab
    MovieButton.addEventListener(MouseEvent.CLICK, clickedMainMovie);
    MovieTab.Exit_BTN.addEventListener(MouseEvent.MOUSE_DOWN, outMainMovieTrigger);
    function clickedMainMovie(event:MouseEvent):void {
         var TabMainMovieDown:Tween = new Tween(MovieTab, "y", Strong.easeOut, -600, 0, 1, true);
         var TabMainMovieAlphaIn:Tween = new Tween(MovieTab, "alpha", Strong.easeOut, 0, 1, 1, true);
         if (infoTabIsOpen == true) {
              closeInfoTab();
    function outMainMovieTrigger(event:MouseEvent):void {
         outMainMovie();
    function outMainMovie():void {
         trace("Three Sixty MOUSE_OUT");
         var TabMainMovieUp:Tween = new Tween(MovieTab, "y", Strong.easeOut, 0, -600, 1, true);
         var TabMainMovieAlphaOut:Tween = new Tween(MovieTab, "alpha", Strong.easeOut, 1, 0, 1, true);
         MovieTab.FLVPlayback.stop();
    //END MovieTab
    //INFO TAB ARRAYS AND FUNCTIONS
    var placeHolder:String = "null";
    var tab1PointsArray:Array = new Array(this.TabTR3200.PointHitch, //0
                                                             this.TabTR3200.PointPTO, //1
                                                             this.TabTR3200.PointSafety, //2
                                                             this.TabTR3200.PointGearBox, //3
                                                             this.TabTR3200.PointBlade, //4
                                                             this.TabTR3200.PointTeeth, //5
                                                             this.TabTR3200.PointGrapple, //6
                                                             placeHolder); //7
    var Tab2PointsArray:Array = new Array(this.TabTR3200LT.PointHitch, //0
                                                              this.TabTR3200LT.PointPTO, //1
                                                              this.TabTR3200LT.PointSafety, //2
                                                              this.TabTR3200LT.PointGearBox, //3
                                                              this.TabTR3200LT.PointBlade, //4
                                                              this.TabTR3200LT.PointTeeth, //5
                                                              placeHolder, //6
                                                              this.TabTR3200LT.PointPushingBar);//7
    var pictureArray:Array = new Array(placeHolder,
                                                       placeHolder,
                                                       placeHolder,
                                                       placeHolder,
                                                       placeHolder,
                                                       placeHolder,
                                                       placeHolder,
                                                       placeHolder);
    var textArray:Array = new Array(InfoTab.txtHitch, //0
                                                   InfoTab.txtPTO, //1
                                                   InfoTab.txtSafety, //2
                                                   InfoTab.txtGearbox, //3
                                                   InfoTab.txtBlade, //4
                                                   InfoTab.txtTeeth, //5
                                                   InfoTab.txtGrapple, //6
                                                   InfoTab.txtPushingBar); //7
    //Point Clicked Code
    var pntClk:int = -1;
    for(var t:int=0;t<tab1PointsArray.length;t++) {
         tab1PointsArray[t].addEventListener(MouseEvent.CLICK, tab1PointClicked); <LINE 115 were it says the error is happening
         trace("Event listener added to " + tab1PointsArray[t].name);
    function tab1PointClicked (event:MouseEvent):void {
         for(var T:int=0;T< tab1PointsArray.length;T++) {
              if (event.currentTarget == tab1PointsArray[T]) {
                   pntClk = T;
                   openInfoTab();
                   trace("Point Clicked: " +  tab1PointsArray[T].name);
    for(var l:int=0;l<Tab2PointsArray.length;l++) {
         Tab2PointsArray[l].addEventListener(MouseEvent.CLICK, tab2PointClicked);
         trace("Event listener added to " + Tab2PointsArray[l].name);
    function tab2PointClicked (event:MouseEvent):void {
         for(var t:int=0;t< Tab2PointsArray.length;t++) {
              if (event.currentTarget ==  Tab2PointsArray[t]) {
                   pntClk = t;
                   openInfoTab();
                   trace("Point Clicked: " +  Tab2PointsArray[t].name);
    //Info Tab
    var ImageLoader:Loader;
    ImageLoader = new Loader();
    // make text invisible
    function makeTextInvisible():void {
         for (var txt:int=0; txt<textArray.length; txt++) {
              textArray[txt].visible = false;
    InfoTab.Exit_BTN.buttonMode = true;
    InfoTab.Exit_BTN.addEventListener(MouseEvent.CLICK, closeInfoTrigger);
    function closeInfoTrigger(e:MouseEvent):void {
         trace("close feature triggered");
         closeInfoTab();
    //OPEN INFO TAB
    function openInfoTab():void {
         //EnableExitButton
         var EnableExitButton:Timer = new Timer(333, 1);
         InfoTab.mouseEnabled = true;
         InfoTab.mouseChildren = true;
         var tabIn:Tween = new Tween(InfoTab, "y", Regular.easeOut, 600, 60, 10, false);
         var tabAlphaIn:Tween = new Tween(InfoTab, "alpha", Regular.easeOut, 0, 1, 10, false);
         //pictureSetter
         if (pictureArray[pntClk] != "null") {
              ImageLoader.load(new URLRequest(pictureArray[pntClk]));
              this.InfoTab.ImageHolder_MC.addChild(ImageLoader);
         textArray[pntClk].visible = true;
         infoTabIsOpen = true;
    //end open info tab
    //CLOSE INFO TAB
    function closeInfoTab():void{
         //deactivating setters
         InfoTab.mouseEnabled = false;
         InfoTab.mouseChildren = false;
         trace("feature tab deactivated");
         //unload picture
         if (pictureArray[pntClk] != "null") {
              ImageLoader.unload();
              this.InfoTab.ImageHolder_MC.removeChild(ImageLoader);
              ImageLoader = null;
         //tab action variables
         var tabAlphaOut:Tween = new Tween(InfoTab, "alpha", Regular.easeIn, 1, 0, 8, false);
         var tabOut:Tween = new Tween(InfoTab, "y", Regular.easeIn, 60, 600, 8, false);
         infoTabIsOpen = false;
         //exit timer
         var exitTimer:Timer = new Timer(200, 1);
         exitTimer.addEventListener(TimerEvent.TIMER, exitHandler);
         exitTimer.start();
         function exitHandler(event:TimerEvent):void
              trace("exit handler fired");
              makeTextInvisible();
         //end exit timer
         pntClk = -1;
    //end closeFeatureTab

  • Var doesn't work if I load external swf.

    I have a set up with two pages or labeled sections on the main timeline. I brake the code corresponding to actions happening in each page/labeled section. On first page there is a var specified for each button
    var sourceVar:String;
    Then each button uses this var to load a video into FLV player (player itself is constructed in the second page/labeled section).
    function JTV_SatelliteCenterpiece_PlayVideoPopUp(event:MouseEvent): void {
        sourceVar="howto_popups/jtvs18w12_LG30.flv";
        gotoAndPlay("flv_pb");
    where "flv_pb" is the label for the second page/labeled section. On this second page/labeled section there is an FLVPlayback component named "SWF_flv2" which uses this var
    SWF_flv2.source = sourceVar;
    All above works. My problem is that I decided to load externally all the items (image buttons) into the first section. So I saved them as an external SWF file, with all the code in that external swf file.
    Then I link the buttons to section "flv_pb" this way:
    function JTV_SatelliteCenterpiece_PlayVideoPopUp(event:MouseEvent): void {
        MovieClip(parent.parent.parent).sourceVar="howto_popups/jtvs18w07_LG30.flv";
        MovieClip(parent.parent.parent).gotoAndPlay("flv_pb");
    The link to the "flv_pb" section works, which tells me that the set up with "MovieClip(parent.parent.parent)." is appropriate.
    However the code as before with the set up of (still being in the external swf file):
        sourceVar="howto_popups/jtvs18w12_LG30.flv";
        gotoAndPlay("flv_pb");
    works as well, I am not sure why?
    The problem seems to be in the var
    I have an error message 1120: Access of undefined property sourceVar
    It is referencing the code in the second page/labeled section "flv_pb"
    SWF_flv2.source = sourceVar;
    What are my actions?  I kept the code in the external swf file. Should I move it to the main timeline if it is possible? Should I only reference the var in the main time line?
    Should all the code be kept in the beginning of the time line, rather be sectioned into the sections?

    Thank you for your reply.
    Please let me know if all the animation code should be left in the external SWF file (which is being loaded) and all the linkage code on the main time line?
    If so then the code block specifying the link and loading on the botton:
    var sourceVar:String;
    //JTV_SatelliteCenterpiece_btn////////////////////////////////////////////////////
    //event listener//
    howTo_mainInfo.JTVs.JTV_SatelliteCenterpiece_btn.addEventListener(MouseEvent.CLICK, JTV_SatelliteCenterpiece_PlayVideoPopUp);
    function JTV_SatelliteCenterpiece_PlayVideoPopUp(event:MouseEvent): void {
        //MovieClip(parent.parent.parent).sourceVar="howto_popups/jtvs18w07_LG30.flv";
        sourceVar="howto_popups/jtvs18w07_LG30.flv";
        gotoAndPlay("flv_pb");
    Should be left as it is on the main time line or only the function part and event listener put in the external SWF file?
    I tried this way puttin the var and function on the main time line and it brings me to the proper page/labeled section but doesn't load the video.
    In the OUTPUT Panel I have an error message:
    VideoError: 1000: Unable to make connection to server or to find FLV on server
        at fl.video::VideoPlayer/stop()
        at fl.video::FLVPlayback/stop()
        at acolyte46_howTo_Loader_fla::mainsite_mc_2/stopF2()[acolyte46_howTo_Loader_fla.mainsite_mc _2::frame283:49]
        at flash.display::MovieClip/gotoAndPlay()
        at acolyte46_howTo_Loader_fla::mainsite_mc_2/onClick_closeXhowToVideos_btn()[acolyte46_howTo _Loader_fla.mainsite_mc_2::frame283:28]
    Frame 283 is "flv_pb" page/labeled section to where the links properly works but video is not being loaded?
    Same code perfectly worked without any error message before I moved things into an external SWF file.
    I am also confused why both ways are working out of the loaded SWF file:
        MovieClip(parent.parent.parent).sourceVar="howto_popups/jtvs18w07_LG30.flv";
    and
        sourceVar="howto_popups/jtvs18w07_LG30.flv";
    shouldn't only one be the correct one?

  • Audio from CreativeCloud

    wishlist
    Currently, the audio music beds have to be on the app in an iTunes library to be read by Premiere Clip (per device)
    If a user wants to change the music bed, then a new version has to be created and downloaded to the device.
    It would be great if the user could link to a WAV or AIFF in CreativeCloud files instead.
    I have 2 iPads and an iPhone.  There are 15 music bed elements I like to choose from currently.  This means they need to live on all devices at times rather than just in the cloud for when I want/need them.

    I have tried to clean up code and do this right.
    I need help referencing (storing the value in the variable
    "stopsoundoverlapReq") the "flvplayback instance AFTER theVideo is
    instantiated (ie, the frame that contains theVideo has rendered)"
    correctly.
    Also, now I need help with the name of my nav bar button's
    method followed by parentheses, which should include the
    appropriate method parameter.
    On my main timeline, I tried to clean up the code and use:
    var stopsoundoverlapReq:FLVPlayback =
    stop("videopage.swf/MovieClip(ldr.content).theVideo");
    Then for my nav bar button on this same timeline use:
    any_btn.addEventListener(MouseEvent.CLICK, stopsoundoverlap);
    function stopsoundoverlap(event:MouseEvent):void
    stopsoundoverlap.stop(stopsoundoverlapReq);
    The 3 errors I get now are :
    1046: Type was not found or was not a compile-time constant:
    FLVPlayback. var stopsoundoverlapReq:FLVPlayback =
    stop("videopage.swf/MovieClip(ldr.content).theVideo");
    1061: Call to a possibly undefined method stop through a
    reference with static type Function.
    stopsoundoverlap.stop(stopsoundoverlapReq);
    1137: Incorrect number of arguments. Expected no more than 0.
    var stopsoundoverlapReq:FLVPlayback =
    stop("videopage.swf/MovieClip(ldr.content).theVideo");

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

  • Flash CS3 FlvPlayback Skin Stop Button is working as pause

    Hi,
         I am using the skin for FlvPlayback player I have selected the sking from given list of skin.
         The issue is When I select the skin which is having Stop Button, Stop Button is not stopping the video is it just pause the video and after click of play button it should start from begining of the video which is expected bevhaviour of Stop button.
        any one can help me to resolve this issue.
    Thanks in advance.
    Sangati

    Yup, that is how it works. You can't control which state a button is in. So when you click on it, it will go to the down state and when you let go it will go back to over (or up if you release outside).
    Not sure exactly what the "fix" is. It depends upon what you are trying to do. Generally you would need to use MovieClips instead of buttons with event handlers to tell you "button" what to do. Very few people I know actually use buttons.

  • Stop FLVPlayback Instance from LOADING?

    Hi there,
    I have portion of my site where an FLVPlayback component is loaded and automatically starts playing (autoplay=true).
    To make the site just a bit faster, I'd like to have the FLVPlayback component STOP LOADING data if you navigate away from the video page (if the video hasn't finished loading).
    That way, it's not slowing things down --- still loading the video (behind-the-scenes), even if you're on a different section of the site.
    Any idea of how to go about this?
    Thanks,
    J =)

    I have tried placing the close() before calling unload() so my code looks like:
         mLoader.close();
         mLoader.unload();
    It still has no effect.

Maybe you are looking for