Unloading External Video FLV

I've got an image on the stage that I wish to replace with an
external video (.flv) clip. At the end of the clip I want the image
to be visible again and the video to clear.
Here is how I've set it up so far:
1) I've placed an instance of dan_mc on the stage which is an
image.
2) I've created a Video symbol in the Library that I've named
videoHolder_video that is actionscript controled.
3) Using the Flv Encoder, I've encoded a short video clip,
I've embeded an Event cuePoint at the end of the video and named it
"end".
4) I've placed two buttons on the stage: play_btn &
remove_btn
5) on the actions frame I've placed the attached code:
Problem I'm having:
Everything works except for the videoHolder_video does not
get cleared at the end. Original image is visible again, and trace
action is executed telling me that the if statement is detecting
the "end" cuePoint. Additionaly I added a function to the
remove_btn to test the videoHolder_video.clear() command and it
works if I use the remove_btn. So I'm at a loss why the
videoHolder_video does not clear when the play_btn is used. Any
input would be helpful. Thank you,
Max

import the .mov into flash and flash will convert it into a
.flv.

Similar Messages

  • AS3 Unloading external SWF piling up problem

    I have two buttons on main SWF what loads and Unload two external SWFs back and forth.
    Also one timer function is calling external Screen saver SWF and unload the existing one when no interaction found.
    I am using unloadAndStop() function to unload the external SWFs.
    But after loading and unloading external SWFs, I am facing piling up or stack overflow problem.
    Any help will be highly appreciated.
    Thanks
    import flash.net.NetConnection;
    import flash.net.NetStream;
    import flash.media.Video;
    import flash.display.MovieClip;
    import caurina.transitions.*;
    import flash.utils.Timer;
    import flash.events.*;
    var myLoader_Map_1:Loader = new Loader();
    var myLoader_Map_2:Loader = new Loader();
    var myLoader_Screen_Saver:Loader = new Loader();
    var Ss:Boolean = false;
    var Maps:Boolean = true;
    //--------------------Screen Saver---------------------------------
    ScreenSaver();
      function ScreenSaver():void{
      var url:URLRequest = new URLRequest("screensaver.swf");
      myLoader_Screen_Saver.load(url); 
      addChild(myLoader_Screen_Saver);
      setChildIndex(myLoader_Screen_Saver, 1);
      Maps = false;
      Ss = true;
      function ScreenSaver_Unload():void{
      myLoader_Screen_Saver.unloadAndStop();
    //--------------------Map Buttons---------------------------------
    function MPstart():void{
      Tweener.addTween(MC_Maps_Btns,{alpha:1, x:778.25, y:1070.65, time:1, delay:1, transition:"easeOutCubic"});
      setChildIndex(MC_Maps_Btns, 2);
      MC_Maps_Btns.Btn_Map_1.visible = true;
      MC_Maps_Btns.Btn_Map_2.visible = true;
    function MPclose():void{
      Tweener.addTween(MC_Maps_Btns,{alpha:0, x:778.25, y:1179.85, time:1, transition:"easeOutCubic"});
    //--------------------Map 1 ---------------------------------
    MC_Maps_Btns.Btn_Map_1.addEventListener(MouseEvent.CLICK,OpenMap1);
      function OpenMap1(e:MouseEvent):void{
      var url:URLRequest = new URLRequest("Map_1.swf");
      myLoader_Map_1.load(url);
      myLoader_Map_1.alpha = 1;
      addChild(myLoader_Map_1);
      setChildIndex(myLoader_Map_1, 2);
      myLoader_Map_2.unloadAndStop();
      ScreenSaver_Unload();
      Maps = true;
      Ss = false;
      MC_Maps_Btns.Btn_Map_1.visible = false;
      MC_Maps_Btns.Btn_Map_2.visible = true;
    //--------------------Map 1 ---------------------------------
    MC_Maps_Btns.Btn_Map_2.addEventListener(MouseEvent.CLICK,OpenMap2);
      function OpenMap2(e:MouseEvent):void {
      var url:URLRequest = new URLRequest("Map_2.swf");
      myLoader_Map_2.load(url);
      myLoader_Map_2.alpha = 1;
      addChild(myLoader_Map_2);
      setChildIndex(myLoader_Map_2, 2);
      myLoader_Map_1.unloadAndStop();
      ScreenSaver_Unload();
      Maps = true;
      Ss = false;
      MC_Maps_Btns.Btn_Map_2.visible = false;
      MC_Maps_Btns.Btn_Map_1.visible = true;
    //--------------------Timer ---------------------------------
    var inactiveTime:int = 10000;
    var t:Timer = new Timer(inactiveTime);
    stage.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown1);
    t.addEventListener(TimerEvent.TIMER, onTimer);
    t.start();
      function onMouseDown1(e:MouseEvent):void {
      t.reset();
      t.start();
      trace("Interaction detected");
      function onTimer(e:TimerEvent):void {
      handleInactivity();
      function handleInactivity():void {
      trace('You\'re inactive.');
      if (Maps == true){
      myLoader_Map_1.unloadAndStop();
      myLoader_Map_2.unloadAndStop();
      else{
      trace("No Maps");
      if (Ss == false ){
      ScreenSaver();
      MPclose();
      else{
      trace("ScreenSaver already loaded");

    This is how I applied
    import flash.net.NetConnection;
    import flash.net.NetStream;
    import flash.media.Video;
    import flash.display.MovieClip;
    import caurina.transitions.*;
    import flash.utils.Timer;
    import flash.events.*;
    var myLoader_Map_1:Loader = new Loader();
    var myLoader_Map_2:Loader = new Loader();
    var myLoader_Screen_Saver:Loader = new Loader();
    var Ss:Boolean = false;
    var Maps:Boolean = true;
    //--------------------Screen Saver---------------------------------
    function unloadAllF():void{
    if(myLoader_Screen_Saver.content){
    myLoader_Screen_Saver.unloadAndStop();
    trace("ss unloaded");
    if(myLoader_Map_1.content){
    myLoader_Map_1.unloadAndStop();
    trace("map_1 unloaded");
    if(myLoader_Map_2.content){
    myLoader_Map_2.unloadAndStop();
    trace("map_2 unloaded");
    //etc
    ScreenSaver();
      function ScreenSaver():void{
      var url_ss:URLRequest = new URLRequest("screensaver.swf");
      unloadAllF();
      myLoader_Screen_Saver.load(url_ss); 
      addChild(myLoader_Screen_Saver);
      setChildIndex(myLoader_Screen_Saver, 1);
      Maps = false;
      Ss = true;
        function ScreenSaver_Unload():void{
      myLoader_Screen_Saver.unloadAndStop();
    //--------------------Map Buttons---------------------------------
    function MPstart():void{
      Tweener.addTween(MC_Maps_Btns,{alpha:1, x:778.25, y:1070.65, time:1, delay:1, transition:"easeOutCubic"});
      setChildIndex(MC_Maps_Btns, 2);
      MC_Maps_Btns.Btn_Map_1.visible = true;
      MC_Maps_Btns.Btn_Map_2.visible = true;
    function MPclose():void{
      Tweener.addTween(MC_Maps_Btns,{alpha:0, x:778.25, y:1179.85, time:1, transition:"easeOutCubic"});
    //--------------------Map 1 ---------------------------------
    MC_Maps_Btns.Btn_Map_1.addEventListener(MouseEvent.CLICK,OpenMap1);
      function OpenMap1(e:MouseEvent):void{
      var url_map_1:URLRequest = new URLRequest("Map_1.swf");
      unloadAllF();
      myLoader_Map_1.load(url_map_1);
      myLoader_Map_1.alpha = 1;
      addChild(myLoader_Map_1);
      setChildIndex(myLoader_Map_1, 2);
      myLoader_Map_2.unloadAndStop();
      ScreenSaver_Unload();
      Maps = true;
      Ss = false;
      MC_Maps_Btns.Btn_Map_1.visible = false;
      MC_Maps_Btns.Btn_Map_2.visible = true;
    //--------------------Map 1 ---------------------------------
    MC_Maps_Btns.Btn_Map_2.addEventListener(MouseEvent.CLICK,OpenMap2);
      function OpenMap2(e:MouseEvent):void {
      var url_map_2:URLRequest = new URLRequest("Map_2.swf");
      unloadAllF();
      myLoader_Map_2.load(url_map_2);
      myLoader_Map_2.alpha = 1;
      addChild(myLoader_Map_2);
      setChildIndex(myLoader_Map_2, 2);
      myLoader_Map_1.unloadAndStop();
      ScreenSaver_Unload();
      Maps = true;
      Ss = false;
      MC_Maps_Btns.Btn_Map_2.visible = false;
      MC_Maps_Btns.Btn_Map_1.visible = true;
    //--------------------Timer ---------------------------------
    var inactiveTime:int = 10000;
    var t:Timer = new Timer(inactiveTime);
    stage.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown1);
    t.addEventListener(TimerEvent.TIMER, onTimer);
    t.start();
      function onMouseDown1(e:MouseEvent):void {
      t.reset();
      t.start();
      trace("Interaction detected");
      function onTimer(e:TimerEvent):void {
      handleInactivity();
      function handleInactivity():void {
      trace('You\'re inactive.');
      if (Maps == true){
      myLoader_Map_1.unloadAndStop();
      myLoader_Map_2.unloadAndStop();
      else{
      trace("No Maps");
      if (Ss == false ){
      ScreenSaver();
      MPclose();
      else{
      trace("ScreenSaver already loaded");

  • What is AS for playing external video ?

    Hello,
    This is probably very basic question, but that just proves
    the fact that I struggle with AS. I would like to place a thumbnail
    picture on my web page, which would take the viewer ( when he
    clicks on it ) to the external video file, which is located on the
    same server where my website is. That video file has name demo.mov
    I assume that the thumbnail picture has to be a Button? , but
    I am not sure. So would the AS be:
    (onRelease) {
    gotoAndPlay (URL);
    I know it is probably wrong, but I am really lost in this.
    Thank you so much for any help.
    Cheers
    Janek

    Hello,
    thank you guys for your inputs. So, what if I do it like
    this?
    I would make .html page with my .mov or .flv video clip
    embeded on it. I would name that page for example: video.html
    and uploade it to the same server where my website is
    (www.icebergfilms.com).
    then I would assign this AS to the thumbnail on my website:
    (onRelease) {
    getURL (
    http://www.icebergfilms.com/video.html)
    Would it work?
    Please, if this is totaly none sense be patient with me.
    Thank you so much
    Janek

  • Externally loaded FLV

    In my SWF fie, I have an externally loaded FLV file.
    I now want to add another FLV that will load and play
    automatically when the first one is finished.
    I actually want the SWF to jump to a new scene when the first
    movie is done.
    How can I do that/ what the actionscript?
    Steven

    Hey Steven,
    I am not very sure but just giving a shot answering it...
    You can use FLVPlayback.complete event to detect the
    comepletion of first flv and set the path of other flv on complete.
    Something like this:
    import mx.video.*;
    my_FLVPlybk.contentPath = "
    http://www.helpexamples.com/flash/video/clouds.flv";
    var listenerObject:Object = new Object();
    // listen for complete event; play new FLV
    listenerObject.complete = function(eventObject:Object):Void {
    if (my_FLVPlybk.contentPath == "
    http://www.helpexamples.com/flash/video/clouds.flv")
    my_FLVPlybk.play("
    http://www.helpexamples.com/flash/video/water.flv");
    my_FLVPlybk.addEventListener("complete", listenerObject);
    Hope that works...

  • Loading external video flash site bug

    I’m having issues with the loading external video method in acitonscript 3.0 book by todd perkin.  The issue is about the lesson on page 308 in ch 11.
    The above screenshot of the lesson file.
    My site:
    The following is the actionscript for controlling the flv(ignore my notes):
    /*code for putting external video on page*/
    var videoConnection:NetConnection = new NetConnection();
    videoConnection.connect(null);
    var videoStream:NetStream = new NetStream(videoConnection);
    /*comp vs abom video link*/
    videoStream.play("CompVsAbom.flv");
    var video:Video = new Video();
    video.attachNetStream(videoStream);
    addChild(video);
    var metaListener:Object = new Object();
    metaListener.onMetaData = onMetaData;
    videoStream.client = metaListener;
    function onMetaData(data:Object):void
                /*link funct*/
                play_cva_vid.addEventListener(MouseEvent.CLICK, play_Cva_vid);
                stop_cva_vid.addEventListener(MouseEvent.CLICK, stop_Cva_vid);
                /*btn backs up to techno toy sect*/
    back_techno_toy.addEventListener(MouseEvent.CLICK, techno_toy_back);
    function techno_toy_back(event:MouseEvent):void {
                gotoAndStop(36);
                /*back btn should be under function.*/
    /*link funct*/
    function play_Cva_vid(event:MouseEvent):void
                videoStream.play("CompVsAbom.flv");
    /*link funct*/
    function stop_Cva_vid(event:MouseEvent):void
                videoStream.pause();
    This is the only thing that crashing my site.  The load external video methods nice but if I can’t make practical use of it, its useless.  Any actionscript gurus out there know a solution to fix this problem?  Your help would be much appreciated.  Btw, the fla and the flv are in the same folder.

    To reposition video you just need to change its x and y:
    video.x = [Number];
    video.y = [Number];
    Also, you should take advantage of onMetaData and resize the video to it doesn't have black box around it.

  • HT3413 can I connect my new 15" macbook pro to 2 external video monitors?

    can I connect my new 15" macbook pro to 2 external video monitors?

    Not without an adaptor such as those from Matrox.

  • Timeline and External Video issues

    Have an issue with output. My external video is not showing up to play from the timeline. I am getting neither audio or video. Have checked all firewire ports, used 2 different monitors, 2 different decks, 2 different firewire cable and even tried it without the external hard drive. It shows in the view menu that all frames are checked and the output is set to the correct monitor. Refreshing the external devices does not work either. Ran FCP Rescue. Still did not fix the problem. The Canvas window is sized to fit in the window. Capturing video and audio works great. Just output and monitoring it while editing. Can I get an answer. It is the latest FCP, 6.0.2. Is this a problem with the new quicktime 7.3.1?
    This is an emergency. Any help would be appreciated.

    You can't monitor SD without a 3rd party card.
    Perhaps you mean the material is DV?
    You don't send DV material directly to a monitor - you send it out via firewire to some sort of DV/analog conversion then to a monitor.
    Perhaps your post was not clear?
    x

  • Can I connect an external video camera to a mac book pro for viewing live video so I don't have to use the little screen on the camera?

    Can I connect an external video camera to a mac book pro for viewing live video so I don't have to use the little screen on the camera?

    Shadow30 wrote:
    Can I connect an external video camera to a mac book pro for viewing live video so I don't have to use the little screen on the camera?
    • Only if your video camera supports it.  Depending on how your camera works, you may need to add preview software to your Mac to use this feature.
    • Alternatively, your camera may also be able to record directly into your Mac while you are monitoring the Mac's display.
    • If you are using a consumer camcorder that supports HDMI monitoring, a small HDTV might be an simpler solution than your Mac.  For an example of how this is done, see http://youtu.be/GVpSkZD6qE4.
    • The retailer who sold you your video camera may have other suggestions.
    • If you need more professional results, an external preview monitor will offer more capability on compatible cameras.
    Message was edited by: EZ Jim
    Mac OSX 10.9.4

  • Print to vide/External video not working in FCP, PLEASE HELP

    I have the FCP HD 4.5 and am having difficulty communicating to my Panasonic PV-800. Capture is great, but when trying to view external video or print to video, the default blue screen of my cameras vtr mode is distorted and no video comes through. I have refreshed AV devices and have check all frames in the external video menus. When i pause the playback, the still frame appears on my camera, then if i resume playback, the video does not come through, but only distorts the blue screen. I made sure the settings were correct and even found an apple site that told me to copy two plugins from the FCP CD, and i did that. I also did the quicktime fix where u delete the reciepts and download the latest version of Quicktime, still same videoless situation.
    I feel like i've tried everything. Please if anyone can help, i gotta get something printed to video soon!

    after doing everything it was:
    Shutdown everything, power up connected camera, power up external drive, power up computer, launch fcp, and it worked. I dunno if the restart was a part of the process of one of my other things that i did or whatever. Maybe that's just how my computer reacts. Anyways, hope that helps anyone frustrated.

  • Linking to external video in Captivate 7

    I develop video-based training. Each slide includes mostly video. I've been successfully embedding f4v videos into Captivate projects for some time but video quality and file size issues make it necessary to begin linking to videos on external servers.
    I've tried a number of options without success.
    I create a video event, choose the url option, and add the url from the uploaded video. The only usable server choice is the Adobe Media Streaming Service. I've tested the videos on different servers including Amazon since the troubleshooting advice alerted me that only Adobe partners servers will be recognized. The project previews and the progress bar moves as if the video is playing but only the background file is visible. I tried all the preview options - no luck.
    I decided to try the YouTube widget. I uploaded test videos to YouTube, inserted the Interaction widget and added the url, etc. This option results in a successful preview only when I choose the html 5 output in web browser option. Captivate will successfully publish the project but I get "Java Script Error unable to acquire LMS, API content, may not play properly" messages.
    The published file performs like all of the unsuccessful previews. The file loads and acts as if the videos are playing in that the progress bar moves but there is no video, just the slide background image. I tried different output settings like just SWF, just html5, both SWF and html5, different versions of the flash player, etc. I also added the output folder to the Flash Global Security settings in case it was a permissions issue.
    I'm working on a mac so I emailed a zipped file to my PC and tried to open in Internet Explorer to see if the file might play on a different system or browser - same outcome - no luck.
    Making external video work is critical to my work and use of Captivate so I'm hoping there's something I'm missing or misunderstanding about what I need to do.
    Any help or advice will be appreciated.

    I'm continuing to have problems with the YouTube widget. My client sent me YouTube links and when I copied and pasted the new links into the Captivate file and the published and uploaded the file, the links didn't work.
    To review, I uploaded video files to YouTube and used the interactions widget to insert the linked videos. The videos which I uploaded can be previewed in html5 in web browser but not in any other way. When I publish this file and view the file on my system on my browser (Safari) the file opens but the videos do not play. However, when I upload to my ftp site and open the file from there, the linked YouTube videos play.
    So this led me to believe that I have a file that will work at least in html5 output. But when I replace the original YouTube links that I uploaded with new links provided by my client the videos preview in html5 in web browser mode but do not play on my system or when uploaded to my ftp site. All of the videos (mine and my clients) play in YouTube and preview in html5 mode.
    Additionally, when I ouput the html5 file, the quiz doesn't work properly. The radio buttons don't appear on screen so when answers are selected the user has no way of knowing their selections have been accepted. Oddly, the quiz is registering answers since when you submit there is a brief flash during which you can see the buttons but they quickly disappear and results are tallied accurately at the end. But the quiz is unusable without user feedback for selections. You can view this performance beginning on the sixth slide (the beginning of the quiz).
    http://videoactive.org/PreventingObesityOnlinelinks/index.html
    Are html5 output files compatible with Learning Management Systems? Is there a way to use the YouTube widget in SWF output files?

  • Can I have an external video source run in a window instead of using the full display?

    I'm aware that the 27" iMac models are capable of accepting external video sources, but I'm wondering if it's possible to have an external video source run in a window on the desktop, rather then use the full display. Does anyone know if there's any software I can download to allow this, or will I have to purchase a special capture device?

    hat I DON'T WANT TO OPEN the window application FROM the Labview VI BUT IN the Labview VI. I think it's possible to do that and to do communicate the OpenGL application with the Labview Interface using an ActiveX but I don't know how. Can someone help me ?The desired behavior you desribed may not be possible with that application. In general LabVIEW does not offer a window object that other standalone applications can run it. The closest thing is the ActiveX container. If the programmers for your application created an activeX control of your program and they provided documentation, it should be pretty easy to incorperate the app and labview into one window. I recommend contacting the manufacuturer of the app to see if they have an activeX control version of the app.

  • I want to create an external video widget with iAd. I followed the steps and copied the Url and paste it in the Video pop-up menu in the Properties section of the inspector. When i select 'preview' the video doesn't play and the Url that i pasted is gone.

    i want to create an external video widget with iAd to use in an iBook. I followed the steps and copied the Url and paste it in the Video pop-up menu in the Properties section of the inspector. When i select 'preview' the video doesn't play and the Url that i pasted is gone.
    hope someone can help!

    May have something to do with whether or not the URL can be reached while building your widget.  I've got a video on the web. When I enter the URL into the field for the video object and click to another field,  the URL is replaced with some text indicating that it is accessing the video then updates itself to displaying just the name of the video file.
    It shows just fine in preview and I can see the full path to the video when I export the widget so it should work for you. 
    Is the video accessible from your Mac while you're laying out your widget?
    -Mark

  • How can I get an inserted  video (FLV) in Presenter 7 to stay on the screen once it has finished pla

    How can I get an inserted  video (FLV) in Presenter 7 to stay on the screen once it has finished playing? Right now it disappears once it is done. I'd like it to remain on the screen, or loop if possible, until the user manually moves the presentation forward.

    Hi,
    You may set the slide setting as 'Advance by user'.
    So,
    a. Insert flv on a slide.
    b. On presenter ribbon goto Slide Manager .
    c. Select the slide on which flv is inserted and set Advance by user 'Yes'
    Hope this solves your purpose.
    Thanks,
    Alpi

  • Problem With External Video

    I am currently running Final Cut Pro 5.1.2 on OS X 10.4.8. I am having some serious issues trying to get Final Cut to display the timelines video out to my TV. I have my Canon GL2 connected via FireWire, and set it up so the DV input plays as the audio/video. It then goes out to the TV via some standard RCA jacks. I have done this before, no problem.
    The settings are as follows:
    External Video: All Frames
    Video Playback: Apple FireWire NTSC (720x480)
    Audio Playback: Audio Follows Video
    Sequence Preset: DV NTSC 48 kHz
    Capture Preset: DV NTSC 48 kHz
    Device Control Preset: FireWire NTSC Basic
    If I turn the camera off, the output shows it as 'missing'. I can import using the camera so I know its connected correctly with the FireWire. I can see playback on the TV if I watch the tape, so I know that too is connected correctly.

    Its funny you should reply, I was just looking through my posts, and was reading a response you left months ago when I asked a question, then I came back to this post and there you were again! Thanks, I fiddled with the camera for a bit and finally did something to get it to show up. Marked as solved.

  • TS1846 external video all frames

    When I'm editing my video in Final Cut Pro 7, the external video Video freezes, I only hear the audio. To try to solve, I click on View> External Video> Refresh A /V Devices and nothing changes. Canvas in the program, the video runs normally.

    Freezing or skipping during playback can be caused by any number of things, or by a combination of things:
    1. Using media that doesn't work natively in FCP.  Video formats like H.264 (and many others) should be converted prior to importing.  Look in FCP's list of Easy Set Ups to see which formats are native to FCP.
    2. Effects added to clips exceed your system's real time capabilities.  Render the Sequence fully then try playback again.
    3. Storing media on the boot drive or a USB drive.
    4. Having less than 20% free space on the capture scratch volume and especially on your boot (system) drive.
    5. Playing the Timeline with the Canvas window set larger than 100% or "Fit to Window," whichever fits best without scroll bars.
    6. Having too many overlays activated in the Canvas window (Range Check, Title Safe, etc).
    There may be other contributing factors as well, but those are the most common causes.
    -DH

Maybe you are looking for