2 Actions on click in button

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • roma123
    Forum Member
    • Feb 2005
    • 13

    2 Actions on click in button

    I have 16 clips(mpeg1) to play.
    I creative 16 buttons on Page1
    On Page2, I have Media Player Object Plugin and BACK button.

    I try to make 2 actions on click(on 16 buttons), jump to page2
    and load to MediaPlayerObject mpeg file by code:

    01 Page.Jump("Page2");
    02 MediaPlayer.Load("Plugin1", "AutoPlay\\Videos\\1.mpg");

    but its not working.

    How to make its right?

    Thanks.
    Last edited by roma123; 05-10-2005, 05:25 PM.
  • Dermot
    Indigo Rose Customer
    • Apr 2004
    • 1791

    #2
    You need to put the Load action in the OnShow event of Page2. You cannot load it from page1.

    Just use a variable to hold the name of the file you want to load. When you click a button on Page1 put the file name into the variable and then jump to page2. In the OnShow event of page two use the variable to load the correct video,

    Example

    In the Button Click on page1 put:
    mpegfile = "1.mpg"
    Page.Jump("Page2");

    Repeat the above for each button on page1 but change the file name.

    Then in the OnShow event of page2 put:
    MediaPlayer.Load("Plugin1", "AutoPlay\\Videos\\"..mpegfile)

    Dermot
    Dermot

    I am so out of here :yes

    Comment

    • roma123
      Forum Member
      • Feb 2005
      • 13

      #3
      BIG THANKS Dermot!

      Comment

      Working...
      X