Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2005
    Posts
    63

    several action to a button

    -how can i make several action to a button for example when i press a button the music background stop then when i press the same again the music start again .

  2. #2
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,843
    Use Audio.TogglePlay

  3. #3
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    778
    Here's one example:

    Let's assume Label_1 exists with text of "Play Music"

    On page preload
    my_click = 0;

    Label Object:
    On Click:
    --toggle music on & Off
    if my_click == 0 then
    --change Label_1 text to "Pause Music"
    --code your music start up
    my_click = 1; -- 1=music is playing
    else
    --change Label_1 text to "Play Music"
    --code your music pause
    my_click=0; -- 0= music is paused
    end

    This is very rudimentary example of a toggle technique.
    Good luck
    Last edited by holtgrewe; 11-27-2006 at 11:20 AM. Reason: typo

  4. #4
    Join Date
    Nov 2005
    Posts
    63
    thanks guys i will try that

Similar Threads

  1. Action on Cancel button
    By alanK in forum Setup Factory 6.0
    Replies: 2
    Last Post: 08-15-2005, 04:58 PM
  2. Example: Creating an on/off button to toggle background audio
    By Jonas DK in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 07-10-2004, 02:54 PM
  3. INFO: Tips for Debugging Action Lists in AutoPlay Media Studio 4.0
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-03-2002, 08:38 AM
  4. SUF6.0.0.2 -- installer hangs.
    By jassing in forum Setup Factory 6.0
    Replies: 4
    Last Post: 12-19-2001, 11:28 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