Announcement

Collapse
No announcement yet.

Jump to specific page and execute another action with the same button click event

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Jump to specific page and execute another action with the same button click event

    Hi ...

    I have two pages in my project : Page 1 & Page 2 , a simple button at page 1 and a media player object at page 2 , how can i jump to page 2 and load some video file in media player plugin on page 2 at the same time and with one button click ( object on page 1 ) ? is it possible to interact multiple actions between different pages ? or should i use the hide object commands in my specific page ?


  • #2
    You cannot load a video into an object on Page 2, if this is not the active page. And there is no need to.

    Your button should perform the jump to the desired page. In the On Show event script of the page, load the desired video file into the object, and start playback. If you use a single page to play multiple videos, the name of the video to be loaded would typically be set in a variable. So, on Page 1, in the On Click event of the button, set the contents of the variable with the desired file name, and jump to Page 2. On Page 2, load the file as specified in the variable. Start playback. When the video ends, jump back to Page 1. Repeat.

    Ulrich

    Comment


    • #3
      Originally posted by Ulrich View Post
      You cannot load a video into an object on Page 2, if this is not the active page. And there is no need to.

      Your button should perform the jump to the desired page. In the On Show event script of the page, load the desired video file into the object, and start playback. If you use a single page to play multiple videos, the name of the video to be loaded would typically be set in a variable. So, on Page 1, in the On Click event of the button, set the contents of the variable with the desired file name, and jump to Page 2. On Page 2, load the file as specified in the variable. Start playback. When the video ends, jump back to Page 1. Repeat.

      Ulrich
      hi,
      can you explain it in detail like with one project so we can see and learn it properly.
      Thank you very much

      Comment


      • #4
        Hi and Welcome to forums,
        Here is an example of Page jumping etc that I made some time ago for a member to learn basics

        I have added a page for showing video the returning to start page then when clicked to go to video page plays next video
        This is a quick example, Look at codes for Video Finish - Label Click (same can be used as a button) - Page on Show
        Hope this gives you a bit of understanding but really try and read the manual

        OK file is a bit large with the videos included so here is a link to the zipped file

        https://*******/#!DPxxRYJZ!CtWXLTju7...V_HTGV6IEPc3GA
        Cheers

        Comment


        • #5
          file no found

          Comment


          • #6
            re uploaded : https://*******/#!bCJh3CYY!jeYOlrOjR...4pChR2zssZ3s_I
            Cheers

            Comment

            Working...
            X