Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 11 of 11
  1. #1
    Join Date
    Sep 2002
    Posts
    15

    button appear then disapear

    I have a created a hidden button on opening.
    I have made that button appears when another button is clicked.
    How would I make the recently opened button disapear with no manual intervention ?

    Yes, I am an eternal rookie, with brain cells dying as soon as I learn something new. Thank you for any assistance....Sam

  2. #2
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    778
    one way would be:

    Code:
    --on Button1 click:
    Button.SetVisible("Button2", true) 
    Page.StartTimer(5000) -- timer will fire in  5 seconds
    
    --On Page Timer:
    Button.SetVisible("Button2", false)
    If you're just starting out with AMS, the help file has great examples, and the forum also has great examples in the use of timer events.
    Last edited by holtgrewe; 01-20-2008 at 11:34 AM.

  3. #3
    Join Date
    Sep 2002
    Posts
    15
    I tried variations of your suggestion and couldn't get it to work.
    My last try was as follows:

    Image.SetVisible("Image1", true);
    Page.StartTimer(1000);
    Page.StopTimer(4000);
    Image.SetVisible("Image1", false);

    where the action is started by clicking clicking "Label 5"

    I am totally confused but still asking for guidance. I have looked and looked in the user help files but not even sure what to look for....Sam

  4. #4
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    778
    Here's an example.

    hth explain my previous code.

    Oops, this example in in AMS 7 - Download the trial version to view it, or I can repost on AMS6.

    reposted for AMS6
    Attached Files
    Last edited by holtgrewe; 01-20-2008 at 04:20 PM. Reason: AMS 7 apz

  5. #5
    Join Date
    Sep 2002
    Posts
    15
    please repost as V6, I am lost enough as..................tnx

  6. #6
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    778
    Check the prior post, I was able to re-edit before it timed out.

  7. #7
    Join Date
    Sep 2002
    Posts
    15
    Hahahaha, I told you I was confused, just what prog. does on use to open .APZ files .............

  8. #8
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    778
    Save it to your system or just 'open' the file.

    If you download it, you should be able to double-click it and it will open in AMS6.

  9. #9
    Join Date
    Sep 2002
    Posts
    15
    Sorry, I went to neighbors to watch GB and Giants play. I opened your attachment. I moted it worked as advertised.

    I tried to use the code in my application and it didn't work. I began to think I had another (self created) problem elsewhere. I looked and couldn't find anything.

    So I created a new project "Test" and cut and pasted your code. It didn't work.

    I am totally confused (haven't I said that already?, its worse)

    I attached the seperate project for you to look at.
    Sam
    Attached Files

  10. #10
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    778
    One of the events on the Page is 'On Timer'

    Code:
    --On Page Timer:
    Button.SetVisible("Button2", false)
    Place this code in the 'On Timer' Event.
    That should do it for you.

    The help file under 'Page Menu' explains how the 'On Timer' event works.

    I hope that helps, good luck.

  11. #11
    Join Date
    Sep 2002
    Posts
    15
    1st off, thank you for your guidance and patience. I went and did something else after your last guidence to get my mind off of the problem.

    At some point I realized what it was you were saying.

    I stopped trying to put the "TimerStop" as a function of the "button" and made it a function of the "Page".

    I then went back to the example you had attached previously and noted, it was there as well. I missed it before.

    So again I have proved that I am intuitively challenged but I am full of gratittude, thank You again. Sam

Similar Threads

  1. Stuck again ! - button state changes from script
    By qwerty in forum AutoPlay Media Studio 6.0
    Replies: 1
    Last Post: 07-09-2007, 05:12 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. Button Hiding Blues
    By Tezcatlipoca in forum AutoPlay Media Studio 4.0
    Replies: 5
    Last Post: 04-11-2003, 04:57 PM
  4. INFO: The Explore Button on the Distribution Folder Dialog
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-11-2002, 12:06 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