Actionscript to add to buttons to control flv

Hi,
I'm trying to create the following:
1.A play button that plays an flv.
2.A pause button.
3.Actionscript that makes movie go to a certain frame on
timeline when flv finishes playing.
Any help with the actionscript for these will be much
appreciated.
Cheers

here's the code
var nsVideo:Netconnection = new NetStream(ncVideo)
ncVideo.connection(null);
var nsVideo:NetStream = new NetStream(ncVideo);
nsVideo.play("video.flv");
vFlv.attachVideo(nsVideo);
var nDuration:Number = 0;
mPlay.press = function():Void {
nsVideo.pause(flase);
mPause.onPress = function():Void {
nsVideo.pause(true);
mStop.onPress = function():Void {
nsVideo.pause(true);
nsVideo.seek(0);
create buttons for play pause and stop

Similar Messages

  • Add a button to a FLV Playback skin

    I'd like to add a button to an FLVPlayback skin. This button
    should shrink the size of the VideoPlaceholder and display a menu
    to the right of it (I'll need help with this too, but one step at a
    time). I've been able to put a button into the skin, but it'll only
    show up when I vies the skin file itself, not when I use it AS a
    skin for the FLVPlayback component. How do I get it to appear?
    [edit]I'm using a normal button, but I've noticed that the
    buttons in the skin are individual graphics tied into the skin
    using actionscript. Do I have to do something like this?
    [edit2] I've got Flash CS3 and am trying to use AS3

    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

  • HT201317 On a PC with iCloud Control Panel, open a Windows Explorer window. I cannot see .. Select Photo Stream under Favorites. Open My Photo Stream. Click the "Add photos" button. Select photos to import to My Photo Stream,

    I have a VAIO pc and want to put some photos up to iCloud to then go onto my iPad.
    I have iCloud control panel and have followed the instructions.
    Everything is on that should be on .. on the iPad and pc.
    but I cannot find how to  ...
    Select Photo Stream under Favorites. Open My Photo Stream. Click the "Add photos" button. Select photos to import to My Photo Stream, and then click Open.  ...
    as advised in FAQ on iCloud.
    I cannot find favourites ... sorry !!!
    I use Google Chrome, could that be the problem?
    The Apple shop were very sweet, but sent me home with instructions .........
    Please help
    Carski

    It should look like this...
    Open Windows explorer, select Photo Stream under Favorites on the left sidebar:
    Click on Photo Stream, then to the right double-click on My Photo Stream.  Click on Add Photos on the top the menu bar:
    Select the photos you want to import, then click Open.

  • I am using strobe media playback but i want to add new button for subtitle in control bar,Can anybody tell me how can i do it.

    I am using strobe media playback but i am not able to add new button for subtitle in control bar.
    I have imported assets.fla file in Flash professional but i do not understand how add new button in this fla and then link with action script method to show subtitle.If anybody know about it please tell me.

    Hi,
    Yes you can add video subtitle and I can give you the details how to do
    that. Can you please advise which type of files you have for video
    subtitile and how many language you want to add. i.e. text files or xml
    files.
    Best regards,
    Sunil Kumar
    On Thu, Jan 15, 2015 at 5:22 PM, Add Subtitles to OSMF and <

  • How do I add multiple songs to an existing playlist from the (no longer called) Library? Highlighting multiple songs and clicking the "Add to" button will only add the with the little arrow, not all the highlighted ones!

    How do I add multiple songs to an existing playlist from the (no longer called) Library? Highlighting multiple songs and clicking the "Add to" button will only add the one with the little arrow, not all the highlighted ones! I am using the "new" iTunes.

    For the moment there isn't a way for us end-users to control what is "matched" or "uploaded." That is purely a result of Apple's server-side algorithms.
    To re-add multiple songs at once simply highlight all the songs you want to re-add, then right-click (or Control+click) the list and choose "add to iCloud."

  • How to add a button in top ribbons of ALL library types (Not just document libraries)?

    Hi there,
    How to add this custom button on all Library Types (Not just document libraries)?
    RegistrationId="101" RegistrationType="List" adds this button to Document Libraries only - which does not work for me.
    Thanks so much.

    Hi,
    According to your post, my understanding is that you wanted to add a custom button on the ribbon of all the library.
    You can refer to the following code snippet, it would add a custom button “Site Settings” on the ribbon of all the libraries.
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <CustomAction Id="ListViewCustomization" Location="CommandUI.Ribbon.ListView" RegistrationId="101" RegistrationType="List" Title="List View Ribbon Customization">
    <CommandUIExtension>
    <CommandUIDefinitions>
    <CommandUIDefinition Location="Ribbon.Documents.Share.Controls._children">
    <Button Id="ListViewButton" Command="ListViewButtonCommand" Description="Go to Settings" LabelText="Site Settings" TemplateAlias="o2" Sequence="93"/>
    </CommandUIDefinition>
    </CommandUIDefinitions>
    <CommandUIHandlers>
    <CommandUIHandler Command="ListViewButtonCommand" CommandAction="/_layouts/settings.aspx" />
    </CommandUIHandlers>
    </CommandUIExtension>
    </CustomAction>
    </Elements>
    More reference: http://msdn.microsoft.com/en-us/library/ms473643.aspx
    Thanks & Regards,
    Jason 
    Jason Guo
    TechNet Community Support

  • How do I add a button to an existing form

    I have seen a few questions similar to this, but I am a total novice to customizing SBO.  This is the procedure as I understand it, please tell me if I am correct. 
    I have to have some application running (call it MyApp).  MyApp contains the code to catch the load event for the form I am intersted in, and add the button then let the form load.  Is that correct?  Then what do I need to do to capture the event caused by pressing the new button?  Ultimately, this exercise will add a button to the Activity form and then cause the screen to refresh when the button is pressed.
    I am NOT asking for someone to do this for me, but I see "pieces" of what I think I want to do in the examples and help, I just want to be sure I am heading in the right direction before getting mired down.
    TIA

    Hi Steve,
    For adding your button to a system form, your approach is correct (ie capture the load event of the form your want to customise and add the button using the UI API or by loading via XML). There is an example of customising a system form in the UI API samples from the SDK. There is also an article on how to use XML to load new controls that can be found here:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ebe72e9e-0301-0010-979e-d37dcd714600
    For capturing the event of the user clicking on your new button, what you need to do is trap the Item Pressed event for that form. I also recommend you look at filtering the events that your addon captures. This is good practice as a lack of event filtering can cause significant performance issues.
    Kind Regards,
    Owen

  • Buttons to control video not working

    I have tried to make simple buttons to control play, stop, paus and play again of a video. When that did not work I found the below instructions, and made movieclips for the buttons to use with the imported FLVPlayback (with none skin).
    In step 2 I choose play (for the first play-button/movieclip).
    In step 3, there is no video to choose in the box - only my own movieclips.
    In step 4 - what's the difference?
    In step 5 - there is no setting field...
    Control video playback using behaviors
    Select the movie clip to trigger the behavior.
    In the Behaviors panel (Window > Behaviors), click the Add (+) button, and select the desired behavior from the Embedded Video submenu.
    Select the video to control.
    Select a Relative or Absolute path.
    If required, select settings for the behavior parameters and click OK.
    In the Behaviors panel under Event, click On Release (the default event) and select a mouse event. To use the On Release event, leave the option unchanged.

    what's the instance name of your component and show the code you used for your play button.

  • Add Approver button disabled for PO in sap srm when GR and IR are already posted

    Hello Gurus,
         One of my user has edited an old PO for which the GR and IR has already been posted in backend. Now the reason for editing was to change the expected value for 3 item and he changed the value the approver is still blank as for old PO's there was no approval required but later on the whole scenario changed and based on total value the approvers are decided now. But for this PO still its not showing the appovers and also the add approver button is disabled. Is there any way to enable the Add approver button. Also please let me know whether addition of approver is allowed after the GR and IR are posted in backend.
    Thanks
    Gaurav Gautam

    Solved.
    In Control Actions -> Configure Control of Actions on Header Level, it's not neccessary put the subtype equal to 0.

  • Add Row Button Submits

    I'm using a tabular form in a region on a larger form as an option to enter lines associated with the main form. Each time I hit the ADD ROW button it submits the page and thereby increments my PK for the main form. I may be shooting myself in the foot with the additional twist that I'm using nextval to increment my PK for the main form. But I can't imagine why this should be a problem if the ADD ROW button wasn't submitting each time I wanted to add another item to this tabular form.
    Obviously, I'm a novice at this.
    Thanks for your help -
    Alexandra

    OK, there are a variety of possible issues. I'll guess at a few by describing how the master/detail form works.
    First of all, when you create a standard m/d form, the expectation is that it will be invoked in one of two ways. The page item created for the PK controls this.
    So to set this up let's say my m/d form is on page 200, the name of the master table is STUFF and the name of the PK for the master table is STUFF_JOB_NUM. There will be an item created in page 200 for each column in STUFF, including an item P200_STUFF_JOB_NUM for the PK.
    Let's also say the detail table is MORE_STUFF with a PK called MORE_STUFF_PK. There will not be any items created on page 200 for MORE_STUFF because it will be handled as a tabular form rather than a standard form on a table.
    When page 200 is initiated from another page (via a button or other type of link) the value of P200_stuff_job_num is checked. If it is null, then it is assumed that the page will be used to add a new record to STUFF. If P200_stuff_job_num is not null, the it is assumed that the page will be used to edit the row in STUFF, or to add and/or edit rows in MORE_STUFF. There is a standard process (which in my example would be called Fetch Row from STUFF) that prefills the form if P200_stuff_job_num is not null.
    The linkage between STUFF and MORE_STUFF is assumed to be between STUFF_JOB_NUM and a field in MORE_STUFF (that should usually be indexed as a non-unique key) and that will contain the value from STUFF_JOB_NUM. Let's call this field MORE_STUFF_LINK. This column is in addition to the PK column in MORE_STUFF. The source of the region (look in the region section) for the tabular form will contain the SQL that defines what goes into the tabular table. There will be a WHERE clause in that SQL that links the tabular form rows to the master form. In my example the clause would be: WHERE MORE_STUFF_LINK = :P200_stuff_job_num.
    So the following things will be true:
    if P200_stuff_job_num is null then there will be a CREATE button at the top on the assumption that you are creating a new row. The tabular form will NOT appear on the page as there won't be any detail records yet nor any way to add them.
    if P200_stuff_job_num is not null then there will be DELETE and APPLY CHANGES buttons at the top on the assumption that you want either to delete or modify the row. ALSO, the tabular form will now appear, but it might be empty (just buttons, but no data). Now the "add row" button will add a row to the tabular table that can filled in and posted with APPLY CHANGES. If there are existing rows, they can be edited and changes saved with the APPLY CHANGES.
    ====
    (not done, but will get back later... I think I still need to explain how the page that invokes the m/d page should be set up.)

  • How to add a button to play 1 minute audio?

    I would like to add a button to a web page. Clicking the button would play about one minute of audio. I will appreciate very much if someone could help me accomplish this. Thanks greatly in advance. Tom

    As a caution,
    1 of the absolute WORST things you can do in web design is to have an audio file autoload and play as soon as a website loads. This is incredibly annoying to most web users.
    I am not saying you are planning this, but consider the following situations:
    1) A user is listening to an audio broadcast of the local news while surfing the web, or his favorite cd. All of a sudden, what they are trying to listen to is unexpectedly overridden by sounds from a web page, that they didn't ask to hear.
    2) A user is planning her wedding, while at work. She logs onto a photography website quickly to view some pictures that a co-worker had said were great, and all of a sudden the people in the next 20 cubicles are distracted by music blaring out.
    3) Your aunt finally gets her young, collicky child to sleep. To unwind, she surfs the web for a bit. She decides to pop over and read your blog, and all of a sudden the music breaks the silence, waking up the child.
    Audio and video on a webpage is great, but should ALWAYS be at the control of the end user.
    Cheers!
    Ian

  • Add a button to the branch/root in a Flex Tree

    Can someone provide me code or  guide me how to  add a button to all nodes that has children/leaf( but not  to leaf). I tried from the example in this link
    http://www.remwebdevelopment.com/dev/a31/Flex-Checkbox-TreeItemRenderer.html , but I ma getting buttons for all the nodes(including leaf).
    i need to hav ethe button on the rideside corners horizontally to all branches/root.
    Please correct me where i am wrong or provide me correct code. Thanks in advance
    package  
    PKG{
    import mx.controls.Button;  
    import mx.controls.Tree;  
    import mx.controls.treeClasses.TreeItemRenderer;  
    import mx.controls.treeClasses.TreeListData;  
    public class TreeData extends TreeItemRenderer{
    private var bWidth:Number = 30;  
    private var bHeight:Number = 20;  
    public function TreeData(){
    super();}
    var btn:Button=new Button();  
    override protected function createChildren():void{
    //addChild(btn);
    super.createChildren();}
    override public function set data(value:Object):void{
    super.data = value;  
    // get the tree that owns us  
    var _tree:Tree = Tree(this.parent.parent);  
    // if the current node is a branch node  
    //for each(item:Object in  
    if(TreeListData(super.listData).depth=1)                             -or if(TreeListData(super.listData).hasChildren)   these are not working for me{
    btn.width = bWidth;
    btn.height= bHeight;
    btn.label=
    "Remove Attachment";btn.right=10;
    else{
    override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void{ 
    super.updateDisplayList(unscaledWidth,unscaledHeight); 
    if(super.data){ 
    var tld:TreeListData = TreeListData(super.listData); 
    // if the current node is a branch node  
    if(TreeListData(super.listData).depth=1){
    this.btn.visible=true; 
    this.btn.x=200; 
    this.btn.y = super.label.y+4; 
    //super.label.x = this.btn.x +; 
    //this.btn.y = super.label.y+8; 
    else{
    this.btn.visible=false; 
    this.btn.includeInLayout=false;}

    Hi Albert.
    You need to do a few things for that :
    - Create your own GUI status by copying STANDARD_FULLSCREEN from function group SLVC_FULLSCREEN.
    - Set your own PF-Status using the Exclude table because otherwise your exclude table would become meaningless.
    - define a subroutine to handle the user commands.
    Sample implementation :
    FORM pf_status USING extab TYPE slis_t_extab.
      extab = pf_exclude.   
      SET PF-STATUS 'STANDARD' EXCLUDING extab.       
    ENDFORM.                    "PF_STATUS
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = repid
          i_callback_user_command  = 'USER_COMMAND'
          i_callback_pf_status_set = 'PF_STATUS'
          is_layout                = layout
          it_fieldcat              = fieldcat
          it_excluding             = pf_exclude
        TABLES
          t_outtab                 = itab
        EXCEPTIONS
          OTHERS                   = 0.
            FORM user_command  USING r_ucomm LIKE sy-ucomm
                                       rs_selfield TYPE slis_selfield.
    ENDFORM.
    Please reward points if found helpful.

  • Add customer button to check status screen

    hi everyone
    i'm quite new in developing srm and need your help.
    my customer wants me to put a new customer button on the check status web screen at item level which is supposed to work like the print button.
    so if i want to integrate this customer button do i have to modify the screen and html template? as far as i know there is no customer exit for this?!
    thanks in advance!

    Hi
    <u>Which SRM version are you using ?</u>
    <b>The addition of a new button for a new process means modification to standard screens, HTML templates used in the relevant Internet (Web) Services and the releavnt source code.
    Addition of button can only be done through ITS Template change.Please look in the Internet services say - BBP_BID_INV (for Bid Invitations) Or for service - BBPSC01 (shopping cart) for the exact template in whcih you want to add the button</b>
    <b>You have to define a new button in the screen and in the template. Then assign to it an OK_CODE and manage it in the PBO of the screen.</b>
    There is no BADI which can do this as this is not a SAP funtionality. You need to do a little bit of research on this to get the job done.
    <b>As a start step, You can use the BADIs - BBP_CUF_BADI and  BBP_CUF_BADI_2 to change the display from customer-defined fields to the SAP standard screen. This BAdI enables you to control whether the fields can be edited, and how they are displayed.</b>
    MODIFY_SCREEN method will Show/hide field display and restrict edit options.
    <u>For more information on BADI please go to SPRO -> BADI.
    OR View the information on BADI's.</u>
    http://help.sap.com/saphelp_nw04/helpdata/en/e6/d54d3c596f0b26e10000000a11402f/content.htm
    <u>Implement -  BADI - BBP_CUF_BADI (in SRM 4.0) to display a customized screen.</u>
    <b>Related link -></b>
    a new button required on shoppingcart screen
    <u>Hope above proves helpful to you.</u>
    Regards
    - Atul

  • Need to Add a button in ALV Tool Bar

    Hi,
    I have a requirement where in i need to add a button to a standard ALV report. Its using the class CL_GUI_ALV_GRID. There is a Badi for the report. The Report is co05n and the Badi is WORKORDER_INFOSYSTEM . I am getting the handle of
    CL_GUI_ALV_GRID object reference before screen display. Any guidance on how to add new button now to that toolbar?
    Any help will be rewarded.
    Thank you.
    regards,
    Deepthi lakshmi.A.

    Dear Deepthi Lakshmi.A.,
    Refer the standard program BCALV_GRID_05                  Add a Self-Defined Button to the Toolbar.
    PROGRAM BCALV_GRID_05.
    Purpose:
    ~~~~~~~~
    Demonstrate the creation of an own toolbar button.
    To check program behavior
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    The report shows a list of flights of one airline.
    Select one or more lines and press the 'Detail'-Button to popup
    a dialog window with related bookings.
    Essential steps (Search for '§')
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1.Apply steps for event handling for events TOOLBAR and
      USER_COMMAND (see example for print events)
    2.In event handler method for event TOOLBAR: Append own functions
      by using event parameter E_OBJECT.
    3.In event handler method for event USER_COMMAND: Query your
      function codes defined in step 2 and react accordingly.
    4.Call method 'set_toolbar_interactive' to raise event TOOLBAR.
    INCLUDE .
    Predefine a local class for event handling to allow the
    declaration of a reference variable before the class is defined.
    CLASS lcl_event_receiver DEFINITION DEFERRED.
    DATA: ok_code LIKE sy-ucomm,
          gt_sflight TYPE TABLE OF sflight,
          gt_sbook TYPE TABLE OF sbook,
          g_repid LIKE sy-repid,
          g_max type i value 100,
          gs_layout   TYPE lvc_s_layo,
          cont_on_main   TYPE scrfname VALUE 'BCALVC_TOOLBAR_D100_C1',
          cont_on_dialog TYPE scrfname VALUE 'BCALVC_TOOLBAR_D101_C1',
          grid1  TYPE REF TO cl_gui_alv_grid,
          grid2  TYPE REF TO cl_gui_alv_grid,
          custom_container1 TYPE REF TO cl_gui_custom_container,
          custom_container2 TYPE REF TO cl_gui_custom_container,
          event_receiver TYPE REF TO lcl_event_receiver.
    Set initial dynpro
    SET SCREEN 100.
    LOCAL CLASSES: Definition
    *===============================================================
    class lcl_event_receiver: local class to
                            define and handle own functions.
    Definition:
    ~~~~~~~~~~~
    CLASS lcl_event_receiver DEFINITION.
      PUBLIC SECTION.
        METHODS:
        handle_toolbar
            FOR EVENT toolbar OF cl_gui_alv_grid
                IMPORTING e_object e_interactive,
        handle_user_command
            FOR EVENT user_command OF cl_gui_alv_grid
                IMPORTING e_ucomm.
      PRIVATE SECTION.
    ENDCLASS.
    lcl_event_receiver (Definition)
    *===============================================================
    LOCAL CLASSES: Implementation
    *===============================================================
    class lcl_event_receiver (Implementation)
    CLASS lcl_event_receiver IMPLEMENTATION.
      METHOD handle_toolbar.
    § 2.In event handler method for event TOOLBAR: Append own functions
      by using event parameter E_OBJECT.
        DATA: ls_toolbar  TYPE stb_button.
    E_OBJECT of event TOOLBAR is of type REF TO CL_ALV_EVENT_TOOLBAR_SET.
    This class has got one attribute, namly MT_TOOLBAR, which
    is a table of type TTB_BUTTON. One line of this table is
    defined by the Structure STB_BUTTON (see data deklaration above).
    A remark to the flag E_INTERACTIVE:
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            'e_interactive' is set, if this event is raised due to
            the call of 'set_toolbar_interactive' by the user.
            You can distinguish this way if the event was raised
            by yourself or by ALV
            (e.g. in method 'refresh_table_display').
            An application of this feature is still unknown...
    append a separator to normal toolbar
        CLEAR ls_toolbar.
        MOVE 3 TO ls_toolbar-butn_type.
        APPEND ls_toolbar TO e_object->mt_toolbar.
    append an icon to show booking table
        CLEAR ls_toolbar.
        MOVE 'BOOKINGS' TO ls_toolbar-function.
        MOVE icon_employee TO ls_toolbar-icon.
        MOVE 'Show Bookings'(111) TO ls_toolbar-quickinfo.
        MOVE 'Detail'(112) TO ls_toolbar-text.
        MOVE ' ' TO ls_toolbar-disabled.
        APPEND ls_toolbar TO e_object->mt_toolbar.
      ENDMETHOD.
      METHOD handle_user_command.
    § 3.In event handler method for event USER_COMMAND: Query your
      function codes defined in step 2 and react accordingly.
        DATA: lt_rows TYPE lvc_t_row.
        CASE e_ucomm.
          WHEN 'BOOKINGS'.
            CALL METHOD grid1->get_selected_rows
                     IMPORTING et_index_rows = lt_rows.
            CALL METHOD cl_gui_cfw=>flush.
            IF sy-subrc ne 0.
    add your handling, for example
              CALL FUNCTION 'POPUP_TO_INFORM'
                   EXPORTING
                        titel = g_repid
                        txt2  = sy-subrc
                        txt1  = 'Error in Flush'(500).
            else.
                      perform show_booking_table tables lt_rows.
            ENDIF.
        ENDCASE.
      ENDMETHOD.                           "handle_user_command
    ENDCLASS.
    lcl_event_receiver (Implementation)
    *===================================================================
          FORM EXIT_PROGRAM                                             *
    FORM exit_program.
    The instance grid2 is freed not until the program exits from the
    main screen.
    (It is created only once during the first selection of SBOOK,
    no matter how many times the second window is called).
      CALL METHOD custom_container1->free.
      IF not custom_container2 is initial.
        CALL METHOD custom_container2->free.
      ENDIF.
      CALL METHOD cl_gui_cfw=>flush.
      IF sy-subrc ne 0.
    add your handling, for example
        CALL FUNCTION 'POPUP_TO_INFORM'
             EXPORTING
                  titel = g_repid
                  txt2  = sy-subrc
                  txt1  = 'Error in Flush'(500).
      ENDIF.
      LEAVE PROGRAM.
    ENDFORM.
    *&      Module  PBO_100  OUTPUT
          text
    MODULE pbo_100 OUTPUT.
      SET PF-STATUS 'MAIN100'.
      SET TITLEBAR 'MAIN100'.
      g_repid = sy-repid.
      IF custom_container1 is initial.
    select data from table SFLIGHT
        PERFORM select_table_sflight CHANGING gt_sflight.
    create a custom container control for our ALV Control
        CREATE OBJECT custom_container1
            EXPORTING
                container_name = cont_on_main
            EXCEPTIONS
                cntl_error = 1
                cntl_system_error = 2
                create_error = 3
                lifetime_error = 4
                lifetime_dynpro_dynpro_link = 5.
        IF sy-subrc ne 0.
    add your handling, for example
          CALL FUNCTION 'POPUP_TO_INFORM'
               EXPORTING
                    titel = g_repid
                    txt2  = sy-subrc
                    txt1  = 'The control could not be created'(510).
        ENDIF.
    create an instance of alv control
        CREATE OBJECT grid1
               EXPORTING i_parent = custom_container1.
    Set a titlebar for the grid control
        gs_layout-grid_title = 'Flights'(100).
    allow to select multiple lines
        gs_layout-sel_mode = 'A'.
        CALL METHOD grid1->set_table_for_first_display
             EXPORTING i_structure_name = 'SFLIGHT'
                       is_layout        = gs_layout
             CHANGING  it_outtab        = gt_sflight.
    ->Create Object to receive events and link them to handler methods.
    When the ALV Control raises the event for the specified instance
    the corresponding method is automatically called.
        CREATE OBJECT event_receiver.
        SET HANDLER event_receiver->handle_user_command FOR grid1.
        SET HANDLER event_receiver->handle_toolbar FOR grid1.
    § 4.Call method 'set_toolbar_interactive' to raise event TOOLBAR.
        CALL METHOD grid1->set_toolbar_interactive.
      ENDIF.                               "IF grid1 IS INITIAL
      CALL METHOD cl_gui_control=>set_focus EXPORTING control = grid1.
    ENDMODULE.                             " PBO_100  OUTPUT
    *&      Module  PAI_100  INPUT
          text
    MODULE pai_100 INPUT.
      CASE ok_code.
        WHEN 'EXIT'.
          PERFORM exit_program.
      ENDCASE.
      CLEAR ok_code.
    ENDMODULE.                             " PAI_100  INPUT
    *&      Module  PBO_0101  OUTPUT
          text
    MODULE pbo_0101 OUTPUT.
      IF custom_container2 is initial.
    (the data from sbook is already selected)
    create a custom container control for our ALV Control
        CREATE OBJECT custom_container2
            EXPORTING
                container_name = cont_on_dialog
            EXCEPTIONS
                cntl_error = 1
                cntl_system_error = 2
                create_error = 3
                lifetime_error = 4
                lifetime_dynpro_dynpro_link = 5.
        IF sy-subrc ne 0.
    add your handling, for example
          CALL FUNCTION 'POPUP_TO_INFORM'
               EXPORTING
                    titel = g_repid
                    txt2  = sy-subrc
                    txt1  = 'The control could not be created'(510).
        ENDIF.
    create an instance of alv control
        CREATE OBJECT grid2
               EXPORTING i_parent = custom_container2.
    change title
        gs_layout-grid_title = 'Bookings'(101).
        gs_layout-sel_mode = ' '.
        CALL METHOD grid2->set_table_for_first_display
             EXPORTING i_structure_name = 'SBOOK'
                       is_layout        = gs_layout
             CHANGING  it_outtab        = gt_sbook.
      ELSE.
        CALL METHOD grid2->refresh_table_display.
      ENDIF.                               "IF custom_container2 IS INITIAL.
      CALL METHOD cl_gui_control=>set_focus EXPORTING control = grid2.
      CALL METHOD cl_gui_cfw=>flush.
      IF sy-subrc ne 0.
    add your handling, for example
        CALL FUNCTION 'POPUP_TO_INFORM'
             EXPORTING
                  titel = g_repid
                  txt2  = sy-subrc
                  txt1  = 'Error in Flush'(500).
      ENDIF.
    ENDMODULE.                             " PBO_0101  OUTPUT
    *&      Form  SELECT_TABLE_SFLIGHT
          text
         <--P_GT_SFLIGHT  text
    FORM select_table_sflight CHANGING p_gt_sflight LIKE gt_sflight[].
      SELECT * FROM sflight INTO TABLE p_gt_sflight up to g_max rows.
    ENDFORM.                               " SELECT_TABLE_SFLIGHT
    *&      Form  SELECT_TABLE_SBOOK
          text
         -->P_LS_SFLIGHT  text
         <--P_GT_SBOOK  text
    FORM select_table_sbook USING    p_ls_sflight LIKE LINE OF gt_sflight
                            CHANGING p_gt_sbook LIKE gt_sbook[].
      DATA: lt_sbook LIKE gt_sbook[].
    Select data from sbook according to a line of sflight
    and append that data to table p_gt_sbook
      SELECT * FROM  sbook INTO TABLE lt_sbook
             WHERE  carrid  = p_ls_sflight-carrid
             AND    connid  = p_ls_sflight-connid
             AND    fldate  = p_ls_sflight-fldate.
      APPEND LINES OF lt_sbook TO p_gt_sbook.
    ENDFORM.                               " SELECT_TABLE_SBOOK
    *&      Module  PAI_0101  INPUT
          text
    MODULE pai_0101 INPUT.
      CASE ok_code.
        WHEN 'RETURN'.
          LEAVE TO SCREEN 0.
      ENDCASE.
      CLEAR ok_code.
    ENDMODULE.                             " PAI_0101  INPUT
    *&      Form  show_booking_table
          text
         -->P_ET_INDEX_ROWS  text
    FORM show_booking_table TABLES p_et_index_rows
                                    STRUCTURE lvc_s_row.
      DATA: ls_selected_line LIKE lvc_s_row,
            lf_row_index TYPE lvc_index,
            ls_sflight LIKE LINE OF gt_sflight.
      CLEAR gt_sbook[].
      LOOP AT p_et_index_rows INTO ls_selected_line.
        lf_row_index = ls_selected_line-index.
    read selected row from internal table gt_sflight
        READ TABLE gt_sflight INDEX lf_row_index INTO ls_sflight.
    select corresponding lines of table sbook
    and append new lines to global table
        PERFORM select_table_sbook USING ls_sflight
                                   CHANGING gt_sbook.
      ENDLOOP.
    call dialog screen and display new alv control
      CALL SCREEN 101 STARTING AT 10 5.
    ENDFORM.                               " show_booking_table
    Regards,
    Naveen.

  • Play and plause button and control bar are missing belw xfinity player

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [/questions/840891]</blockquote>
    when watching video, can not see play and pause button and control bar, it is missing below xfinity player.

    Ok BE...I took you advice and used a prebuilt skin, but tweeked it to get it looking how I wanted. However, now when I switch between the different videos, the playhead stays at the spot that it previously was. For example, if the playhead is currently 50% through video #1 and I click video #2, the playhead is still sitting at 50%. How would I reset the playhead to the beginning of the new video?
    import fl.video.*;
    var flvPlayer:FLVPlayback = new FLVPlayback();
    addChild(flvPlayer);
    flvPlayer.skin = "MySkin.swf";
    flvPlayer.skinAutoHide = true;
    flvPlayer.skinFadeTime = 300;
    flvPlayer.x=78;
    flvPlayer.y=89;
    flvPlayer.width=640;
    flvPlayer.height=360;
    flvPlayer.source = "flv/Video1.f4v";
    vid1.addEventListener(MouseEvent.CLICK, fl_ClickToSetSource1);
    function fl_ClickToSetSource1(event:MouseEvent):void
    flvPlayer.source = "flv/Video1.f4v";
    vid2.addEventListener(MouseEvent.CLICK, fl_ClickToSetSource2);
    function fl_ClickToSetSource2(event:MouseEvent):void
    flvPlayer.source = "flv/Video2.f4v";
    I know I need to do something in the setSource function, but don't know how.
    Thanks.
    Mike

Maybe you are looking for

  • Using a local testing server

    I am using DW MZ 2004. Fairly new at game but not a complete novice. I am trying to test my site in the browser. I am using the Manage Sites Advanced utility. Currently these are the details for my site: Local Info: Site Name: BKSolutions Local Root

  • BI SP13 - Authorization Error

    Hello All, We are running BI with SP13 patch. Unfortunately after applying SP13 , many issues have come up in the BI portal. When the user tries to login, the login page is prompted back with no reply about authentication failed or so. After logging

  • Access, by all users,  to alocally installed applet.

    Hi, A seemingly simple question that I can't find the answer to.... How can I make it possible for all users (windows) to access a cached applet. Due to security issues, the applets need to be installed offline (into the cache)...this has been done,

  • Adobe Licenses have "expired" after installing Mavericks. Who do I kill first? :-)

    I have been a very proud supporter of Macs for over 25 years, but right now I am about to throw this #$%^!! thing out the window and go buy a PC... I recently loaded OS 10.9 Mavericks and now I can't use a single one of my Adobe products because the

  • Memory Card Reader Problem

    Hi, I have a HP Pavilion Entertainment PC DV7-1002ea laptop, which has a multi card reader on the left side. However i dont know what cards i can inster directly in, i have tried my SD card and Sony Pro card but they dont seam to fit. Can someone ple