State state button  = pressed

hi,   
how do I join so that when you press a button, it remains pressed?
I hope you understand.
I'm Sorry for my English, is poor.

You need to use a movieclip as a button in order to do that.  Buttons in AS2 will not allow you to control their states.  But you can create whatever controls you like for a movieclip used as a button.  You tell it to go to a certain frame when clicked and it will stay there until something else you devise tells it to move to some other state/frame.

Similar Messages

  • When-button-pressed---adding a "select statement"

    Hi friends,
    i have a select statement:
    select count(*) from employees
    where emp_no=:control.emp_no;
    i would like that when i press a button, count for instance, i get the number of employees.
    I need the codes used in oracle in the when-button-pressed.
    Thanks.

    DECLARE
    RESULT NUMBER :=0;
    CURSOR CUR
    select count(*) from employees
    where emp_no=:control.emp_no;
    BEGIN
    OPEN CUR;
    FETCH CUR INTO RESULT;
    :ITEM_NAME := RESULT;
    CLOSE CUR
    END;
    I hope this will help
    This will be shown in item, if you want to show a message then use
    MESSAGE(RESULT);
    Regards
    Abbas
    Edited by: Abbas on Jul 19, 2011 12:37 PM

  • Making a button programmatically not change its 'physical' state when pressed

    I have this button:
    which changes into this when pressed:
    How do i programmatically make the button not change into its 2nd state when pressed? do i use property nodes? if so, how?
    thanks

    If you use the Colors Property Node, you can change the colors dynamically, so you can set it all green when you need it, then change it back to green and red.
    The only way you can intercept the button press is to use the Mouse Down? event in the event structure.  You will need to verify a left mouse click and then Discard the event.  That will be your inidcation the button has been pressed.  However, you will still need to track your state to not discard the event in the situations where you want the button to actuate.
    It is much easier to dynamically change the colors.

  • Is there a way to create a multi-state button or have a pict ring behave like boolean?

    Does someone know of a way to make a multi-state button say (function one, function two,function three, off) or implement boolean-like behavior for a pict ring? I want to be able to cycle through the states without a menu popping up for all possible values. So when I press this button or ring it will go from state-1, to state-2, to state-3 etc.

    > Does someone know of a way to make a multi-state button say (function
    > one, function two,function three, off) or implement boolean-like
    > behavior for a pict ring? I want to be able to cycle through the
    > states without a menu popping up for all possible values. So when I
    > press this button or ring it will go from state-1, to state-2, to
    > state-3 etc.
    Place a transparent button over a ring. On button value change events,
    or via polling, increment the ring indicator. Better yet, put the value
    in a shift register that gets incremented and displayed in the ring
    indicator.
    Greg McKaskle

  • How to create a 3-state button (similar look as OK button) that toggles between 3 different colors.

    How do I create a 3-state button that looks similar to the OK button except it changes to 3 different colors every time it is pressed. Does anyone have such a control ready for use that I can just drop in my front panel?

    With a picture ring you can implement a 3 color button without any code. Look at the attached customized control.
    I have imported the picture of a boolean in three different items and
    colored them. I centered the text and hide/made transparent uneeded
    graphic elements. I set the size of the decrement arrow to cover all
    the picture and made it transparent so when you click on the control
    you decrement the value of the ring and change the picture/color
    Edit: you'll notice that the picture is not fullt covered by the
    decrement arrow so if you click near the bottom of the button, the
    picture ring will show its normal behavior displaying all 3 available
    items
    Message Edité par Jean-Pierre Drolet le 07-07-2005 10:07 PM
    LabVIEW, C'est LabVIEW
    Attachments:
    3COLORSBUTTON.vi ‏8 KB

  • Multi-State Button

    Hello,
    I have a multi-state button in my movie. I want it to pause and play but I don't know what to enter into the "Parameters" box.
    -COMMAND SENT - when switched ON           sendAllSprites #Toggle_On, the currentSpriteNum
                                 when switched OFF           sendAllSprites #Toggle_Off, the currentSpriteNum
    Please help!
    Thanks.

    > Thank you. Now, where do I put this code?
    It can be used in several ways to tell the button to toggle -
    as long as the
    button sprite is drawn on stage, and have the multi-state
    script is
    attached.
    Put in a framescript, like this:
    (assuming that the button is in spritechannel 1)
    on exitFrame me
    sendsprite(1, #toggle, true)
    end
    or
    Put in a script attached to the button sprite, like this:
    property spriteNum
    on beginSprite me
    sendsprite(spriteNum, #toggle, true)
    end
    As a simple test:
    - start the movie
    - open the message-window (ctrl-m on windows..)
    - write: sendsprite(1, #toggle, true), and press return
    change 1 to the correct spritechannel, and toggle the button
    on/off by using
    true/false

  • Is there a way to make state transitions/animations of a fl.control states - button for example ?

    Is there a way to make state transitions/animations of a fl.control states - button for example ?
    All I can do now is change the skin design and that's it, I can't animate between states like I can with Flash Builder skins. So is there a way to do that, any technique or I have to create a button component from scratch?
    Thanks!

    simplebuttons have upState etc properties you can use to assign movieclips to the 3 states.  you can use the currentFrame property of movieclps to (appear to) smoothly transition from one state to another.

  • Fustrating problem with self-made 5-state button

    Hey guys, just wondering if you could help me, i don't have
    much knowledge with actionscript and i created my own 5 state
    button using a movie clip and a little bit of actionscript by
    following a tutorial online. (
    http://www.sanctifiedstudios.com/advanced-five-state-buttons/)
    Basically, when rolled over, the button slides out, and when
    rolled off, the button slides back in. The problem is, while the
    button is rolling back in, if you flick your mouse onto the button
    again quickly, instead of restarting the roll-out animation, the
    button just flickers quickly between the in position and the out
    position.
    You can see it for yourself here: www.everlightmusic.com <
    hover your mouse over the buttons on the right, move your mouse
    off, and then while its rolling back in, quickly move your mouse
    back onto it.
    The actionscript for the buttons is this:
    quote:
    this.onRollOver = function(){
    this.gotoAndPlay(20);
    this.onRollOut = function(){
    this.gotoAndPlay(30);
    this.onPress = function(){
    this.gotoAndStop(29);
    this.onRelease = function(){
    this.gotoAndStop(29);
    this.onReleaseOutside = function(){
    this.gotoAndPlay(40);
    this.onRelease = function(){
    _parent.gotoAndPlay(31)
    And here is a screenshot of the movie clip timeline:
    Click
    Any help with this would be greatly appreciated :)

    yeah this is typical when using a timeline based button
    action. two things you could do:
    1) control the state change by using a variable to indicate
    when the motion is complete (or not) like 'isOpen' - you'd need to
    do this for each button in combination with a condition in the
    handler that 'reads' the var and determines the course of action -
    of course the next problem is that if you 'rollout' while the
    motion is happening and the handler fires previous to the setting
    of the var to it's 'new' state it won't close because the condition
    would only be fired once - the only way around that would be to
    include a loop that runs until the condition is satisfied.
    2) much better than the above method (which would get messy
    fast) is to simply use the 'tween' class to create you motions, you
    can then 'open' or 'close' from what ever the current position of
    the clip is at the moment the handler is fired. you've got your
    code on the timeline of the 'button' MC (good job) so you could
    change it to something like this:

  • 4 State Buttons - Disabled and Visited State

    Hi everyone,
    Does anyone know if CP will be offering 4 state buttons as an option in the future. Essentially adding a _disabled or _visited (both would be great) option to image buttons. 3 state buttons are great, but im finding more and more clients asking for 'greyed out' buttons when clicked. Some want disabled and others visited (so they can re-access the button).
    I know Storyline has the feature to add a disabled and visited states. And I heard Lectora is adding this feature.
    Basically The way I see it is that i can choose an image button and you get an option to select a disabled or visited button (or neither if you want 3 state). Then CP automatically pulls in the _up, _over, _down & _disabled or _visited images.
    So back to my question, is this on the horizon?
    Or if anyone has a better idea then i suggested, then i would be interested in knowing.
    *I am aware you can do this with Advanced actions, but this way would be automated. (less work)

    Yes wearable technology is wonderful.  The best enhancement I've heard about in that area (for e-learning) is the 'wearable LMS'.  It's a Wi-Fi enabled device that can detect and capture output from a Captivate module (as long as it's within range of a 802.11ac wi-fi transmitter/receiver).
    I'll probably get into trouble for leaking this information but...also on the LMS front, Adobe has finally decided to take on the LMS vendors and introduce an incredible enhancement that looks like making any conventional LMS totally redundant. 
    If you've been wondering why Captivate 8 removed so many output options, it's actually been done to make room for the new Standalone LMS enhancement due out for Captivate 9's release next year (possibly Cp 9.5 if the development encounters issues with the implementation).  Once that incredible breakthrough arrives you won't need to worry about SCORM, TinCan, Acrobat.com or any other reporting format.  The Captivate output module ITSELF becomes the LMS. 
    It's all achieved with the new Cloud-based synchronization technology that Adobe has been keeping under wraps. Not only will the new Standalone LMS output capture all of the user interactions for your course. it will also aggregate them from other users around the world (as long as the user is online) and spit out nicely formatted reports to your nearest printer.  The formatting is still a bit rough at the moment, and you do need really good bandwidth to pull it off, but the barriers to entry are coming down all the time.
    It's certainly an exciting time to be an e-learning developer!

  • State Button Widget

    I would just like to find out where to access the free download Dani spoke of in her video in regards to the State widget button update

    Hi David,
    The State Button Widget was introduced in November 2013 release. The new updates for Muse are automatically offered to the users when the updates are available. If for any reason, your muse was not updated, please close it and open it again. You should get the update muse prompt.
    If the video you mentioned in your post is about something else, please provide us the video link and we'll further look into it.
    Cheers!
    Aish

  • Is there a way to link state buttons?

    Hi, I'd like to know if there's a way to link state buttons to activate their hover state together. For instance, when the link 'Pioneers of Design' is hovered over it turns red and links to another page. The yellow image loses the 25% white opaque screen on it when it's in hover state and also links to the same page. Both are in separate state buttons. Is there a way to link the two so that when I hover over the image the screen disappears but also turns the pioneers link red at the same time and vice versa when hovering over the pioneers link? I know both can be put into a state button together but that means that the massive space in between the image and text would create the hover state as apposed to only occurring when hovering over one or the other. Also, I don't know what would happen to this because the text links stay fixed when scrolling and the image links do not. Is there a way to do what I'm talking about? Thanks.
    I have the latest version of Muse CC 2014

    There's no built-in way to do disjointed rollovers, but if you look it up on the web, you should be able to understand how the respective CSS rules work and implement them as custom HTML or after publishing the site.
    Mylenium

  • Cannot find object state button

    Hi,
    I am having trouble finding the object state button on my inDesign cs6 for some reason.
    I do see the interactive menu, but there isn't an object state button.
    Anyone have any idea what is going on?
    Thank you for your help!

    Haven't used PSE5 in a very long time. I don't remember what version of Elements we added Layer Masks to, but I do remember that older versions didn't have this feature, and it is possible that 5 falls under this category. There is a bit of a hack though, as seen in this link: Faking A Photoshop Layer Mask In Photoshop Elements

  • State Button behaving like Photoshop Smart Object?

    I've created a State button which I have copied across three panels in a tabbed panel widget. I assigned a link (file download) to the first button before duplicating the button across the next two panels. When I change any one instance of the link, the other two change with it. Is this the expected behaviour?

    Hi David,
    This is not the expected behavior. I have created the state button and applied a link to it and then paste it to the other tabs and then change the links and it seems to be working fine. I will recommend that you try to recreate another button and see if the same thing happens with the other button too.
    - Abhishek Maurya

  • Normal State Button Shows Selected State At Loop Point

    My menu shows the Normal State Button Shows as the selected state At Loop Point. I want it to show for instance black until it is selected then "rollover" to red. TIA for any help.
    Murman

    There are two ways that you can do this without resorting to using a layer based shape or a layer based menu.
    First, you need to decide if it is important for the logo to appear in full colour or if you can get away with a single colour instance of it appearing. If the answer to this is that a single colour is OK, then use a standard overlay menu. Otehrwise, try using a masked overlay menu (there are limitations...)
    With a standard overlay, the background image is as you want it to appear without anything selected - all shapes and text, etc, should be in place as if no button is chosen.
    You then create the overlay, which is a simple .pict file that is the size of the menu. On this you simply place as many instances of the logo as you need - create them in black or grayscale and don't add anything else. The overlay will be mostly white with the black or gray shapes on it.
    Add this to your menu in DVDSP and drag out the button rectangles to cover the background text and the overlay shape. When the button is selected, the logo shape will show up, but will not show in the normal state.
    You can get the logo to be whatever colour you need by using the colour mapping within the property inspector for the button.
    If you definitley need a full colour logo to appear, you can either use a layer based photoshop menu, or use overlay masks:
    http://www.editorsbin.com/authoring/mask_overlay.html
    be aware that there are some limitations when using the masking technique - but all is explained in that tutorial.

  • Style Rendering toolbar: link states buttons.

    Hi,
    I do not manage to display a link rendered according to a pseudo-class using those link states buttons. Any help?
    All the best.

    Since you don't seem to have an example page to look at, let's do this backwards.
    Create a test page in Dreamweaver. Add this code inside the body (in Code View):
    <div class="fubar">
      <h1>Fubar links </h1>
      <p><a href="#">Nulla facilisi</a>. </p>
      <p><a href="#">Curabitur quam</a>. </p>
    </div>
    Add this style sheet to the head of your page:
    <style type="text/css">
    .fubar a:hover, .fubar a:focus {
        color: #F30;
    </style>
    Now in Design View, click the ":h" icon on the style rendering toobar. If you followed the instructions, your links will both turn red. If you need further help, you really need to post a link to a test page on your web server.
    Al Sparber - PVII
    http://www.projectseven.com
    The Finest Dreamweaver Menus | Galleries | Widgets
    Since 1998

Maybe you are looking for

  • Still trouble with getting a free version of OS X Lion

    I have still some trouble with my free version (old threat here). The Database do not recognize the serial ID of my Macbook. Next I tried to sent a copy of my sales recipt, so I am still waiting of a reaction. Does somebody know how long it takes or

  • New Shuffle wont play after downloading Songs from Rhapsody

    I just bought the 2nd gen. shuffle and after loading songs from rhapsody, it show them on the IPOD list but the ipod wont play. It blinks green-orange-green- orange and then nothing. I tried reseting it. Any ideas?

  • Best config for adding new 250GB HD

    Greetings: My G4 at work shipped with a 40GB drive that filled up quickly with design projects, etc. I'm on the brink of a huge catalog project, and I was down to less than 3GB of space, so I dumped all the archived stuff to an external and now have

  • Cluster jndi error

              Hi:           we have deploye samples cluster ejb teller and account to a cluster environment..one           admin server and one manager server in the same machine(use multi-ip)..another           manager server on another machine..two man

  • Can you add menus to home movies?

    Hi, Just wondering if iMovie has any way of adding menus to the start of home movies. The sort of menu that you can select chapters from to jump to different sections of the movie.