Need help with List box object and Video trainer sample page

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Martin_SBT
    Forum Member
    • Jun 2002
    • 173

    Need help with List box object and Video trainer sample page

    Hi

    I have a page where i used the "Video trainer" Template and i want that when the user select one of the text object in the List box (on same page) it load a certain video in the Media player object on the page! I tried different things but nothing seem to work. Please help!

    Martin
  • Adam
    Indigo Rose Staff Member
    • May 2000
    • 2148

    #2
    Re: Need help with List box object and Video trainer sample page

    Here is a list of instructions to guide you:

    1) Create the ListBox Object

    2) Create a new entry. This entry should look like:

    name that is displayed:ath to file

    for example:

    Movie 1::%SrcDir%\vids\movie1.mpeg

    3) Go to the Actions Tab (of the ListBox) and change the event to "On double click"

    4) Enter the following actions:

    List Box -> Get Selected
    - %SelectedIndex% = ListBoxObject[ListBox1].GetSelected

    List Box -> Get Item Data
    - %ItemData% = ListBoxObject[ListBox1].GetItemData[%SelectedIndex%]

    Media Player -> Load
    - MediaPlayerObject[MediaPlayer1].Load("%ItemData%")

    5) Make sure that this mpeg exists in your distribution folder.

    Now when you double click on any item in the ListBox it will do a MediaPlayer.Load with the path that you specified when you created the List Box.

    There are a bunch of examples floating around.

    Comment

    • Martin_SBT
      Forum Member
      • Jun 2002
      • 173

      #3
      Re: Need help with List box object and Video trainer sample page

      It works now! code was right but i was using %SrcDrv% instead of %SrcDir%.

      Muchos gracias [img]/ubbthreads/images/icons/smile.gif[/img]

      Next Step: adding volume control slider in the video trainer windows! How fun is that!

      Comment

      Working...
      X