Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 9 of 9
  1. #1
    Join Date
    Feb 2006
    Location
    Greenville, TX
    Posts
    39

    Grin Help with function of ListBox???

    If I understand correctly, List Box can be used to compile a list of audio tracks from which the user can select for listening. So far, I have not been able to get it to work in this manner. In the List Box Properties, under the Settings Tab: Item text: I listed the title of the track, i.e., for Item 1, Genesis 1.
    In the Data column I used Audio.Load to select the source of the track file. (For this trial effort I listed 8 items.) Then in the Script Tab, I selected the action, i.e.: 01 Audio.Load(CHANNEL_NARRATION, "AutoPlay\\Audio\\0001 Genesis 1.wav", true, false); thru: 08 Audio.Load
    CHANNEL_NARRATION, "AutoPlay\\Audio\\0008 Genesis 8.wav", true, false);

    Then when I selected Preview, and clicked on the first track in the list box, it was Genesis 8 that began playing instead of Genesis 1, and no matter which track title I selected only "Genesis 8" would play.

    What am I missing or doing wrong here? How do I set it up to play the correct track that matches the title in the list?

    Thanks for any suggestions.

    Ed Stanley

  2. #2
    Join Date
    Nov 2005
    Location
    Banned by moderator.
    Posts
    264

    same issuse...

    Yeah, I know. I tried to make a playlist for PlayMeNow using listbox...i think you should forget about it...Worm should make a playlist plug-in.

  3. #3
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Actually it's pretty easy to make clickable lists which launch files. It's just a matter of getting used to how the listbox works. And the good news is that it's pretty easy. Please download the attached file here and take a look Ed. It's an example I put together for you which demonstrates one way of reacting to clicks within a list box on a per item basis.

    In this case I activated a dialog when you select an item but you could just as easily set it to launch a file. The main thing to note is how it works, basically with the listbox we figure out which item they've clicked and then we can get the item's corresponding text/data and react accordingly.

    Take a look at the example and let me know if you need me to break it down some more. We'll take it from there. One way or another we'll get you set up with a working menu. And whatever you do, don't get overwhelmed with the scripting, just hang in there and I guarantee we'll get you going.

  4. #4
    Join Date
    Feb 2004
    Location
    Cowfields of Germany
    Posts
    617
    Here you go guys! these two samples will do exactly what you want.

    the first one will use the Audio.Load() and the second one uses the WMP plugin to play the audio files.

    http://www.indigorose.com/forums/sho...37&postcount=5

    http://www.indigorose.com/forums/sho...58&postcount=7

    Quote Originally Posted by Corey
    And whatever you do, don't get overwhelmed with the scripting, just hang in there and I guarantee we'll get you going.
    I was like that when i first started using AMS. Now I just wish other programs were just as easy to use as AMS.
    Hope this helps!

    Chris
    Last edited by stickck; 02-04-2006 at 03:54 AM.

  5. #5
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Hey what happened to my attachment? Weird... Anyhow I see Chris has it covered so it's all good. Still, that's odd. Not odd enough to justify a Leonard Nimoy narration or anything, but odd nonetheless.

    I was like that when i first started using AMS.
    That's good testimony too because Chris is a textbook case of a guy who went from zero to 60 in the flash of an eye. One day he was scratching his head and the very next he was posting help files for someone else. Hee.

  6. #6
    Join Date
    Feb 2004
    Location
    Cowfields of Germany
    Posts
    617
    True...True...

    Here's my first post. Don't laugh to hard but I couldn't even figure out where to change some text loaded in a Label object!

    http://www.indigorose.com/forums/showthread.php?t=10307

    Thanks Corey!

    Chris

  7. #7
    Join Date
    Feb 2006
    Location
    Greenville, TX
    Posts
    39
    Thanks for the input, gentlemen. As soon as I get a chance, probably this afternoon, I'll try again to figure this all out, and get back to you with my results.

    Ed Stanley

  8. #8
    Join Date
    Feb 2006
    Location
    Greenville, TX
    Posts
    39
    Quote Originally Posted by stickck
    Here you go guys! these two samples will do exactly what you want.

    the first one will use the Audio.Load() and the second one uses the WMP plugin to play the audio files.

    http://www.indigorose.com/forums/sho...37&postcount=5

    http://www.indigorose.com/forums/sho...58&postcount=7


    Chris

    I could open the first link, but didn't see how you used Audio.Load(). When I copied your pattern into my project, i.e., selecting my autoplay file source for the data column in "Settings" (AutoPlay\Audio\0001 Genesis 1.wav), and then just as you did in "Script" , I put "dbclick1()" (without the quotes), and when I previewed and selected one of my titles in the listbox an error message appeared: On Select, line 1: attempt to call global 'dbclick1' (a nil value).
    I've tried everything I can think of to try and still either get no playback or the same result as my first attempt described in my first message that started this thread. (The second link about WMP plugin would not download.
    Any additional suggestions?

    Ed Stanley

  9. #9
    Join Date
    Feb 2004
    Location
    Cowfields of Germany
    Posts
    617
    Can you post a sample? it should be something simple.


    Chris

Similar Threads

  1. Another tough one... Interaction between Web and AMS
    By Agent Jones in forum AutoPlay Media Studio 5.0
    Replies: 13
    Last Post: 08-18-2005, 02:10 PM
  2. Function: String.RandomFromPattern
    By Brett in forum Setup Factory 8.0 Examples
    Replies: 0
    Last Post: 10-28-2004, 08:09 AM
  3. Bizarre Callback Function Behaviour - Can anyone help?
    By SRJ in forum AutoPlay Media Studio 5.0
    Replies: 3
    Last Post: 06-30-2004, 09:16 PM
  4. Function: Resize & Center an Image
    By kpsmith in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 05-17-2004, 01:36 PM
  5. Example: Using the ListBox object
    By Ted Sullivan in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 05-07-2004, 12:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts