How do I make a button have a permanent down state?

How do i make it so when you when you click on the button it
changes the button..
for example
normal > red
rollover > green
when clicked > stays blue

I solved that problem by making the down state an actual
frame in the timeline.
ie. I want something to happen when you press the button.
That something is going to happen on frame 10 and the button is on
frame 1-9. Make a Layer called ACTIONS. Then while on that button
frame range (1-9) and after selecting that button, in the Actions
panel I put
on (release) {
gotoAndPlay(10);
Then I select the ACTIONS layer I created and put a
stop();
at frame 9... so it waits for the button. you could just send
it back to frame 1 if you want an anim to loop.
Anyway, on Frame 10 (when that button is pressed) I replace
it with what it stays with... the down or SELECTED STATE button.
This was how fixed my buttons to stay down.
there is probably a better solution somewhere.

Similar Messages

  • How can you make one button preform different actions in Xcode?

    How can you make one button "preform a click" and "orderfront"? Is that possible? Because what I am doing is making a welcome window to my application for Mac OS X 10.6, and I have two buttons in that window, one says "Connect" which connects a a WebView to a url and the other button opens up the main window. So how can I a make a button do multiple things at once??

    Ah - If you are just using bindings between various objects from Interface Builder, you can reduce your application code a bit (sometimes quite a bit), but there is only so far you can go. Typically variables and routines are defined in your application that Interface Builder hooks into, so that your application code (usually Objective-C, but can be others) can use these variables and routines to determine what is happening in the user interface.
    I'm not sure how up-to-date the project code is (or what programming code you are familiar with), but you can take a look at Apple's Cocoa Application Tutorial to see what is (usually) involved in creating an application.

  • How do I make a button NOT take focus when it is clicked?

    I am trying to create a virtual keypad and the problem is that when I have a Robot make a KeyEvent for a certain number when a certain button is pressed, the TextField loses focus and the focus is placed on the button that was pressed, so nothing appears in the TextField.
    How can I make a button NOT take the focus when it is pressed?
    Edited by: tox0tes on Nov 28, 2008 8:06 PM

    great. another way is to have a call to myTextField.requestfocus() in the button's actionlistener actionPerformed method, but that leads to tight coupling.

  • How do I make a button onj the form which will submit and send the pdf as an email?

    how do I make a button on the form which will submit and send the pdf as an email?

    You can set up a button with a "Submit a form" action and use a mailto type URL to specify the email address you want the forms sent do. If you want to send the entire PDF, select that option and not FDF or anything else. The mailto URL should not include any spaces and the "mailto" part should be lowercase, like:
    mailto:[email protected]
    This will attempt to initiate an email using the users default email client. If the user does not have one set up or there is some other problem, the email might not get initiated. If it needs to work with Reader versions prior to 11, then the form needs to be Reader-enabled, which you do in Acrobat 11 by selecting: File > Save As Other > Reader Extended PDF > Enable More Tools

  • How can I make a button that on press the object appears and on second press the object to disappear

    Hello,
    I'm quite new to flash programing, and I don't know how can I make a button that will make the object appear and disappear.Till now I have this code for the appear:
    on (press)
        _root.top1.gotoAndStop(2);
        _root.topp.gotoAndStop(2);
        _root.mm1.gotoAndStop(2);
              _root.m1.gotoAndStop(2);
    but from here I'm stuck.
    Thank you for your help

    What you can do is use the _visible property of the object to make it appear and disappear, or more correctly, use the opoosite of the _visible property.  You should not put code "on" objects, keep it in the timeline.
    If "object" is the instance name of the object you want to toggle, then in the timeline code you can use...
    object._visible = false;  // start with the object being invisible
    yourButtonName.onRelease = function(){
        object._visible = !object._visible;
    That one line in the function sets the object's _visible property to be the opposite of what it currently is.

  • How can I make my buttons be gone forever?

    Just starting out with Flash and have run into a problem. I have several scenes with buttons that can be pressed once and then they disappear using:
    myBtn1.onRelease = function(){ this._visible=false}
    But when I go back to the scene the buttons reappear. How can I make my buttons be gone forever?

    if you have more than 1 button that should be made not visible at any given time, you'll need to use an array to store those button references.  otherwise, you can use:
    var alreadyRemoved:Boolean;
    if(alreadyRemoved){
    myBtn1._visible=false;
    myBtn1.onRelease=function(){
    this._visible=false;
    alreadyRemoved=true;

  • I want to know why some box of Iphone5s it's not come full accessories in box simple my iPhone 5s I have bought from Apple store last week it's first time for me use iPhone but so surprise me how the company make the phone have to use a pin to open

    I want to know why some box of Iphone5s it's not come full accessories in box simple my iPhone 5s I have bought from Apple store last week it's first time for me use iPhone but so surprise me how the company make the phone have to use a pin to open the sim but didn't give a pin inside the box and I ask staff at store their said they also don't know some box have some of are don't have a pin come together so then they told me I have to find solution or I have to buy a pin by my self I can buy it by myself but I really don't understand how come apple big company but how it's happen like this?thank you.

    Where did you purchase this. The US phones do not come with the SIM removal tool anymore. They haven't for some time now. I'm not even sure it comes with any of the devices anymore. You can just straighten out a paper clip and do the same thing.

  • How can I make a button "react"?

    This is probably a super silly question, but you know how it is, sometimes we sit on the answer and still can't find it... How can I make a button react to a click? I just want the simple effect of the button changing colors or looking like the user pushed it. Right now it's just the same old plain button, no matter if I click it or not, you can't really tell the difference. How can I give it the "pushing the button" effect? Thanks guys!

    You can choose image button and then choose from the available image buttons, or click on the folder icon when you select the image button and choose from the Gallery of Captivate 6.
    Few image buttons change color on hover or onclicked, these effects are predefined in them.
    Or you can edit that button on which you are working, from properties Panel.
    The Post and Cancel button on this thread seems like a transparent button in Captivate with different fill and stroke color, and transparency is also less, and with corner radius of 0.
    You will find these all optionns, when you will click on that button and then click on the properties panel.
    Thanks.

  • How do I make auto delete stay off permanently?

    How do I make auto delete stay off permanently?

    You can enable Firefox to remember your password for a site so whenever you visit it, it will automatically log you in. Just select your name from the drop down box and your username and password should be inputted into the box.
    First you need to have remember passwords for sites on first.
    To do this go to '''Tools>Options>Security''' check mark '''Remember Passwords for Sites'''

  • How can I get Navigation Menu Button to remain in down state after clicked?

    Hi there,
    I'm messing about with a Navigation Menu and would like to click on the button and once clicked, the button remains in its down state.  I can't seem to find a way of doing this?  Any pointers?
    Cheers

    We would need to see your live page and code to offer more meaningful answers.  But I wonder if what you really want is a "persistent page indicator" on your nav menu?
    HOME  |  PRODUCTS  |  CONTACT US
    When you're on the Home page, the HOME menu is highlighted.
    HOME  |  PRODUCTS  |  CONTACT US
    When you're on the Products page, the PRODUCTS menu is highlighted. And so on...
    See this related discussion -
    http://forums.adobe.com/message/2398026#2398026
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • How do I make multiple buttons in my flash animation?

    I am new to flash, and I have no training in it whatsoever. I
    created a flash animation with flash CS3 for my photography
    website, and I want to link each of the images to different
    galleries on my site. When I created my first button it worked
    fine, but when I try to create actions to link more than one image
    as a button, keep getting an error that says "1021: Duplicate
    function definition." How do I make each image as a separate
    button?
    I used the video of this tutorial as my guide to learn how to
    create a button:
    http://www.adobe.com/designcenter/flash/articles/flacs3it_firstflash_pt1.html
    Also, when I run the animation to test it, it loops, and I
    don't want it to loop. How do I stop it from looping?

    I used the method shown in the tutorial I mentioned to create
    it (created a new layer for the button, selected the area of the
    image for the button,used modify -> convert to symbol
    -> button, I edited it so it was an invisible button by
    moving it to the hit frame, gave the selected area an instance name
    of Hizumi_btn, inserted a new layer for actions and added the code
    I have attached to this post.
    I assumed that I would just need to repeat this procedure for
    each of the other images in my animation, but when I did that I
    received the error.
    I greatly appreciate any help you can give me.
    Thanks for the information on how to stop the animation.
    Here is the code I used to create my first button.

  • How do you make a button download pdf file in edge animate?

    Hi does anyone know the code or know how to make a download button in edge animate, that when you click the button it will fetch a pdf file from your pc root folder and offer it to download.

    Hi Wayne,
    To make a button download a PDF, you'll have to upload your PDF somewhere online and add the link to your button in Animate using the Open URL button in the actions popup.
    Here's a good tutorial which will get you started with some of the basics of Animate, including how to create buttons. The link on your button would just be the URL of your PDF.
    Cheers,
    Sarah

  • Xcode 4: Target and Commands. How do i make a button open "Window"?

    So to keep this short i'm making a very simple program and i need some help from Mac Developers.
    I'm making it in objective-C and i want to make 1-button target another program for example when u click on the button it "focuses" on iPhoto like when u click on it yourselves. Now i also want it to instantly, do some key-commands. I want it to target program > enter > write something > enter.
    I'm need this very very much. Please help me, it can't be that hard, if it is possible.
    Now in the bottom of the program it says my name, but there's also a little button to the right. Now i just started with Mac Developing, have been working for 2months with iOS in Xcode 4. So i know how you switch "views" for iOS, but how do i make this little button to the right, open a "window" (It's gray, hehe) and the button should be highlighted and when u click it again it goes back to normal and it closes. Now pretty much all i know is how to make the pop-up window remove the red dot and x in the corner, so u can't manually close it. I've tried googling highlighting button when the window is open, but didn't find anything.
    Please someone help me, this program is a free program and not for the AppStore.
    I'm making it for a group of Mac users.
    <Edited by Host>

    if you have a navigation controller do this: SecondViewCOntroller is the name to your .m (don't forget the import). SecondView is the name of your second View. You have to connect the function and the button in the xib file.
    -(IBAction)press1
    SecondViewController *nOVC  = [[SecondViewController alloc] initWithNibName:@"SecondView" bundle: nil];
    [self.navigationController pushViewController: nOVC animeted:YES];
    Look at an example in apple developper...
    Perhaps it's not that because you learn during two months iOS and it's a beginner thing.

  • How do I make this button look better in GIF?

    I confess I am fairly new to Illustrator... but if you can point me in the right direction, it will be greatly appreciated.
    All I need to do is to create a GIF that looks as good as a SWF.  I have played with all the settings and I can't figure out how to do this!
    This is how bad it looks when I exported to GIF
    This is what I see in AI. Letters are much better defined.
    How do I make AI export a simple GIF and make it look great?
    Jose

    In the save for web and device in the image tab check anti alias.

  • How can i make save button of a pop up window inactive?

    Hi...
    When we open a document attached to an opportunity,
    a pop up opens up in new window with open,save and cancel buttons.
    The document is opened by creating a url....
    How can i make the save button inactive?
    Any helpful pointers would be rewarded...
    Thanks...

    Hi..
    This thread remains closed...

Maybe you are looking for

  • "why the Psoft oracle DB and SID names should be in all upper case

    Customer is having a Question like "why the Psoft oracle DB and SID names should be in all upper case (according to the PsoftTools 8.50 Installation for Oracle manual) why the Peopletools 8.5 install book states all Oracle SID and database names shou

  • Unable to detect ipod shuffle

    having some problem with my ipod shuffle, itunes cannot detect the ipod. from the windows explorer its indicate that the ipod is not formatted. what will i do for the itunes to detect it? pls. help.   Windows 2000  

  • Vendor Evaluation implementation

    Dear Buddies This has reference to the subject matter, we needs to implement the Vendor Evaluation in SAP, being an Audit Requirement. We needs to fix the following parameters for the same: "QUOTE" CRITERIA FOR VENDOR RATING                     W1xQr

  • How to limit the Font Settings Authorization ?

    Hi , I have given NO Authorization for the Document Settings under the General for a User, but when i logged IN after limiting the Authorization i could find the Font Settings Icon when logged on. How to hide the Font Settings Icon for a User?

  • Awaiting approval shopping cart

    Hello I am using EBP Extended classic scenario. My customer wants a report about the next shopping cart approval, meaning the current person who should approve the SC. In ODS 0bbp_sca I can see approver number only when the sc is approve (status I112