Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 10 of 10
  1. #1
    Join Date
    Apr 2006
    Posts
    6

    Help with music script

    hello evryone

    I use AMS 6.0.0.0.

    I need a litle help with script the thing is
    When I press play music I wont to play it random like in background, but I dont wont to play it when I run Autorun
    so in main page I put script "Audio.Stop(CHANNEL_BACKGROUND);" now when I go on some of the pages and come back, on
    first page the music normal stops,.. and I do not wont to

    so is there some other way to fix this
    or culd someone guide me to the same thread (I maybe mised it) (And bad english)

    thnx for support

  2. #2
    Join Date
    Nov 2005
    Location
    Banned by moderator.
    Posts
    264
    Hello. Here is a code that will stop only once:

    Code:
    local Once = 0;
    if Once = 0 then
    Once = Once +1;
    Audio.Stop(CHANNEL_BACKGROUND);
    end

  3. #3
    Join Date
    Apr 2006
    Posts
    6
    thnx but I get this error

    Line=2: `then` expected near`=`

  4. #4
    Join Date
    Dec 2003
    Posts
    891
    change
    if Once = 0 then
    to
    if Once == 0 then

  5. #5
    Join Date
    Apr 2006
    Posts
    6
    sorry but problem still here
    when I go back on First page music stops

  6. #6
    Join Date
    Nov 2005
    Location
    Banned by moderator.
    Posts
    264
    if Once ~= "done"
    Once = "done";
    Audio.Stop(CHANNEL_BACKGROUND);
    end

    Sorry...

  7. #7
    Join Date
    Apr 2006
    Posts
    6
    I did litle testig and here is right code
    Code:
    if Once ~= "done" then
    Once = "done";
    Audio.Stop(CHANNEL_BACKGROUND);
    end
    thnx evryone for support

    respect

  8. #8
    Join Date
    Apr 2006
    Posts
    6
    and now I have just very litle tiny question

    what is script for:
    when I pres foward >> (butn) to play next song from songlist
    or back << to play privius song from start (not current from begining)

    I hope I am not to much demanding


  9. #9
    Join Date
    Nov 2005
    Location
    Banned by moderator.
    Posts
    264
    Oh...I was not typing is AMS, so I forgot to type the "then"...

    That depeds on what you use. If you use ListBox, it's preety easy, get the selected items, select the next one after the firsts selected item & load & play .

  10. #10
    Join Date
    Apr 2006
    Posts
    6
    sorry but can you give me more info
    I too new....

Similar Threads

  1. .NET 1.1 Dependency Script Questions
    By drpepper in forum Setup Factory 7.0
    Replies: 1
    Last Post: 01-03-2006, 02:04 PM
  2. How can I know the FS Command name of a movie???
    By yoske in forum AutoPlay Media Studio 5.0
    Replies: 27
    Last Post: 01-01-2005, 10:39 PM
  3. Playing Background Music
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 09-26-2003, 12:25 PM
  4. Toggling the Background Music On and Off
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 09-22-2003, 02:59 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