Make box that changes color depending on button pressed

I need to be able to press 1 of 6 buttons that change
graphics to a page on a single-frame site I'm building. This is the
first time I've built a single frame site (calling swf's) and it
seems easy but having the green button fade whatever color exists
down while fading green up and isn't as easy as I thought. In order
for it to be "smart" and know what color is there so it can fade it
(probably even easier way than being color specific - but I
obviously don't know it).
Just getting into the AS2 part of flash and trying to meet
deadlines while learning is hard to do, so thanks for the help!

Hello:
Say you have a page that has 2 regions R1 and R2. Each region has a button that when clicked submits the page. The buttons are named B1 and B2. Further, F1 and F2 are the first fields in region R1 and R2. There also is a hidden item named H1 on the page (region does not matter). So, you define a pl/sql page process with a process point of 'After Submit...' with the following codeif :request in ('B1') then
   :H1 := 'F1';
end if;
if :request in ('B2') then
   :H1 := 'F2';
end if;The APEX built-in variable named 'REQUEST' is automatically assigned a value of the button that caused the page to submit.
Varad

Similar Messages

  • How to create a radio button that changes colors

    I'm using Acrobat X and ID CS5 on Mac OS X.
    A couple of years ago someone on the forums explained to me how to create a button that changes color with each click. You can view a sample PDF at https://dl.dropboxusercontent.com/u/52882455/colorcycle.pdf. They gave me the document JS and showed me how to set the properties of the button. I've integrated the button into a particular series of PDF forms and it's worked out very well.
    Now I would like to do the same thing, but using a circle instead of a square. Can anyone tell me the best way to do this? Can I somehow set a radio button to cycle through colors in the same way? I design my forms initially in ID CS5 and then activate and format the fields in Acrobat X. I've tried using circles instead of squares in my ID document, but when I export to an interactive PDF, they're converted to squares.
    Any ideas?

    I understand how to make buttons cycle through colors-- the problem I'm having is that I'm trying to figure out how to make a circular button cycle through colors. When I export my ID document to PDF, my round button maintains it's original appearance, but when I click on it to cycle through the colors, it behaves like a square (see new PDF at https://dl.dropboxusercontent.com/u/52882455/colorcycle2.pdf).
    If I use a radio button, I can get it to cycle through colors, but I don't want it to have a black dot in the middle. Is there a way to format the radio button to not show the black dot when clicked?

  • Button that changes color

    Can some one tell me how I can create that fancy button I see
    in the tutorials that changes color as you hover over it right
    before you click it. I'm sure it is simple but I can't seem to find
    it

    Hi drc_TO
    If you use a regular plain ole Text button, it should change
    appearance when you mouse over and click. You can easily change
    that to an image button. When you do, you have a collection of
    images available to you to choose from. Or if you wish to create
    your own images, you would create them using an image editor. You
    need three. One for the normal state. One for the moused over
    state. And one for the clicked state. You then name them
    appropriately and ensure they exist in the folder along with the
    others. Normally that will be inside a Gallery folder where
    Captivate is installed. (The names vary depending on Captivate
    version)
    Cheers... Rick

  • How to change color of a button for specific time interval in jsp

    How to change color of a button for specific time interval in jsp.
    Please help.
    Thanks in advance.

    This was driving me crazy, too--and the previous answers did not seem to work. I eventually found that if I click one of the data symbols in the graph in exactly the right spot (see below), it selects only the data symbols and not the line. I can tell this because the little selection dots will be around each data symbol, but no selection dots will be on the line between the data symbols - like the graphic in Yvan's answer. Then and only then will the color symbol in the tool bar show the color of the data symbol, instead of the color of the line. I believe that you then have to first click on the color swatch in the toolbar and then select your color (or choose Show Colors and select from the color tool). Just clicking a color in the crayon box, for example, did not seem to work unless I first clicked on the color swatch in the toolbar, then clicked Show Colors on that dropdown, and +only then+ clicked the crayon or whatever.
    _The right spot to click_ seems to be just above the exact center of the data symbol, at least for the diamond shape symbol that I prefer. Sometimes it takes several tries to hit the right spot. If I miss it, the whole line is selected, which is indicated by the little selection dots on the line, between the data symbols. When I click the right spot, those selection dots go away, leaving only the data symbols selected. Then I can change the color, as described above.
    I hope this works for you too.

  • I have an Apple TV Gen1 and it has a blinking light that changes color and I dont get any video displayed

    we have lost a few AV items due to a recent storm and i am trying to find out if my apple Tv model: A1218 is dead or fixable. It has a blinking light that changes color and I dont get any video displayed. the color looks to go red, green, off and keeps repeating that cycle.

    All I could find is this: http://support.apple.com/kb/TA24576
    It looks to have an issue, i.e. possibly bricked.

  • Change color on a button to show that it has been selected.

    Here's what I would like to do:
    1) Button with the instance name of "mc" and the color
    #666666
    2) MOUSE_OVER color is #CC0033
    3) MOUSE_OUT color is #666666 —IF the button has NOT
    been clicked.
    4) CLICK color is #333333
    5) New MOUSE_OUT color is #333333—If the button HAS
    been clicked.
    6) MOUSE_OVER stays the same.
    Here's the problem...
    1) How do I make a new MOUSE_OUT color of #333333 (the same
    as the CLICK color)—If the button HAS been clicked?
    2) How do I maintain the MOUSE_OVER color?
    I'm starting to pull out my hair! I appreciate any
    help!!!!!!!!!! Do I need if's or else's.
    Text
    new

    You need if's and else's and a variable to judge in that
    if... in the MOUSE_OUT handler . The variable should indicate if
    the button has been clicked or not and should be set in the CLICK
    handler.
    var clicked:Boolean = false;
    function mcClick(event:MouseEvent):void{
    etc...
    clicked = true;
    function mcMouseOut(event:MouseEvent):void{
    var newColorTransform:ColorTransform =
    mc.transform.colorTransform;
    if(clicked){
    newColorTransform.color = 0x333333;
    } else {
    newColorTransform.color = 0x666666;
    mc.transform.colorTransform = newColorTransform;
    gotoAndPlay("img1");
    }

  • Changing color of arrow button in JComboBox

    Hi all,
    Can somebody please help me to change the color of arrow button in JComboBox

    The default color uses to draw the arrow is UIManager.getColor("controlShadow"), so if you put a different color there, that would be used for the arrow buttons. Of course, that color is likely used other places as well, and so any other place where it is used would get your changed color too. For example, the scrollbar buttons for the scrollbar in the popup list would likely use that color.
    Further, the current look and feel can override this; for example, the Metal L&F creates its own button, which uses its own icon which ends up using a hard-coded color of black when painting the arrow.
    : jay

  • Changing colors depending on output variable

    Hi there,
    I am pretty new to LabVIEW, using it for my dissertation at university. I looked for similar questions on this and other forums but can't seem to find an answer.
    What I'm trying to do is change the color of a graphic depending on the value of another variable. I'm calculating the temperatures inside a gas turbine, and would like to represent the temperature changes graphically for better understanding. So I have output values for different temperatures, which change with mass flow rate of fuel into the engine. How can I make a graphic change it's colors depending on the value of temperature?
    Thanks a lot,
    Fabian

    Do you mean something like this ? Run the VI and change the value of Thermometer.
    Attachments:
    Change BG of chart.vi ‏16 KB

  • Change control values on button press

    Hi, I've got a situation where I have several numeric controls where you can change different values. I also have several subVIs with control references (as described in this article: http://labviewwiki.org/Control_References) that takes in references to these numeric controls on the mainVI. These subVIs continously read the values in their own threads.
    So whenever I change a value on any of the controls, the values does of course change in the subVIs, since they reference to the value of the control.  How would I make the actual value only change only after I clicked the ok button?
    To illustrate this I made a VI with an event structure and a separate while loop that continoulsy reads a reference to the control and updats an indicator. I can think of a few cumbersome solutions, whereas I have two controls for every value. The second control would then be hidden and only written to in case of the Ok button press. But having two controls to do something simple as this seems superfluous.
    Message Edited by Siniz on 10-20-2009 10:36 AM
    Solved!
    Go to Solution.
    Attachments:
    ValueChangeOnButtonPress.vi ‏19 KB

    Given what you want to do then I would suggest that you use an Action Engine to contain your data. This has the advantage of decoupling the UI from the subtasks. I would recommend that your action engine consist of an array of clusters. Each cluster would contain the data values, in your case Ki, Kd and Kp for each controller. This has the advantage of reducing the individual values you are dealing with and treats the data for a given controller as a whole. The subtasks could either poll the data looking for a value change. You could even keep track of that in your Action Engine so you would only need to poll to see if the data changed. If it did, then read the data. You would need an index or ID to specify which controller's data you would want to access. The action engine allows you to grow your application if more controllers are added. You should use a typedef to define the cluster. If you wanted to make this more event driven you could use a single notifier shared by your subtasks that would simply indicate a data change event. Part of the data for the notifier could specify which data. That way only interested subtasks would take action. This type of architecture wouldn't add lots of wires to your diagram especially if you used a named notifier.
    Regardless of the way you choose to pass the data to the subtasks I would take a look at your UI. I haven't seen it so I can't comment on it specifically. However is you have 40 controls on the front panel at the same time it most likely is a confusing interface. There are ways to reduce the complexity and still provide the same functionality. If you haven't already looked at I would recommend getting the book The LabVIEW Style Book by Peter Blume. If you did reduce your UI to only work with a single controller or a couple of related controllers at a time the Action Engine approach would work nicely since you take your data from the FP and only update the data that has changed. From a UI perspective you have less controls to worry about on your UI and it will probably be easier for the user to understand. From the application's perspective you have decoupled the subtasks from the UI in a very clean way. Another approach would be to use LVOOP for your controller data and processing. Then you simply instantiate a new instance of the class (an object) for each controller that your system is using. This has an added benefit of allowing you to use different controllers and load them at runtime using dynamic dispatching.
    PS You are good for the overall Kudo count. Thanks.
    Message Edited by Mark Yedinak on 10-20-2009 12:33 PM
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Able to have a Submit button that changes color after selection

    Curious if this can be done..

    Things that you can control the color of include the border, label text, and background. You can also change the button label and icon (if present). This can all be done when it is clicked. You can also set the mouse down and rollover appearances. Some of this is controlled via JavaScript and others by setting the corresponding options. If you explain exactly what you'd like, we can provide specific guidance.

  • DWCS6: homepage with Log in box that changes

    Hello everyone, sorry if my questions are stupid, but i'm sort of new about PHP/mysql, i've just learnt how to use databases and so.
    I've checked on google and i couldn't find an answer. I checked on the forum here and i couldn't find what i needed. I'm talking about this:
    I'd like to create a Homepage with the usual "Log in" box. And no problems here. Now, after a user logs in,that login box has to "disappear" and be replaced by another box, with "Welcome, UserName!" without the fields of the log in box. To explain better:
    Before --> box with " Username field, Password field, Log in button | Register button | Forgot your password?"
    After the log in --> box with "Welcome username! | Your control panel | Log out button"
    1) How can i change that box to show something before the login and something else after? I have to redirect the user to an equal page but with a different box (like page1 with login box and page2 with the logged in user box)?
    2) How can i keep the name of the user in the other pages too? something like "xxx.php?IDuser=<etc etc>" in the links with the recordset of the pages on the IDUser filter (when IDUser is = to the parameter from the URL)?
    3) And about the control panel, i have to use IDUser so that user can see his/her data (to check, modify, change, etc)?
    Thanks all for the attention.

    This is the code of the page. I remade it and removed all the extra things. There are the DW automatic codes for:
    - 1 connection, called "amontech"
    - recordset, called rsLogin with IDUser, nome, cognome, email, username and password
    - 1 server behavior, for the user log in
    - the standard html from a model (2 columns + header and footer)
    - 1 external CSS file called styles.css
    <?php require_once('Connections/amontech.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $colname_rsLogin = "-1";
    if (isset($_SESSION['IDUser'])) {
      $colname_rsLogin = $_SESSION['IDUser'];
    mysql_select_db($database_amontech, $amontech);
    $query_rsLogin = sprintf("SELECT * FROM utenti WHERE IDUser = %s", GetSQLValueString($colname_rsLogin, "int"));
    $rsLogin = mysql_query($query_rsLogin, $amontech) or die(mysql_error());
    $row_rsLogin = mysql_fetch_assoc($rsLogin);
    $totalRows_rsLogin = mysql_num_rows($rsLogin);
    ?>
    <?php
    // *** Validate request to login to this site.
    if (!isset($_SESSION)) {
      session_start();
    $loginFormAction = $_SERVER['PHP_SELF'];
    if (isset($_GET['accesscheck'])) {
      $_SESSION['PrevUrl'] = $_GET['accesscheck'];
    if (isset($_POST['username'])) {
      $loginUsername=$_POST['username'];
      $password=$_POST['password'];
      $MM_fldUserAuthorization = "";
      $MM_redirectLoginSuccess = "index.php";
      $MM_redirectLoginFailed = "error.php";
      $MM_redirecttoReferrer = false;
      mysql_select_db($database_amontech, $amontech);
      $LoginRS__query=sprintf("SELECT username, password FROM utenti WHERE username=%s AND password=%s",
        GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));
      $LoginRS = mysql_query($LoginRS__query, $amontech) or die(mysql_error());
      $loginFoundUser = mysql_num_rows($LoginRS);
      if ($loginFoundUser) {
         $loginStrGroup = "";
      if (PHP_VERSION >= 5.1) {session_regenerate_id(true);} else {session_regenerate_id();}
        //declare two session variables and assign them
        $_SESSION['MM_Username'] = $loginUsername;
        $_SESSION['MM_UserGroup'] = $loginStrGroup;     
        if (isset($_SESSION['PrevUrl']) && false) {
          $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
        header("Location: " . $MM_redirectLoginSuccess );
      else {
        header("Location: ". $MM_redirectLoginFailed );
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>AmonTech |</title>
    <link href="style.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div class="container">
      <div class="header"><a href="#"><img src="" alt="Inserite qui il logo" name="Insert_logo" width="220" height="90" id="Insert_logo" style="background-color: #C6D580; display:block;" /></a>
        <!-- end .header --></div>
      <div class="sidebar1">
        <ul class="nav">
          <li><a href="#">Link1</a></li>
          <li><a href="#">Link2</a></li>
          <li><a href="#">Link3</a></li>
          <li><a href="#">Link4</a></li>
        </ul>
        <div id="login_box">
          <p> </p>
          <form id="form1" name="form1" method="POST" action="<?php echo $loginFormAction; ?>">
            <p>User Log Ini</p>
            <p>Username:
              <label for="username"></label>
              <input type="text" name="username" id="username" />
            </p>
            <p>Password:
              <label for="password2"></label>
              <input type="text" name="password" id="password2" />
            </p>
            <p>
              <input type="submit" name="pulsantedati" id="pulsantedati" value="Log In" />
            </p>
          </form>
          <p>  </p>
          <p>Welcome,  !     
          </p>
          </div>
        <p> </p>
        <!-- end .sidebar1 --></div>
      <div class="content">
        <h1> </h1>
        <!-- end .content --></div>
      <div class="footer">
        <p>-----</p>
        <!-- end .footer --></div>
    <!-- end .container --></div>
    </body>
    </html>
    <?php
    mysql_free_result($rsLogin);
    ?>

  • Change color of disabled button

    Hello,
    how can i change the color of a "diabled and greyed" button? I customized the button with new pictures for the true and false-state. but when the button is disabled and greyed then its always the same color: grey.
    Is it possible to change this color somehow?
    Thx for oyur help

    NewOne wrote:
    The problem is not the reference.
    The problem is the reference. The 'Controls[]' property of the cluster outputs an array of general control references. To use these you have to cast them to the right type so you can use them like you want:
    Ton
    Message Edited by TonP on 09-26-2006 04:10 PM
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!
    Attachments:
    example2.png ‏3 KB

  • Display measurment data and change color depending on value

    Hi folks.  I have a 1D array of double precision measurments.  There are 20 elements in the array.  I need to display them on the front panel as well as change the backround color of each element programatically if it is out of range.  There must be an easy way to do this?
    Thanks in advance!

    Like the man says, you can't change the background color of just one element in an array. HOWEVER, there are a variety of other display options that could work, like listboxes.
    Mike...

  • Can a time stamp be applied that changes color if under 24 hr.

    We use fillable pdf to enter job orders. Is there a way that when orders are enter that if the due date is within a 24 hrs period it can change to red or say rush charhe to notify my clients and employees that there will be a upcharge.

    Yes, you need to convert the order date and time and delivery date and time to a JavaScript date object and then get the time in milliseconds from the Epoch date for the 2 items. If you subtract the order date time from the delivery date time values you will have the difference in milliseconds which is easily converted to hours.
    Exact code will require field names, and formats for date and time.
    You use the "util.scand" method to convert a date and time string to a date object.

  • Change colors of objects when pressing (D)efault keyboard shortcut?

    Hi There,
    Is is possible to change the colors an object gets when I press the (D) keyboard shortcut.  As it stands, the object defaults to black stroke with white fill, but I want to know if it is possible to configure it so that I can choose what the default stroke and fill color are for the shortcut.
    Thanks,
    Laz

    Hey Mylenium,
    I didn't see the Make current appearance default in the Appearance panel, or it's drop down.  Can you help me get to it?
    See attached.  I'm on CS5.
    Thanks,
    Laz

Maybe you are looking for