Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5

Thread: Fading Button's

  1. #1
    Join Date
    May 2006
    Posts
    5

    Fading Button's

    Would it be possible to create a fading button? say the button starts at about 30% opacity, but once the user puts mouse over button it fades into full opacity. Please if you can manage this please provide and example for me, thanks guys .

  2. #2
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    You can use the Image object's Action Image.SetOpacity(). However, you do not get multiple button-like states.

    Try this:

    1. Open a new, blank project
    2. Create a new Image object (with a darker colored image)
    3. Set the Image object's (see: Property panel) Opacity to say 10.
    4. Double-click on the Image object and go to the On Enter event area
    4. Copy/Paste in the code shown below these directions
    5. Preview (F5) said project and move the mouse over the Image object

    Code:
    for n=1, 90 do
    	Application.Sleep(10)
    		Image.SetOpacity("Image1", n)
    end
    
    Dialog.Message("Message...", "Image's opacity now at 100 percent!  All done!")
    Intrigued

  3. #3
    Join Date
    May 2006
    Posts
    5
    Thanks Intrigued, your code worked really well, the only thing that is strange is right before it fades it kind of flashes to white then fades, its hard to explain but maybe you have some more ideas. Thanks

    I have one more request, ok there was this popular program from a few years back called Kai's super goo, and the interface had some cool effects, like when you put your mouse over one of the buttons it kind of rippled like water, is anything like this possible in ams? Thanks in advance.

  4. #4
    Join Date
    Apr 2005
    Location
    In Wonderworld
    Posts
    246
    If you want effects like that , i would suggest using a flash object insted,that way you can use any effects you want.

  5. #5
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    Quote Originally Posted by grimfandango18
    Thanks Intrigued, your code worked really well, the only thing that is strange is right before it fades it kind of flashes to white then fades, its hard to explain but maybe you have some more ideas. Thanks

    I have one more request, ok there was this popular program from a few years back called Kai's super goo, and the interface had some cool effects, like when you put your mouse over one of the buttons it kind of rippled like water, is anything like this possible in ams? Thanks in advance.
    Replace the other code with:
    Code:
    for n=11, 100 do
    	Application.Sleep(10)
    		Image.SetOpacity("Image1", n)
    end
    
    Dialog.Message("Message...", "Image's opacity now at 100 percent!  All done!")
    And take a look at this offering presented by another forum user for the "effects" end of things:

    http://www.indigorose.com/forums/sho...t=water+effect
    Intrigued

Similar Threads

  1. i love buttons !
    By noonmoon in forum AutoPlay Media Studio 5.0
    Replies: 8
    Last Post: 01-15-2010, 05:05 AM
  2. Help Linking exe's to buttons
    By simdave in forum AutoPlay Media Studio 5.0
    Replies: 6
    Last Post: 05-09-2006, 02:41 PM
  3. fading buttons
    By Jack hoch in forum AutoPlay Media Studio 5.0
    Replies: 3
    Last Post: 11-02-2005, 12:32 AM
  4. How to "batch produce" buttons for AutoPlay Media Studio
    By Corey in forum AutoPlay Media Studio 5.0
    Replies: 11
    Last Post: 08-03-2005, 10:00 AM

Posting Permissions

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