close the video stream and take me to the menu

I can play video. the menu pleasant reading. that good. in any case, I need to close. while I can go menu and select another video.

Btn1.addEventListener (MouseEvent.CLICK, fl_MouseClickHandler);

function fl_MouseClickHandler(event:MouseEvent):void

{

Video: video of var = new Video (stage.stageWidth, stage.stageHeight - 50);

stage.addChild (video);

var nc:NetConnection = new NetConnection();

NC. Connect (null);

var ns:NetStream = new NetStream (nc);

NS.client = {onMetaData:ns_onMetaData, onCuePoint:ns_onCuePoint};

video.attachNetStream (ns);

NS. Play ("intr.flv");

function ns_onMetaData(item:Object):void {}

trace ("Metadata");

}

function ns_onCuePoint(item:Object):void {}

trace ("cuePoint");

trace (item.name + "\t" + item.time);

}

function closeVideo() {}

NS. Close();

Video.Clear ();

How can I go to the menu

}

}

menu.jpg

'Add' this code does not replace:

Stop();

Video: video of var = new Video (stage.stageWidth, stage.stageHeight - 50);

Btn1.addEventListener (MouseEvent.CLICK, fl_MouseClickHandler);

function fl_MouseClickHandler(event:MouseEvent):void

{

stage.addChild (video);

var nc:NetConnection = new NetConnection();

NC. Connect (null);

var ns:NetStream = new NetStream (nc);

NS.client = {onMetaData:ns_onMetaData, onCuePoint:ns_onCuePoint};

video.attachNetStream (ns);

NS. Play ("intr.flv");

function ns_onMetaData(item:Object):void {}

trace ("Metadata");

}

function ns_onCuePoint(item:Object):void {}

trace ("cuePoint");

trace (item.name + "\t" + item.time);

}

}

closebtn.addEventListener (MouseEvent.CLICK, fl_MouseClickHandler_2);

function fl_MouseClickHandler_2(event:MouseEvent):void

{

NS. Close();

Video.Clear ();

{if (Video.stage)}

video.parent.removeChild (video);

}

}

Tags: Adobe Animate

Similar Questions

  • We lose the choice to close the menu accordion initially.

    After the update. I'm not able to close the menu accordion, and I see not option close to departure. Thanks for the help.

    http://www.highestgoodclothing.com/_blog/Highest_Good_Clothing_Blog

    Before the update from the acrive tab was closed initially.

    "Close it all initially" option in the Panel of the accordion has been replaced by the new behavior that allows an accordion to be reduced in Design view. Refer to the notes of version 4.0 of Muse on the next page for more information on this and other improvements of Widget - http://helpx.adobe.com/content/help/en/muse/release-note/adobe-muse-release-notes.html

    So in your case, you just have to activate the option 'Can close all' for the accordion panel (if it is not enabled already) and close it in Design view in so she can be reduced by default on publish. This is another improvement in widget panel in this version where the Panel selected in Design view will now be selected/active when previewing, export or publish the site on Business Catalyst.

    Thank you

    Vinayak

  • How to close the menu that is opened when you click on the menu button?

    Hello

    When the user clicks the menu button, menu appears.

    Now menu is not closed & my screen behind the menu is updated due to a callback function.

    So, I want to update my menu again accordingly.

    How can I update this menu or close the menu which is open?

    Is it possible to dindane who?

    Yes... His work.

    I tried compact as well, but it did not work in multithreading where I wanted to close the menu on the response of one or two wires.

    It was necessary to aquire lock application event to close the menu in this senario.

    Thnx, it is now resolved...

  • Close the Menu that appears

    I have a 'A' screen with a button that when you press shoot another screen 'B' in the stack. My problem is that when I click on the button control is not immediately transfer to screen 'B '. Instead, the menu of the display 'A', which has only a single element: "Close". This menu selection calls the onClose() method, which puts an end to the application.

    My first problem is that I do not understand why the menu of the display 'A' makes its appearance when I 'B' screen in the stack. I want to transfer control to the screen 'B' and do not see the menu [for the display 'A'] appears at all.

    Help someone?

    Thank you.

    You must add the CONSUME_CLICK style for your button.

  • Can close the menu being hiden or override?

    Generally, the close menu item will close only the current screen. I want to now that he works for leaving the game. It is possible to replace this menu item. If this is not the case, can I hide it?

    Thank you very much!

    You can override the makeMenu() and add a narrow menu allowing to leave your application instead of using the default menu.

    And also overrire method onclose() If you want to do anything when you press ESC.

    Something like:

    import net.rim.device.api.ui.*;import net.rim.device.api.ui.component.*;import net.rim.device.api.ui.container.*;
    
    public class TestScreen extends MainScreen{    public TestScreen()     {        super();                    }
    
        // menu item for exit the application            private MenuItem exitMenu = new MenuItem("Close",100,10)    {        public void run()        {            System.exit(0);        }          };
    
        protected void makeMenu(Menu menu, int instance)    {                menu.add(exitMenu);
    
            // default menu        //super.makeMenu(menu, instance);    }
    
        //it will close the current screen    public boolean onClose()    {        this.close();        return true;            }        }
    

    Concerning

    Bika

  • Close the menu by code

    Hi all

    My app has a screenshot of this self, but this option is available in the menu. The screenshot includes the menu.

    Is it all the same closing the menu in the code?

    I tried getMenu (Menu.INSTANCE_DEFAULT) m:System.NET.Sockets.Socket.close ();

    but no joy.

    Please help - losing hair rapidly.

    Found the answer, repaint the screen

    UiApplication.getUiApplication () .repaint ();

  • Satellite A660 freeze on HD video, streaming and video games on Win7 64 bit

    Hello everyone,

    This is my first message here... I bought a Toshiba Satellite A660-12th, 4 months ago and from the beginning, I have the same problem...
    Gel Gel Gel on video HD 720 and 1080 on streaming (you tube) and video games.
    I have the latest Nvidia driver that I've always updated, I reinstall win 7 and still this * problem.
    I saw many topics on the net about this problem, but I couldn't find any solution.
    The same problem for another series of the laptop.

    [http://forums.computers.toshiba-europe.com/forums/thread.jspa?threadID=57438 | http://forums.computers.toshiba-europe.com/forums/thread.jspa?threadID=57438]
    Is this a common problem for toshiba computers?
    Any help would be appreciated.

    Thank you

    FibZ

    I don't think it's a general or common problem. I have the Satellite P500 with the NVIDIA card inside. Pre-installed driver is Toshiba 8.16.11.8829 driver version, and I have never notice one problem with display or graphics in general.

    I watch blu - ray movies, very often HD trailers on YouTube, play games (for the time Medal of honor, Black Ops) and everything works perfectly.

    What NVIDIA card is in your laptop and what display driver is installed?

  • close a video stream

    I have a function which broadcasts a video in a video object in my scene.

    var nc:NetConnection = new NetConnection();
    NC. Connect (null);
    var ns:NetStream = new NetStream (nc);

    function cueVideo() {}
    myVideo.attachVideo (ns);
    NS. Play ("videoName.flv");
    }

    All fine so far. However, I also have a function intended to stop or remove the video:

    function closeVideo() {}
    NS. Close();
    }

    It's all good as stop/pause the video, but leaves the video paused on screen. I can't find any script that will remove the stream closed altogether. Can anyone help?

    Thank you

    Hi guys - thanks for your help. . Clear() seems to be the way forward, preceded by. close(). Then...

    function closeVideo() {}
    NS. Close();
    myVideo.clear ();
    }

    For the record...
    NS. Play(""); pause just the video on his own.
    NS. Seek (0); combined with ns.close also some pauses the video.

  • My MacBook Pro with El Capitan 10.6.11 close the menu drop down. I have to turn off the power

    The closing down and options no longer work in El Capitan 10.6.11 restart on my MacBook Pro mid-2012. I have to press the power button to turn off.  When shutting down or restarting are selected, the Ribbon at the top of the screen disappears and Finder is no longer available but other aps on the bench of the accused are still available. When I restart after turning off the power, the system is back to normal until I need to close again.

    Hello

    Just in case, run disk utility.

    Open utility disk located in Applications/Utilities

    Then select the disk to boot on the left and then select the first aid tab and then click run.

    If disk utility indicates that the disc seems to be OK, you are finished. Otherwise, you must repair the disk.

  • Cannot close the menu copy so we can print with the Photosmart C4580

    HP Photosmart C4580 all-in-One

    By mistake, we hit the button settings label number 3.  We do not have memory installed maps.  The instructions say that this:

    Otherwise, this button opens the copy settings menu.  Our problem is that we cannot close this menu so that we can print.

    We followed a hot and cold reset reset procedures without result.  The User Guide does not mention how to close this setting.

    So, we can now use the printer.  Can someone help us please?

    Thank you very much in advance,

    Yours,

    Sky22

    As I mentioned in the first post, I tried the hot and cold nothing works reset procedures.  I finally came to my senses and remove the printer and let windows 7 install the drivers again.  Then it worked.  I should have done that right away.

  • How close or minimize the menu box using Display.screenshot ()?

    Hello

    Did someone help out me in finding what way I can minimize or close the menu box while I take the screenshot of any screen?

    The problem is when I select the menu item Printscreen, the Display.Screenshot () method runs, and it takes the screenshot including the menu box that I opened for the selection of the menu-item (Printscreen).

    So, how to remove that box of Menu before you take the screenshot?

    Please answer

    Thank you.

    You might find some useful options in this thread;

    http://supportforums.BlackBerry.com/T5/Java-development/context-menu-coming-in-screenshot-by-using-D...

  • Detect when the menu is opening and closing

    Hello

    In my application, I use the ESC key to return to the previous screen.

    The problem is when to press the MENU button, a menu appears, and it must be able to use the ESC key to close the menu (if he wants).

    So, I would detect when the menu is opened and when the menu closes, I can manage the ESC to go back screen or simply to close the menu.

    Is it possible to do this?

    Thanks in advance

    Hai

    Do not use keylistener.

    Override keyChar() in your screen and locate the ESC key.

  • Close the box of

    I think I have everything but a function works on my PopstyleWeb and that one thing is likely to mean a major change. If I click on the menu header, that the drop down menu opens, if I chose something disappear, or if I let go of the cursor outside the drop-down list, it closes. It's all great. But what happens if I opened the drop down by clicking on the header menu and decide there is nothing that I want. How close? If I click anywhere else on the stage, it remains open. When I click on the header I put a parameter to true and when I click on something it becomes false. It is to open and close the menu. How to make it false if I click on the scene or click again on the header menu. I try to get the drop-down lists like most programs (Word, Director), except that I want mine in the middle of my scene and made with the sprites. How do these menus work! Once you click on a header menu Manager menu remains open and if you move the mouse over the menu as it opens and closes the one you were. Is there a tutorial somewhere that we show how these standard drop down menus?

    I don't know how you have your settings of codes, so I'll just throw this
    here in the hope that it helps. If I did that, I would have a
    Manager to open a menu and a Manager to close on the sprites that are
    responsible for the menu.

    on openMenu me
    sendAllSprites (#closeMenu)
    -your code here to open the menu
    end

    on closeMenu me
    -your code here to close the menu
    end

    This line of sendAllSprites in openMenu() Manager will automatically
    close any menu before opening another. If you have not a
    Manager dedicated to open the menu, you can create just the
    sendAllSprites in your code just before the point where a menu Gets
    opened.

  • Need help to apply the menu option

    Hello

    you will need to apply the menu option by clicking on 'V' image and close the menu option by clicking on the image itself. I did everything but not able to do this menu option can you please help... I have attached my code

    I have

    Have you tried the code that I wrote for you?

  • I currently use an HDMI cable to connect my laptop to my TV for streaming video. Anyway is to close the Mac but still flow from it? Right now it just runs in "standby mode", and the connection is lost.

    Hi all

    I currently use a HDMI cable to the video stream from my MacBook to my TV. It works fine except that it doesn't seem to be a way to close the laptop and always maintain the connection with the TV. First of all, I do not leave my laptop open, exposed if you want, when you're arms reach. Then, when it is connected to the TV, it is at least 2 to 3 yards away. In addition, I have recently adopted a cat. His favorite thing to do is to tap dance across the keyboard. Therefore, I am more able to let the laptop taken in isolation within the connective range of HDMI cable because the cat will walk on it. In any case, I tried to find a way to close the lid of the laptop, the laptop to stay awake and keep the connection to the TV. Any ideas?

    Thank you

    Sally

    See if there is a solution:

    https://support.Apple.com/en-us/HT201834

    Ciao.

Maybe you are looking for