Holding button in "down" state

I'm using this code from a previous thread on this site, it was extremely helpful (thanks Ned). I was able to get it to work when the buttons were placed on the timeline, but now I have a the movieclip embedded into two movieclips and can't get it to work.The buttons are holding in the down state but not resetting. I'm sure it's a path issue, but can't seem to get it to work. Any pointers? Here's the script I have on the timeline:
function resetBtns(btnNum){
    for(i=1; i<4; i++){
        if(i != btnNum){
            this["btn"+i+"Selected"] = false;
            this["btn"+i].gotoAndStop("up");
var btn1Selected = false;
var btn2Selected = false;
var btn3Selected = false;
my_acc.Customer1_select.btn1.onRollOver = function(){
    if(!my_acc.Customer1_select.btn1Selected) my_acc.Customer1_select.btn1.gotoAndStop("over");
my_acc.Customer1_select.btn1.onRollOut = my_acc.Customer1_select.btn1.onReleaseOutside = function(){
    if(!my_acc.Customer1_select.btn1Selected) my_acc.Customer1_select.btn1.gotoAndStop("up");
my_acc.Customer1_select.btn1.onPress = function(){
    my_acc.Customer1_select.btn1.gotoAndStop("down");
my_acc.Customer1_select.btn1.onRelease = function(){
    resetBtns(1);
    my_acc.Customer1_select.btn1Selected = true;
my_acc.Customer1_select.btn2.onRollOver = function(){
    if(!my_acc.Customer1_select.btn2Selected) my_acc.Customer1_select.btn2.gotoAndStop("over");
my_acc.Customer1_select.btn2.onRollOut = my_acc.Customer1_select.btn2.onReleaseOutside = function(){
    if(!my_acc.Customer1_select.btn2Selected) my_acc.Customer1_select.btn2.gotoAndStop("up");
my_acc.Customer1_select.btn2.onPress = function(){
    my_acc.Customer1_select.btn2.gotoAndStop("down");
my_acc.Customer1_select.btn2.onRelease = function(){
    resetBtns(2);
    my_acc.Customer1_select.btn2Selected = true;
my_acc.Customer1_select.btn3.onRollOver = function(){
    if(!my_acc.Customer1_select.btn3Selected) my_acc.Customer1_select.btn3.gotoAndStop("over");
my_acc.Customer1_select.btn3.onRollOut = my_acc.Customer1_select.btn3.onReleaseOutside = function(){
    if(!my_acc.Customer1_select.btn3Selected) my_acc.Customer1_select.btn3.gotoAndStop("up");
my_acc.Customer1_select.btn3.onPress = function(){
    my_acc.Customer1_select.btn3.gotoAndStop("down");
my_acc.Customer1_select.btn3.onRelease = function(){
    resetBtns(3);
    my_acc.Customer1_select.btn3Selected = true;

try:
function resetBtns(btnNum){
    for(i=1; i<4; i++){
        if(i != btnNum){
          my_acc.Customer1_select["btn"+i]= false;
           my_acc.Customer1_select["btn"+i].gotoAndStop("up");
var btn1Selected = false;
var btn2Selected = false;
var btn3Selected = false;
my_acc.Customer1_select.btn1.onRollOver = function(){
    if(!my_acc.Customer1_select.btn1Selected) my_acc.Customer1_select.btn1.gotoAndStop("over");
my_acc.Customer1_select.btn1.onRollOut = my_acc.Customer1_select.btn1.onReleaseOutside = function(){
    if(!my_acc.Customer1_select.btn1Selected) my_acc.Customer1_select.btn1.gotoAndStop("up");
my_acc.Customer1_select.btn1.onPress = function(){
    my_acc.Customer1_select.btn1.gotoAndStop("down");
my_acc.Customer1_select.btn1.onRelease = function(){
    resetBtns(1);
    my_acc.Customer1_select.btn1Selected = true;
my_acc.Customer1_select.btn2.onRollOver = function(){
    if(!my_acc.Customer1_select.btn2Selected) my_acc.Customer1_select.btn2.gotoAndStop("over");
my_acc.Customer1_select.btn2.onRollOut = my_acc.Customer1_select.btn2.onReleaseOutside = function(){
    if(!my_acc.Customer1_select.btn2Selected) my_acc.Customer1_select.btn2.gotoAndStop("up");
my_acc.Customer1_select.btn2.onPress = function(){
    my_acc.Customer1_select.btn2.gotoAndStop("down");
my_acc.Customer1_select.btn2.onRelease = function(){
    resetBtns(2);
    my_acc.Customer1_select.btn2Selected = true;
my_acc.Customer1_select.btn3.onRollOver = function(){
    if(!my_acc.Customer1_select.btn3Selected) my_acc.Customer1_select.btn3.gotoAndStop("over");
my_acc.Customer1_select.btn3.onRollOut = my_acc.Customer1_select.btn3.onReleaseOutside = function(){
    if(!my_acc.Customer1_select.btn3Selected) my_acc.Customer1_select.btn3.gotoAndStop("up");
my_acc.Customer1_select.btn3.onPress = function(){
    my_acc.Customer1_select.btn3.gotoAndStop("down");
my_acc.Customer1_select.btn3.onRelease = function(){
    resetBtns(3);
    my_acc.Customer1_select.btn3Selected = true;

Similar Messages

  • Freeze button in down state?

    I want to have several graphic elements that change with a
    mouse click, then stay there. I imagine this as buttons that get to
    the down state and freeze, but I can't imagine how to make it work.
    Thank you
    --Neal

    instead of a button, you could use a MovieClip instance which
    contains two keyframes. One keyframe holds the up graphic and the
    second keyframe contains the down graphic. Using the
    instancename.onRelease and instancename.RollOut methods you could
    have the graphic toggle between frame 1 and 2 with
    instancename.gotoAndStop(2) and .gotoAndStop(1) respectively. Be
    sure to place a stop(); action in the action layer over each of the
    keyframes.

  • How to have button in down state as page opens

    On opening a new "blank" subsidiary page using "getURL",
    there are 2 buttons on the new page. Each button plays a moveclip.
    (The first movieclip is already playing as the new page opens). I'd
    like to have the corresponding button already in the down state as
    the page opens. Is there a conditional statement I could use for
    this? I'm using AS 2.
    The code on each button is as follows:
    on (release){
    _root.resetButtons();
    this.gotoAndStop("down");
    on (rollOver){
    if (this._currentframe <> 3)
    this.gotoAndStop("over");
    on (rollOut, releaseOutside){
    if (this._currentframe <> 3)
    this.gotoAndStop("up");
    Many thanks for any advice.

    Yes, but you'll have to make a bunch of changes. If you
    convert your buttons to movieClips and insert frame labels and
    actions, you can get the resulting movieClip to act as a button.
    Then you can tell one of the button/movieClips to
    gotoAndStop("_over"). It will then start that way and then work
    normally after it is used. Look at
    http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00000230.html,
    for more information using a movieClip as a button.
    Alternately, you could just put in a static graphic of the
    button's over state in place of the button until it should show
    normally, then swap out the graphic for an actual button.

  • Projector not showing down state of buttons

    Why would it be that my buttons work in Director with the
    multi-state button behavior in the library but when I publish the
    movie and open it in a projector the buttons can't pushed down? The
    over state works. Now I don't have these buttons doing anything
    yet. They are controls for audio - play, pause, stop. If it works
    when I play the movie in director shouldn't it work when the movie
    is published?
    Also, if I have an mp3 with a slider to go back and forth in
    the music why would I need both a stop button and a pause button?
    Is it because the stop button normally would, in effect, "rewind"
    the music to the beggining? And why would I use a |<< or
    >>| button?
    Frustrated! Any clues to my unseen problem are greatly
    appreciated!!

    If the buttons work in authoring but not in a projector, then
    its most
    likely that the down state member for the button can't be
    found. This
    may be because you have a member name problem: two or more
    members with
    the same name.
    The concept of pause and stop are left over from analogue
    tape players.
    I only use stop and play for any controls that I create. Some
    people
    differentiate the two by what happens after that command is
    given. For
    pause, the play command given after will continue to play the
    audio or
    video at the point of the pause. For stop, the play commmand
    given after
    will cause the audio or video to play from the beginning of
    the file.
    I believe that the pause button should be set out in the barn
    next to
    the anvil and the blotter. You can use the crank handle from
    your car to
    hold it down. It that won't hold it, stuff it under the top
    cover of the
    fax machine out there.
    The fast play forward, |<<, and reverse, |>>,
    buttons are used to play
    the file at a faster than normal speed either forward or
    backward.
    Rob
    Rob Dillon
    Adobe Community Expert
    http://www.ddg-designs.com
    412-243-9119
    http://www.macromedia.com/software/trial/

  • How can I create a navigation bar in the template so I can change the down state of a button on a page made from the template in DW3?

    We're creating pages from a template in DW3. The template includes a header, footer and a navigation bar. We've made the navigation bar an editable region so that we can change the down state of the buttons on pages where it is required. However, when we make a new page from the template and try to change the behaviors of the buttons in the navigation bar it will not allow us to make those changes. 

    Have you considered using CSS styled text/list menus instead of image rollovers.  It isn't hard really and it's actually a much better choice for   web accessibility and for search engines to find and follow your links.   Here are some links to several CSS menu systems you can try:
    CSS Express Drop-Down Menus (tutorial)
    http://www.projectseven.com/tutorials/navigation/auto_hide/
    CSS Tab Designer creates 60+ CSS Styled Button and Tab Menus  (download)
    http://www.highdots.com/css-tab-designer/
    List-O-Rama  (DW Extension)
    http://www.dmxzone.com/go?5618
    CSS  Menu Maker (On-Line Menu Generator)
    http://www.cssmenumaker.com/
    Pop-Menu  Magic2 by PVII (DW extension purchase)
    http://www.projectseven.com/products/menusystems/pmm2/index.htm
    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 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 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.

  • Flash button play over sound in both over and down states?

    I have created a button and set a sound on it for the over
    state. The sound plays correctly when the button enters the over
    state, but it plays again when the button enters the down state.
    Here's what I did as a test:
    In an empty Flash9/ActionScript3 project:
    1. Create a new button symbol
    2. Insert key frames for up/down/over/hit
    3. Draw a rect on each of those keyframes (just for testing
    purposes so you can see it)
    4. Go to over state and set the Sound property to a sound in
    the libray. Set effect:none, sync:event/repeat/1
    5. Verify that the down state still says sound:none
    Now put that symbol in the scene and try it out. For me the
    over sound will play both when you mouse over the button and when
    you click on it. Does this make any sense?

    bump for help.

  • Down State stays after back button pressed on browser

    I have built a Navigation Bar in Dreamweaver CS5. I want the nav images to indicate what page you are on by showing the down image state. This is a check box within the Navigation options "Show 'Down Image' initially". This works fine on all pages as long as you use the buttons to navigate, but when you press the back button on the browser (safari & firefox), the page that you have just come from also stays in the down state, affectively showing 2 down states. Has anybody had a similar problem and can help.

    Hi
    This is standard behaviour with browser back buttons, if the page is in the browser cache they will display the page in the same state as the cached page.
    PZ

  • My Apple TV has been working fine, even earlier today.  When I turned it on this afternoon, the TV indicated that "no signal" was being received.  Restarted, unplugged, reset by holding menu and down button, etc. still no signal.  Thoughts?

    My Apple TV has been working fine, even earlier today.  When I turned it on this afternoon, the TV indicated that "no signal" was being received.  Restarted, unplugged, reset by holding menu and down button, etc. still no signal.  Thoughts?

    If your problem persists get yourself a micro USB cable (sold separately), you can restore your Apple TV from iTunes:
        1.    Remove ALL cables from Apple TV. (if you don't you will not see Apple TV in the iTunes Source list)
        2.    Connect the micro USB cable to the Apple TV and to your computer.
        3.    Reconnect the power cable (only for Apple TV 3)
        4.    Open iTunes.
        5.    Select your Apple TV in the Devices list, and then click Restore.
    (You may already have a micro USB cable if you have a camera or other digital device)

  • Toggle button to "Down" when changing application state?

    I am trying to make a button component modal so that when I click it, the application changes to a different state and the button stays in the button "down" state. Then if I click a different button, the application state changes again, the first button changes to the "up" state and the second button changes to the "down" state. Basically, I want radio button actions, but on a styled button.
    Is there a way to do this in Catalyst or do I have to handle this in the FB code?

    I had some difficulty getting Catalyst to allow me to set the states of toggle buttons added to my project. So, I decided to create my own custom toggle button to give me the ability to fully style it. Here's the process I followed:
    converted my styled "normal" buttons back to artwork
    Converted the artwork to a custom component
    Created states for custom component for Unselected, Selected, Over, etc.
    Associated the artwork from Illustrator to the appropriate states for the custom component
    set the custom component state (e.g., unselected, selected...) for the each of the appropriate application states
    set the component action to "transition to state" when the custom component is "clicked"
    Renamed the custom component in the library to "CustomToggleButton"
    Exported the CustomToggleButton library component and then imported it so it was reusable in my library

  • How do you make the down state last a few seconds?

    I have an assignment due next week where you click something and a little text box pops up telling you what that item is. I also made it so the item changes colour.
    However, right now I've just got it so that you hover your cursor over it, it fades a bit, then you click it and it changes colour and the textbox shows up. The textbox and colour doesn't stay for a few seconds; you need to hold your mouse over it to make it stay.
    So, in short, I want it so the down state stays for a few seconds and then goes back to normal.
    I downloaded and installed the Flash CS6 trial to complete this, and I'm not sure if it's limited.
    At College they only have CS5.5, so I can't use any tools that go beyond CS5.5.
    I 'have' Flash CS5.5 but that was on my old computer (Which broke) and I'm waiting for my new one to come.

    How I would do it...
    1) make 2 seperate MC, one is the buttonMC (convert it to button symbol and just leave the hit spot)  and another is the buttongraphic (a movieclip) itself
    2) animate the buttongraphic (the MC), lets say frame one is its original state, frame two is how the hit/click would look like and frame ten is how it would look like when hover. that give you 10 frames for animation for each action
    3) name the button instance "button" and the graphic "gaphic"
    4) on the button, give it this code:
    on(press) {tellTarget("graphic") {gotoAndPlay(2);}}
    on(rollOver) {tellTarget("graphic") {gotoAndPlay(10);}}
    Hopefully this will help you out.

  • Influence of the hold button on power consumption

    Hi,
    does the hold button reduce power consumption when turned on, even when you do not accidentally touch the clickwheel and activate the ipod? Is power consumption also reduced when you turn the hold button on after shutting the ipod down and putting it away? Or are these effects minor/non-existent?
    I read the ipod also consumes power when it is turned off, is this caused by its internal hard disk?

    Like many electronic devices these days, iPods, PDAs, Cell phones, and even your computer, none of them are truly completely off anymore. As you might note, almost all devices these days have momentary push buttons to turn them "ON". In reality, there has to be some people to monitor these buttons and wake up the rest of the device when the power button is activated. So yes there is always some level of power being consumed by your iPod all the time since it has to keep monitoring the click wheel on the front to see if you are asking it to power up again.
    As to power consumption, your two largest users of battery power are the hard drive spinning and the backlight being on. If neither of these are active, then the iPod is likely using very little power even when there is a display (with no backlight) and someone less when the display goes off completely (the iPod is asleep). The state of the hold switch is not likely to effect power usage one way or the other. Basically is it is nothing more than a state reported to the processor to ignore other key presses including power on. So like when you need to push the front wheel to get the iPod to turn on and the iPod is always monitoring those buttons to be pressed, it is also monitoring that hold switch to see if it should act on any of those buttons. So even when the hold switch is off, it is still being monitored regardless.
    Patrick

  • Tecra Z50-A-15W Win 7 freeze while sshutting down state

    Hi,
    can someone help - my brand new laptop has a very weird problem - upon restart caused by updates - it freezes on the shutting down state and I have to press and hold the power button for 5 sec in order to get it to start again. It is doing that every time. No events are visible in the logs. The OS is Win7 professional.
    Thank you in advance

    I guess some processes which are running in the background would not be closed automatically and therefore the shutdown mode does not response until these processes would be closed.
    Would recommend you to clean the system using CCLeaner.
    Also ensure that all programs and tools would be closed properly before you want to shut down the notebook.

  • Mac shuts down if I do not keep either the Fn, Command or control button held down ?

    Hi. I have a mac book pro late 2011 model. I am running Mavericks but but I have a problem where my mac shuts down if I do not keep either the Fn, Command or control button held down. Also if/when this shut down happens I need to hold the shift-control-option keys to restart the mac.
    Anybody got any advice for me ?
    Many thanks
    Paul

    Try resetting the SMC.
    Barry

Maybe you are looking for

  • User Created in OIM 11.1.1.5 with null value for mandatory field.

    Hi, We had updated one UDF as mandatory field on OIM user form. We can see the * in front of that field. Now if we create the user using web console (Using UI), we are not able to create the user without giving some value in that UDF as it is mandato

  • Adobe InDesign 5 won't print Adobe PDF (Acrobat Pro 9) completely.

    I just bought a new Dell XPS 14 with Windows 7 Professional 64-bit. I installed my CS Standard 5.0 and amongst a few other bugs with InDesign, I cannot print documents as PDFs. Only the first few pages will print. I looked for an update and can't fin

  • Filter report with checkbox

    I have a report (select A, B, C from TABLE1) on PAGE1 I also added a little form on PAGE1. this form contains a list of checkbox generated dynamically with another query. I would like to filter my report with the values of the checked items in the fo

  • Add new VM Server to Existing Pool

    Hi, i have recent deployment of Oracle VM 3.2.2. initially i have created 2 servers in the pool and added a production VM to that. now there is requirement to add one more physical server to existing pool. can any help to me to describe the way to ad

  • SOA without BPEL

    Recently we've found that standalone ESB only installation of SOA Suite has probably a bug. Namely it is lack of some classes included in BPEL part (orabpel.jar) which cause the ESB functionality is limited. For instance the is no class named oracle.