Control FLV playback with button on different timeline

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

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

Similar Messages

  • Control FLV Playback with separate SWF

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

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

  • AJAX and Actionscript to Control FLV Playback Skin

    I have AJAX running on an application that opens up a new panel displaying a flash video. The flash video uses one of the FLV Playback skins. When I play the video on the panel, everything is fine. But, when I close the panel with the javascript-enabled button, the video would still play even though the panel and video are "gone" from the html page.
    I was looking into using javascript to talk to actionscript to control the FLV Playback skin's stop function so that when the close panel function is activated, the video play's stop function would be called. How do I find out the path to and the name of the stop function inside the playback skin? Is it possible to call the stop function inside the FLV Playback skin? Or, would it be easier to create my own video controller?
    I hope this is clear. Any help is appreciated. Thanks.

    I don't clear your questions
    Regards,
    nha khoa
    nhua
    gia cong
    nhua
    gia cong chi
    tiet
    khuon mau
    thiet ke web
    do dung cho be

  • FLV Playback and Seekbar on different native windows in one Air application

    Hello Everyone.  I'm trying to make a simple video playback AIR application that utilizes the initial native window to house a transport control with a seekbar on it.  Once the application launches, it creates a second (new) window on my second screen and places a FLVPlayback instance on that new window.  Everything works just like it want it to except for one thing.  When the seekbar and FLVplayback instance are not located on the same window stage, the seekbar handle sticks to the mouse when trying to scrub through the video.
    I've added both the transport control and the FLVPlayback instance to the original native window as children and I have also added both of them to the new window as children and everything works just fine.  It's only when they are separated and located on different stages that the seekbar acts up.  When they are on the same stage, I can click on a point on the seekbar and the video jumps to that spot and continues to play and I can also scrub the seekbar, the video updates as I scrub, and when I release the mouse, the seekbar handle stays where I released the mouse.  When they on separate stages, the seekbar handle continues to follow the mouse movement without releasing it.  The video updates as the seekbar handle is moved due to it sticking to the mouse, but if I release the mouse, the handle is still moving with the mouse and the video is still being scrubbed.  Like I said, everything works great except for this and I have reached my limit with time spent on this issue.  Does anyone have any insight into this?
    Here's my code for the project.  This is my first AIR application, so I am coding it as I am learning, please be kind.
    import fl.video.*;
    import flash.display.*;
    import flash.desktop.*;
    import flash.events.*;
    import fl.video.MetadataEvent;
    import flash.geom.*;
    import flash.ui.Mouse;
    import flash.text.*;
    GLOBAL SETUP
    var flvControl:FLVPlayback;
    var MasterWindow = stage.nativeWindow;
    var screen1:Screen = Screen.screens[0];
    var screen2:Screen = Screen.screens[1];
    MASTER WINDOW SETUP
    this.loaderInfo.addEventListener(Event.COMPLETE,maximize);
    transControl.playPauseButt2.addEventListener(MouseEvent.CLICK, PlayButton);
    if (Screen.screens.length > 1){
              createVideoBKG();
              createVideoPlayer();
    GENERAL FUNCTIONS
    //Maximize the initial screen
    function maximize(e:Event) {
              MasterWindow.x = screen1.bounds.left
              MasterWindow.maximize();
              MasterWindow.stage.scaleMode = StageScaleMode.EXACT_FIT;
    //Hide Mouse Behind Video Window On Roll-Over
    function MouseRollOver(e:MouseEvent):void
              {          Mouse.hide()          }
    function MouseRollOut(e:MouseEvent):void
              {          Mouse.show()          }
    //Play-Pause Button Control
    function PlayButton(event:MouseEvent):void
                        if(transControl.playPauseButt2.currentFrame==1 ){
                                  transControl.playPauseButt2.gotoAndPlay(2);
                                  flvControl.play();
                        else {
                                  transControl.playPauseButt2.gotoAndPlay(1);
                                  flvControl.pause();
    function CloseWindow(e:MouseEvent):void
                        NativeApplication.nativeApplication.openedWindows[2].close();
    VIDEO BKG SETUP
    function createVideoBKG(e:Event = null):void{
              var newOptions:NativeWindowInitOptions = new NativeWindowInitOptions();
              newOptions.type = NativeWindowType.LIGHTWEIGHT;
              newOptions.systemChrome = NativeWindowSystemChrome.NONE;
              newOptions.transparent = true;
              var videoBKG:NativeWindow = new NativeWindow(newOptions);
              if (Screen.screens.length > 1){
                        videoBKG.x = screen2.bounds.left;
              videoBKG.maximize();
              chromeSetup(videoBKG);
              videoBKG.activate();
    //Video BKG Chrome Setup
    function chromeSetup(currentWindow):void {
              var vidBKG = new video_bkg();
              vidBKG.name = "video_bkg2";
              vidBKG.addEventListener(MouseEvent.ROLL_OVER, MouseRollOver);
              vidBKG.addEventListener(MouseEvent.ROLL_OUT, MouseRollOut);
              currentWindow.stage.addChild(vidBKG);
    VIDEO Player SETUP
    function createVideoPlayer(e:Event = null):void{
              var newOptions:NativeWindowInitOptions = new NativeWindowInitOptions();
              newOptions.type = NativeWindowType.LIGHTWEIGHT;
              newOptions.systemChrome = NativeWindowSystemChrome.NONE;
              newOptions.transparent = true;
              var videoPlayer:NativeWindow = new NativeWindow(newOptions);
              if (Screen.screens.length > 1){
                        videoPlayer.x = screen2.bounds.left;
                        videoPlayer.y = screen2.bounds.top;
                        videoPlayer.width = screen2.bounds.width;
                        videoPlayer.height = screen2.bounds.height;
                        videoPlayer.stage.scaleMode = StageScaleMode.NO_SCALE;
              videoPlayer.alwaysInFront = true;
              var DVR = new DVR_Player();
              DVR.name = "DVR";
              DVR.x = 0;
              DVR.y = 0;
              DVR.addEventListener(MouseEvent.ROLL_OVER, MouseRollOver);
              DVR.addEventListener(MouseEvent.ROLL_OUT, MouseRollOut);
              videoPlayer.stage.addChild(DVR);
                flvControl = DVR.display2;
              flvControl.width = 1280;
              flvControl.height = 720;
              flvControl.skin = null;
              flvControl.autoPlay=false;   
              flvControl.isLive=false;
              flvControl.fullScreenTakeOver = false;
              flvControl.align = VideoAlign.CENTER;
              flvControl.scaleMode = VideoScaleMode.NO_SCALE;
              flvControl.source = "olympics.f4v";
              flvControl.seekBar = transControl.seekbarContainer2.seeker;
              videoPlayer.activate();

    Does anyone have any ideas about this?

  • Control Drop Zone with Button State

    Does anyone know if you can control the display of a drop zone with the state of a button. I am working on an exercise video and would like change an image based on the selected state of three different buttons.

    Use auto actions on your buttons to jump to new (almost identical) menus with different drop zone video. Auto action can be set in the Button Property Inspector/Advanced Tab. Auto-action will automatically goto the jump target (another menu) upon selection of the button. Don't set an auto-action on the button the jumps to your desired target track.
    eg. - Create 3 menus A, B and C.
    "Menu A" should have: 1) "Button A" as the default selected button and a jump target to whatever track you want, 2) "Button B" should have auto-action that jumps to "Menu B" and 3) "Button C" should have auto-action that jumps to "Menu C".
    "Menu B" should have: 1) "Button B" as the default selected button, and a jump target to whatever track you want, 2) "Button A" should have auto-action that jumps to "Menu A" and 3) "Button C" should have auto-action that jumps to "Menu C".
    "Menu C" should have: 1) "Button C" as the default selected button, and a jump target to whatever track you want, 2) "Button A" should have auto-action that jumps to "Menu A" and 3) "Button B" should have auto-action that jumps to "Menu B".
    -k
    G5   Mac OS X (10.4.3)  
    G5   Mac OS X (10.4.3)  

  • Starting / stopping FLV's with buttons

    Basically all I want to do is have a flv play, then stop...2
    buttons come up and depending on which you click on, plays the
    associated video. Kind of like a choice thing. Video plays ->
    make choice 1 or 2, plays video 1 or 2.
    Shoved the video in the timeline on the main layer.
    Created a new layer. Put the text button on the last frame
    that the video plays on.
    Opened Actionscript on the keyframe of the button.
    Added in
    stop();
    mybutton.onPress = function() {
    gotoAndPlay(710);
    710 is the frame on which i had the other video start, on a
    seperate layer might I add.
    However the result is .... movie plays .... briefly see
    button flash....next video plays without me clicking the button :(
    How do I go about making this happen?
    Thanks,
    - GoOsE

    onPress is not a function in as3. Also, you need to add the
    script to a frame on the timeline. you need to add an event
    listener to your button that calls upon a function to execute your
    code.
    mybutton.addEventListener(MouseEvent.CLICK, doSomething);
    function doSomething(e:MouseEvent):void{
    gotoAndPlay(710);
    };

  • Controlling A Loop With Buttons

    Basically I need start and stop buttons for my loop which is in the main method. I figured I would use a boolean variable whose value is changed by the click of the buttons in a while statement. The problem is the loop is never started. So I must be following the wrong procedure. I would appreciate any help.

    This is part of the code
    public class MyClass extends JFrame implements ActionListener{
    private JButton start, stop;
    private boolean test;
    .....//other variables
    public MyClass() {
    ...initialize other variables
            test = false;
               setTitle("My Class");
               setLayout(new BorderLayout());
               grd = new MyGrid(W,H);
               add(grd);
         JPanel p = new JPanel();
         p.add(start = new JButton("Start"));
               p.add(quit = new JButton("Quit"));
               p.add(stop = new JButton("Stop"));
               add("South",p);
    //My actionPerformed Looks like this
    public void actionPerformed (ActionEvent e) {
            String s = e.getActionCommand();
            if ("Start".equals(s)) {
                flag= true;
            } else if ("Stop".equals(s)) {
                flag = false;
    //...other methods
    public  static void main(String []args){
              MyClass frame = new MyClass();
              JFrame.setDefaultLookAndFeelDecorated(true);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                     frame.setSize(FRAME_WIDTH,FRAME_HEIGHT);
                     frame.setVisible(true);
           while(frame.test == true){
             ///do the loop stuff
    }//end main
    }//end MyClass

  • Best method for flv playback in flash 8

    group,
    i am currently trying to get to grips with flv playback with
    flash 8. i have come across a number of methods for flv playback
    within flash 8 and am curious to know the difference between
    methods and ultimately if there is such a difference discover which
    is best. I have had a few issues with some methods and was
    wondering if it was because that method sucks.
    In particular i am looking for the best method for allowing
    custom skinning of the player with the ability to have a player
    somewhere on stage without it being stapled to the darn flv file.
    METHOD1:
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    theVideo.attachVideo(ns);
    ns.play("testmovie.flv");
    METHOD2:
    import mx.video.*;
    this.attachMovie("FLVPlayback", "my_FLVPlybk", 10,
    {_width:360,_height:240,x:0, y:0});
    my_FLVPlybk.skin = "SteelExternalAll.swf"
    my_FLVPlybk.contentPath = "testmovie.flv";
    my_FLVPlybk.autoSize=true;
    my_FLVPlybk.autoPlay=false;
    what are the differences??
    any help would be much appreciated. Thanks for your time and
    expertises,
    Flash fan.

    Adobe has announced that it has ceased development of Flash for mobile phones (in favour of HTML5, and due to the opposition of both Apple and Microsoft to allow support of Flash for their mobile operating systems), so from that direction neither Microsoft nor Nokia is going to get any help.
    If the Adobe Flash Video format specification is publicly available to use or to license (I don't know if it is), then at least Microsoft could implement support for it, if they wanted to (Nokia might not have sufficient rights from Microsoft to add new codecs to Windows Phone).
    So, you might direct your question primarily to Microsoft, rather than Nokia (of course, a Microsoft representative will probably read this, too, but whether they'll response or not is another matter).

  • In Search for Automatic Sliding Content with Buttons tutorial

    I would like to implement a cross screen sliding content. I would like this content to have buttons which allow to move from one section to another. I would like this buttons to be in the ON position when the corresponding section is on the screen.
    I would like it to start and sycle once automatically, yet to have user a control over it with buttons.
    Does any one know a good tutorial site where I can find something like that?

    check http://www.greensock.com/tag/tutorials/

  • Control 2 flv movies with one button

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

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

  • Controlling multiple movies with one button

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

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

  • Why does a new desktop creation unexpectedly initiate with a background differing from the originating desktop? How can I control or eliminate this behavior?

    Why does a new desktop creation unexpectedly initiate with a background differing from the originating desktop? How can I control or eliminate this behavior?

    CT, I suspect that I either mistated the question or don't understand how to set the default back ground.  In any case, with the background that I have set in system settings, and this is the background to which my sessions consistantly boot, new desktops come up for the second or up to the third background with this initially set background. Then in the third or fourth desktop creation (I seldom go beyond four), the background for the new desktop, is one that I was using one or two months ago...

  • Control 32-bit register with buttons

    I am quite new with Labwindows.
    I need to control a lot of 32-bit registers by using buttons to set or reset each bits.
    (It would be so complicated to manage each button by  CALLBACK function).
    Is there a simple way to controll array of buttons in Labwindows ? Or is there even a concept for "array of buttons" ?
    Like in Labview with array and buttons as boolean variables.

    If you are using CVI 2010 or later you can use arrays of controls which can help you in this issue: here a tip on using them
    EDIT Wolfgang preceded me often! 
    Going a little bit further on his idea of a single callback for several controls, you can add to the controls appropriate callbackData with which can taylor the behaviour of the callback. Suppose you install a single callback on 32 buttons and add the bit index as callbackData on each of then with SetCtrlAttribute (..., ..., ATTR_CALLBACK_DATA, (void *)index); with index from 1 to 32: when you enter the callback you can simply read the callbackData you receive to immediately have the index of the bit to manipulate. The callbackData can only be assigned programmatically, you cannot set it in the UIR editor.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

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

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

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

  • Updating JPanel with buttons from a different class

    I have a JPanel in a class that has a gridlayout with buttons in it for a game board. And my problem is that when I want to update a button using setIcon() the button doesn't change in the GUI because the buttons are in a different class. The JPanel is in a Client class and the buttons are in a GamePlugin class. I've tried a bunch of different things but none of them worked or it was way too slow. I'm sure theres an easy way to do it that I'm not seeing. Any suggestions? Heres part of my code for updating the GUI.
    private JPanel boardPanel = new JPanel(); 
    Container cP = getContentPane();
    cP.add(boardPanel, BorderLayout.WEST);
    boardPanel.setPreferredSize(new Dimension(400, 400));
    boardPanel.setLayout(new GridLayout(8, 8));
    cP.add(optionsPanel, BorderLayout.CENTER);
          * Gets the board panel from the selected plugin.
         public void drawGameBoard(GamePlugin plugin) {
              board = (OthelloPlugin)plugin;
              boardPanel = board.getBoardPanel();
              for (int i = 0; i < GamePlugin.BOARD_SIZE; i++)
                   for (int j = 0; j < GamePlugin.BOARD_SIZE; j++) {
                        board.boardButtons[i][j].setActionCommand("" + i + "" + j);
                        board.boardButtons[i][j].addActionListener(this);
          * This method takes a GameBoard and uses it to update this class' data
          * and GUI representation of the board.
         public void updateBoard(GamePlugin updatedBoard) {
              board = (OthelloPlugin)updatedBoard;
              for (int i = 0; i < GamePlugin.BOARD_SIZE; i++) {
                   for (int j = 0; j < GamePlugin.BOARD_SIZE; j++) {
                        int cell = board.getCell(i,j);
                        if (cell == OthelloPlugin.PLAYER1){
                             board.boardButtons[i][j].setIcon(black);
                        else if (cell == OthelloPlugin.PLAYER2)
                             board.boardButtons[i][j].setIcon(white);
                        else
                             board.boardButtons[i][j].setText("");
         }

    txp200:
    I agree that a call to validate() , possibly repaint(), should fix your problem. In the class with the panel that the buttons are on, i would create a static repaint method that call panel.repaint(). You can then call that method in your other class. Just make sure u only use methods to change the properties of the button, never make a make a new one, as then you will lose the association with the panel. Hope this helps.
    -- Brady E

Maybe you are looking for

  • PowerPivot in SharePoint 2010 - Refresh Excel with Data Feed does not work

    Dear all, I created a PowerPivot chart out of a SharePoint exported list to Data Feed. I then published it to a trusted Document Library. The Chart is working well but is not updating. So if I go to the document library and on the drop down meny of t

  • IDOC: Missing text in Inbound Del

    Hi gurus, Does anyone know or encountered this scenario: I created PO, Delivery and Shipment in BoxA. Automatically Delivery doc that has been created will reflect to BoxB via IDOC, as well as the Shipment. Well, it was posted and successful. But the

  • Why can't I scan a regular photo at 1200 x 1200 dpi into Photoshop Elements 11?

    When I try to scan a photo into Photoshop Elements 11 Organizer I get an error message saying it didn't get the file from the device.  File exceeds maximum size allowed.  It's only a regular photo at 1200 x 1200 dpi.  I need it high quality so simply

  • Load is failing when trying to load Master data

    HI When i am trying to load Master data, i am getting the below message for all the records, can some one let me know what am i doing wrong in here. Below is the message i am able to see in PSA. InfoObject /BIC/ZCONTPSTC does not contain alpa-Conform

  • Failed to start the ttdaemon

    When I am trying to start the ttdaemon I am getting the following error:- ./ttdaemonadmin -start /u01/app/TimesTen/tt1121/bin/ttDaemonAdminCmd: error while loading shared libraries: /u01/app/TimesTen/tt1121/lib/libttco.so: cannot restore segment prot