Change the color of a button when you click on it in multiple colors

Ive been given the task of creating a map for a major renovation of our hotel. I have limited experience in Acrobat and so all the reccomondations script would be greatly apprecated.

I need to create a pdf file that management can click on a button/box (just something to cover the room) and be able to cycle although three colors independently to see quickly what the State of each piece. There are 884 rooms on eight floors. Ive fixed a section of one of the floors. Thanks in advance for any help.

Level Four Section.jpg

So let's say you have a button called "Room1". Set its fill color to red (most of the columns and rows from center left) and add this code as its MouseUp JavaScript action:

var field = getField ("Room1");
If (color.equal (field.fillColor, color.red))
field.fillColor = color.green;
ElseIf (color.equal (field.fillColor, color.green))
field.fillColor = color.blue;
ElseIf (color.equal (field.fillColor, color.blue))
field.fillColor = color.red;

If you need to apply it to several areas, you can create a script doc-level, as follows:

function switchColor (fName) {}

var field = getField (fName);
If (color.equal (field.fillColor, color.red))
field.fillColor = color.green;
ElseIf (color.equal (field.fillColor, color.green))
field.fillColor = color.blue;
ElseIf (color.equal (field.fillColor, color.blue))
field.fillColor = color.red;

}

and then each button MouseUp action simply call you the function with the name of the button as a parameter:

switchColor ("Room1");

Tags: Acrobat

Similar Questions

  • How to change the image of a line when you click on it from the waterfall cookbook sample application

    Hi, I have a few sql data. And I'm showing them with qlistdatamodel. I used the ListItemProvider and implementing customControl for each line in the sample application cascade cookbook. Which can be found in here. I want to change an image of the line when it is selected. I modified the method 'select' of 'recipeItem.cpp'

    void RecipeItem::select(bool select)
    {
      // When an item is selected, show the colored highlight Container
      if (select)
      {
    
          mHighlighContainer->setOpacity(0.9f);
          mItemImage->setImage(Image(QString("app/native/assets/btn_a.png")));
    
      }
      else
      {
        mHighlighContainer->setOpacity(0.0f);
    
      }
    }
    

    It should have changed the image btn_a.png. But what it does is removes the image and the text remains. Thank you.

    I just found out another of my post that my uri of the image is incorrect. The format of the url I was using was valid only in a Beta SDK. It should be like "asset:///btn_a.png". Now it works perfectly

  • I created a form to complete 4 page. I would like to place a button at the bottom of page 4 when you click inserts another copy of the form in the existing file. I have the user to have the ability to easily create muliple copies of the same 4 pages in

    I created a form to complete 4 page in Acrobat. I would like to place a button at the bottom of page 4 when you click inserts another copy of the form in the existing file. I want the user to have the ability to easily create multiple copies of the same 4 pages in a single file. It is possible with Acrobat? I use a PC.

    It is possible using models and JavaScript, but if it is to work with the player, users will need to use the desktop version (Windows/Mac) of 11 Reader or CD player. Here is a link to an older article which explains the basics: Planet PDF - a lesson in the templates for Adobe Acrobat

    Note that this is a bit outdated, but it should help you get started. If you have any other questions, post them in the Acrobat JavaScript here forum: JavaScript

  • How to clear the cache and page reset when you click on tab

    Hello
    I use two level model tab and its Apex 40.
    I would like to clear the cache and reset pagination when you click level 2nd tab
    Is anyway to do this?
    Thank you.

    hlthanh wrote:
    Hello
    I use two level model tab and its Apex 40.
    I would like to clear the cache and reset pagination when you click level 2nd tab
    Is anyway to do this?

    Can stick us to the standard terminology of APEX: do you mean Parent (level 2) tab or the tab Standard (level 2)?

    Parent tabs this is done directly using the box Erase the Cache property and reset pagination for this page of the tab target.

    For the Standard tabs, create processes from before header tab target:

  • Session state > clear Cache...

  • Reset the Pagination

  • Change the color of the text to the previous button when you click on a button

    Hi all

    If I said 7 buttons, each with text that changes color on turnover by using 'Up' 'Over' and 'Down' of the keyframes in the timeline buttons.  Is there a simple way to get the text of the button changes color when you click on it, stay that way, and then back to the original color once one of the other 6 buttons are engaged?

    The only thing I can get to prepare code pages for each button that changes the color of every other button regardless of whether it was active.

    See the code example would help a lot!

    Thank you!

    use:

    var previouslyClickedBtn:MovieClip
    var buttonA:Array = [content_mc.work_btn, next button and the rest of your buttons];
    var targetA:Array = [work_mc, etc.];

    for (var i: uint = 0; i<>
    .Ivar Button [i] = i;
    buttonA [i] .addEventListener (MouseEvent.CLICK, clickF);
    buttonA [i] .addEventListener (MouseEvent.MOUSE_OVER, overF);
    buttonA [i] .addEventListener (MouseEvent.MOUSE_OVER, overF);
    }

    function workOver(e:MouseEvent):void {}
    e.currentTarget.gotoAndStop ("over");
    }

    function workClick(e:MouseEvent):void {}

    {if(previouslyClickedBtn!=null)}

    previouslyClickedBtn.gotoAndStop ("up");

    }

    e.currentTarget.gotoAndStop ("down");

    previouslyClickedBtn = e.currentTarget;

    targetA [e.currentTarget.ivar] .gotoAndPlay ("enter");
    }

    function workOut(e:MouseEvent):void {}
    content_mc.work_btn.gotoAndStop ("up");
    }

  • How to do an audit in the order page IN. When you click on the button "submit"

    I want to do an audit in order IN. When you click on the "submit" button, it will be checked whether the OP is reserved and will display the message if not.

    I have a CO span from the original, I can know where should I put the logic inside the processFormRequest? and how to write code to control them thanks.

    public void processFormRequest (pageContext, OAPageContext,

    OAWebBean oAWebBean)

    {

    super.processFormRequest (pageContext, oAWebBean);

    }

    OK here is the code below,

    String sql = "START: 1: = XXPO_CHECK_RESERVED_PKG." XXPO_CHECK_RESERVATION(:2); END; « ;

    CallableStatement cs = txn.createCallableStatement (sql, 1);

    String outputval = null;

    try {}

    cs.setString (2, Segment1);

    cs.registerOutParameter (1, OracleTypes.VARCHAR);

    CS. Execute();

    outputval = cs.getString (1);

    TXN.Commit ();

    } catch (Exception sqle) {throw new OAException ("Error in the application of staffing", OAException.ERROR) ;}}

    -Beginning of the code by Hemant

    If ("N".equals (outputval) &! ") ». Equals (outputval))

    {

    throw new OAException ("The PO isn't in reserved State");

    }

  • Dynamically replace the spark icon button when you click on

    I'm looking to turn 'play' and the button icons 'pause' button in a video player, I developed.  It is a packaged application IOS so "ToggleButton" use is not recommended by Adobe. It is not mobile optimized.

    When you click on the button of the current icon should be replaced by another dynamically.

    How to do that generically - in essence, with traces hard coding to the assets inside the skin?

    I see a lot of examples where you can move an icon to a skin - like this http://blog.flexwiz.net/tip-easy-spark-icon-button/instance.

    But how did you then fail over to another icon on the fly when the user clicks on the button?

    Think I see how.  The value of the element of style "icon" in the AS button click handler.

    btnPlyPause.setStyle ("icon", "path_to_asset");

    Now just the logic of maintaining awareness of the State in which I am currently in - play or pause so I can choose the icon on the right.

    Cool.

  • How can I change the content of a string when I click on an image?

    I have hundreds of images that need to play a unique sound when you click it.  In order to simplify the construction of this flash file, I need to simplify in a manner that will allow me to change one word.  Some examples of code.  I think that the reason why this does not work, what I'm declaring 'word' twice... suggestions anyone?  Thanks in advance...

    import flash.events.MouseEvent;

    Stop()

    var password: String = "family".

    trace (word + "_nv")

    This [word + "_nv"] .addEventListener (MouseEvent.CLICK, playaudio);

    This [word + "_nv"] .buttonMode = true;

    var password: String = "grandchildren".

    trace (word + "_nv")

    This [word + "_nv"] .addEventListener (MouseEvent.CLICK, playaudio);

    This [word + "_nv"] .buttonMode = true;

    function playaudio (event: MouseEvent): void {}

    this [word + "_nv"] .play)

    }

    I see no where what you show is simplify anything.  This would save code in order to use only the strings rather than assign the string to variables and using variables.  In all cases. Yes, you do not want to declare the same variable twice (only use "var").  And your playaudio function will not work with whatever the last value of 'word' that you assign.

    To simplify the code, you can name each mc using a digital increment (mc_1, mc_2, mc_3, etc.), and then assign your headset in just a few lines by using a loop.  In audio playback function, you can use the name of the instance of the event.currentTarget.

    This [Event.currentTarget.Name]. Play();

    or even

    MovieClip (event.currentTarget) .play ();

  • Why can I not see the details of my question, when you click on it in my profile?

    I've created a new issue earlier this week, and apparently I have a question, based on my profile. When you click on the link 'Question' I see a result search failed. Why can I not see my question (to check if an update)?

    Thanks for that - now I see my original question, which remains unanswered (except someone telling me to use another browser!). You are also able to help with this one please?

    (I can send screenshots to illustrate the problem, if it helps...)

    Soon, K

  • How to clear the text &lt; tr:inputText component when you click on

    Hello

    I have a component inputText in my page with the default "search for" and when I click on it to enter something, it should be cleared.

    Please suggest me a way to do this. That am using components of tr I can't use clientListener for that I guess.

    Help, please.

    Thank you
    Hari

    You can use trh:script
    http://MyFaces.Apache.org/Trinidad/Trinidad-API/tagdoc/trh_script.html

  • Change the Mobile Web site icon when you add to the home screen of a Mobile

    Someone knows how to change the icon on the mobile layout when a user "adds to the home screen? Also, is it possible to add the mobile Web site to the homescreen to users having a button or code in place? Any help would be much appreciated people! Thank you very much!!

    Bookmark saved on the phone screen would be the favicon on your site, you can change Site Properties.

    What about adding site favicon in the home screen, you can add the bookmark of the browser on the screen first and then the browser settings, add bookmark with the site name in the home screen.

    Thank you

    Sanjit

  • How to change the IP host address list when you connect in the vSphere client?

    Is it possible to edit the list of hosts/ip I get when connecting in the vSphere client?

    ScreenShot022.png

    Thank you!

    As far as I know it is possible by editing the registry. The key you are looking for is HKEY_CURRENT_USER\Software\VMware\VMware Infrastructure Client\Preferences\RecentConnections

    André

  • Why the flat firefox image on the start with WASD page when you click it?

    When you select at home, the normal firefox icon flashes on and is replaced by an image tilted slightly with another small character to the left of the head of Fox and the words click me! If you click on it, the same image now has the letters WASD and a key appears in the centre of the world where the Fox is wrapped around. I didn't know this until the update to the latest verson 33.

    If you prefer not to see excerpts on the topic: home page or otherwise have problems with a snippet of code, you can set the browser.aboutHomeSnippets.updateUrl pref an empty string on the topic: config page.
    Delete the storage\persistent\moz-safe-about + House in the closed Firefox with Firefox profile folder (Firefox '3-bar' menu button > exit/Quit) remove code snippets stored in IndexedDB and make Firefox to use a default extract value.
    You can reset the pref browser.aboutHomeSnippets.updateUrl through the context menu on the default to reactivate the code snippets and make Firefox recreate the moz-trunk-fort-about + folder.
    You have to close and restart Firefox after changing the value of the preference of browser.aboutHomeSnippets.updateUrl.

    You can use this button to go to the Firefox profile folder currently in use:

    • Help > troubleshooting information > profile directory: see file (Linux: open the directory;) Mac: View in the Finder)

    You can open the topic: config page via the address bar.
    You can accept the warning and click on "I'll be careful" to continue.

  • Changes in size of HTML5 sensitive when you click table of contents

    I worked with my developer to implement the CSH sensitive HTML by calling the URL of the topic. He said it has works very well when he initially consumed my files. Now that I've done an update, it says they behave differently. He calls the subject in an iFrame, and when he does this for just about any subject other than the default theme, topic views, but he did not get the assistance framework (table of contents, glossary, etc.). For example, his appeal is in this directory:! SSL!/project/topic.htm

    He says he can call it like that! SSL!/project/index.htm#t=topic.htm then the topic displays fine, but the window resizes when it click on the table of contents or one of the buttons aid. Maybe Willam van Weelden can help?

    HR changed 11.0.3. You can always call a topic, but it will redirect you to the start page of the project. HR 11.0.3. Adobe introduced an iFrame to display the content in the topic where RoboHelp used to have completely separate pages.

    Attributes for where the subject must be open lies in the scripts of different widgets. For example, in toctree.js, on line 338 and 345 target is set for the table of contents.

    I am surprised that the _self option is to give you problems. I know that it works.

    I think that Adobe he didn't consider a scenario that sensitive help was to be opened in an iFrame. I recommend that you file a bug report.

  • Firefox loads, icon on the bar of tasks but when you click the slide of graphics off to the right, but does not fill the screen &amp; when you right-click again, falls back into the icon

    Firefox, Thunderbird and Quicken were active when I loadad & ran a slot machine game. When I left the game & click on icon to return to Firefox full screen, I could see the flash of the image to the right of my screen and disappear. When I clicked on the icon in the taskbar, the reverse happened - the image flashed from the right down to the icon. When I hover the mouse over the icon, the open screens appear with the red X to close, but the same thing happens when I click on this box. Two other programs that have been opened, while the game was active work correctly, only Firefox has been affected. I can't open the program to access one of the menu items that I can't get the image of the screen on the monitor. I did uninstall and reinstall a freshly downloaded copy, I had to use IE, as I am now) but with the same results when I run. I did chose to save my settings, so if something has changed here so maybe that's the problem.

    Hello

    Try Firefox Safe mode to see if the problem goes away. Safe mode is a troubleshooting mode, which disables most of the modules.

    (If you use it, switch to the default theme).

    • You can open Firefox 4.0 + in Safe Mode holding the key SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • Or open the Help menu and click on the restart with the disabled... modules menu item while Firefox is running.

    Once you get the pop-up, simply select "" boot mode safe. "

    If the issue is not present in Firefox Safe Mode, your problem is probably caused by an extension, and you need to understand that one. To do this, please follow article Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems .

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. It might help others who have the same problem.

    Thank you.

Maybe you are looking for

  • can I have multiple playlists on my ipod

    I have auto filled a playlist of my computer itunes for my ipod nano.  It worked, but I don't see the name of the playlist anywhere on the ipod.  I have all the songs and and also the cover of the album.  I can play songs by album, artist, genres, et

  • Looking to run 3 monitors on my MacPro 2009

    I have an Early 2009 Mac Pro with a Quadro FX 4800 running two monitors, but I would like to add a third monitor. I didn't find the OEM card yet, but I think it's a NVIDIA GeForce GT 120 and was originally plugged into the slot that the Quadro now (i

  • My digital TV (Sony Bravia that has a USB port), can be connected wireless to my router?

    I would like to connect my wireless digital TV to my computer via the router, but I'm not sure it can be done. My TV has HDMI and USB ports.

  • Cannot remove the hard drive from the case

    Acer Aspire AT3-605-UR22 with the slide in front of the Bay of hard drive enclosure. I have a second hard drive in the traction of front loading Bay. For the life of me I can't figure out how to remove the hd enclosure! OMG -Shawn

  • I am Admin on my PC, but cannot change the display settings.

    I have vista home premium and I can't change my wallpaper. I am logged on as administrator and can change most of the other settings, but a box tells be that the administrator has blocked the launching of the display settings control panel. I don't t