How do i stop draw refresh on mouseover?

I am drawing shapes on a custom element, and running a function on draw. for somereason it is constantly redrawing anytime I mouse over the shape how can I stop that?I am using cs6. here is a sample code with the issue that I am talking about was taken from a photoshop scripting forum but illustrtates my point. everytime you mouseover or mouseout the square it initiates the on draw but i only want it to redraw on the press of a button.
var winRes = "dialog {  \
    text: 'ScriptUI Graphics test',  \
    margins: 15, \
    alignChildren: 'row', \
    canvas: Custom {  \
        preferredSize: [200, 200], \
        creation_properties: {borderStyle: 'black'} , \
    buttonsGroup: Group{ \
        cancelButton: Button { text: 'Cancel', properties:{name:'cancel'} }, \
        tryButton: Button { text: 'Try', properties:{name:'try'},size: [40,24], alignment:['right', 'center'] }, \
// Window
var win = new Window(winRes);
function color() { return [Math.random(),Math.random(),Math.random(),1] }
// define the graphic property
canvasGraphics = win.canvas.graphics
// do the drawing
win.canvas.onDraw = redraw
function redraw() {
          // creates a red filled square
          canvasGraphics.newPath()
          canvasGraphics.rectPath(10, 10, 200, 200)
          canvasGraphics.fillPath(canvasGraphics.newBrush(canvasGraphics.BrushType.SOLID_COLOR, color(), 1)) // HERE
win.buttonsGroup.tryButton.onClick = function() {
      win.canvas.notify("onDraw")
win.show()

This appears to be a bug that has been fixed in AECC. I tried it in CS6 and the color box flickers like mad when you mouseover it and also changes when clicking the button. In AECC it appears to be working properly and is not effected by mousing over the box.

Similar Messages

  • How can I stop auto refreshing a new web page in XP immediately after its opened?

    In XP, once I access a new web page Firefox auto refreshes that page once the page is ~80-90% opened - how can i stop this refresh?

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the ''Safe mode'' start window.
    You have to close and restart Firefox after each change via "File > Exit" (on Mac: "Firefox > Quit")

  • How do you stop automatic refreshing

    How can I stop Firefox from constantly refreshing pages. It is driving me mad when reading newspapers etc. online that the pages are refreshing every 1 - 2 minutes. There use to be a fix which worked but of course with all the unwanted upgrades that stopped working a few unwanted upgrades ago.

    See https://support.mozilla.org/en-US/questions/864071, it might help!

  • How to handle stop and refresh button.

    i have two JSP pages. in the frist page the user has the option to either view previous ones or create a new. in both cases i pass a form id as parameter to execute the related data. in the second page , when user fills the data and clicks submit, and clicks the stop or refresh or any other button before the data gets committed and reaches the confirmation page, how do i handle it? when user clicks one of these buttons , the controller class executes again (the process request is again executed).but this time there are no parameters sent to the controller. how do i handle this? also when user clicks the back i have redirected to dialog page. but there are back,forward refresh buttons for the dialog page. if user clicks those, again there are no parameters sent to the controller class.
    how do i handle this.

    too many queries at the same time.
    1. Back button - Read the devguide and make the application/page bworser backbutton safe
    2. Refresh/Stop Buttons - either use js to restrict these, or embed logic in the code to stop undesirable behaviour.
    Thanks
    Tapash

  • How do I stop constant refreshing on google and other browsers

    I have constant refresh on google and Safari browsers.  It is constantly .what do I do?

    If there is a password field on a web page and you have saved a password then Firefox may try to fill that password and enter the name in the field just above that password field.
    You can look at:
    * Saved Password Editor: https://addons.mozilla.org/firefox/addon/60265
    *Form History Control: https://addons.mozilla.org/firefox/addon/12021
    You may want to disable saved form fill to prevent Firefox from filling the name.
    * [[Form autocomplete]]
    * http://kb.mozillazine.org/Deleting_autocomplete_entries

  • How can i stop refresh action of the IE Browser in my applet

    I am running my applet in IE browser, My applet loads with an initial screen, applets starts changing its state as user is working on it, but if the user uses the Refresh option of the browser or goes to url and press ENTER key, my applet comes back to the initial screen.
    How do i stop my applet from going back to the initial screen. Help is very urgently needed.
    thanks
    Sridhar Nallapu

    Thank you for the response,I have some complex screens that i show on the applet, JDesktopPane that is displayed in the Applet contains number for internal frames which are dependent on the data that is displayed in other internal frame. SO saving the state of the applet becomes very diffucult for me.
    I want something like repaint functionality to happen when the browser refresh button is clicked. But on refresh button of the Browser will invariably load the Applet.
    I am looking for a solution where we could stop reloading of the applet.
    or call specific method while reload is happening.
    I am looking for a solution, where applet refresh can stopped thru a java script.

  • When I sign into or out of Gmail - many other pages automatically refresh. How do I stop this?

    I hate automated things, when it's NON consensual and it's part of some automated bullshit trip.
    I might have half finished texts on the other open tabs, or what ever, but it's MY bandwidth to chew up on things I see fit, not the people of Mozilla, or Google or whoever.
    And while the account page is gmail, that I am signing into or out of, the other pages are NOT google pages either.
    I think the designers of the "refresh / automatic refresh" should be shot - because the reason I have a PAGE (tab) open, is because I want to access THAT page, and not a later version of it...
    This auto-reload / refresh of some tabs absolutely annoys the piss out of me, because I did not ask for it, and there is NO apparently easy up front way to stop it from happening - which I also think is one of the best way to alienate users of a product - by building in a host of idiot functions with NO control over them.
    So how do i stop this from happening?

    ''the-edmeister [[#answer-690349|said]]''
    <blockquote>
    That may be happening for websites that participate in Google+. ''IOW, Google+ knows about a lot of things you use on the internet; like they're following you around.'' You may want to check those websites to verify that they are connected with the Google+ program, or not. ''In that case, my hypothesis is incorrect.''
    I think what happens is that you sign in at Gmail, which is a Google+ sign-in these days, and all the other web pages that participate in the Google+ program somehow "sense" that you have just logged into Google+ and reload their page to reflect that you are nowlogged into the Google+ program. Google+ was originally an "option" at Gmail, but that ended not to long after Google+ came about - like within 6 months or so.
    http://www.google.com/intl/en/+/learnmore/better/
    One solution is to stay logged into Google+ / Gmail all the time. Another is to transition away from Gmail over time and use a different web-mail platform instead; and eventually stop using Gmail altogether.
    </blockquote>
    Yeah this is sounding like "THE PROBLEM" and what drives it. However, the solutions you have offered are not "solutions", in that they do not "FIX" the issues, they merely circumvent or bypass them.
    Since I can't go punch Eric Schmitt on the nose for being a nazi prick, and send him the bill for wasting my internet data, I want to stop the collusive programming practices of the people from Mozilla and Google - from operating my computer, contrary to my mandates. i.e. It's my computer and I am paying for my bandwidth." - I have total say so about what I allow to go on, not anyone else.

  • How do I stop custom MD form button refresh?

    I've added a custom button to my master-detail form. It invokes a JavaScript function that calculates the totals of the columns of textboxes on the screen. But when the button is clicked, it refreshes the screen. This means that it loses all the totals when the screen finishes refreshing.
    I found that the button automatically adds doEvent() to the end of the JavaScript, causing the refresh. How do I stop it from doing this???
    Thanks,
    Carey

    Hi,
    Dont give any event for the button. Dont select "custom". Only have a javascript event.
    Thanks,
    Sharmila

  • How do I stop Safari from refreshing?

    How can I stop it from refreshing when:
    1) When I press the "back" button, I want it to load what it has previously saved, not to reload the whole page again... this takes much longer and takes up bandwidth
    2) When I open the page again after a while: say I have 4-5 pages of different web pages, and when I open one of the pages that I haven't opened for a few minutes it'll load again when I try to go to that page... again, this takes much longer and takes up bandwidth
    So how can I tell Safari just to show me what it has previously loaded and tell it to stop refreshing everything? It's quite annoying.
    Thanks in advance!

    I've submitted feedback on this, and posted in another thread. This reloading issue is a real problem for using mobile boarding passes on airlines which support them, such as Continental and American. You may be able to present your boarding pass and scannable bar code at the bag check or security, but by the time you get to the gate, Safari will decide to reload the airlines' web page with your pass. Of course, this confuses the airlines' servers, and it takes several attempts (and minutes) to recall the correct page.
    This unrequested reload is a real issue - it breaks the utility of Safari and the iPhone for this application, and many other web sites which have issues with a reload.

  • HOW DO I STOP MY JSP PAGE FROM INSERTING DATA IN DATABASE EACH TIME REFRESH

    Hi,
    HOW DO I STOP MY JSP PAGE FROM INSERTING DATA IN DATABASE EACH TIME REFRESH?
    Thanks

    emekaco wrote:
    Hi,
    HOW DO I STOP MY JSP PAGE FROM INSERTING DATA IN DATABASE EACH TIME REFRESH?
    ThanksSTOP SHOUTING!
    now, while displaying the form generate some random number, or take the current time in millis or whatever. Put that number in a hidden field. Insert that unique number along with the real data into the database, but before you do check if the number already exists. If it does you can be pretty sure this is a resubmit of the same data, so don't allow it. This is one way of many to prevent resubmission of existing data.
    A good way to prevent a refresh from resubmitting altogether is to do a redirect to a result page right after you deal with the POST request. When the user presses refresh then, he/she will refresh the redirect and not the form submit.

  • Video's keep stopping to refresh. How do I prevent this?

    Video's on both Fox and youtube play for 5-10 seconds then stop to refresh. I have deleted cookies, emptied cache and updated Adobe. I have plenty of memory free space at 3.32 GB and 452 free space of disk. The system seems to be running slower and takes longer to open anything than what it used to. This is a new problem. I am using an iMac OS X version 10.6.8

    Actually that sounds more like your ISP speed, another Application on your system downloading something or other user's on the same local network.
    For example: my AT&T DSL service is just barely fast enough to stream videos and if I'm downloading system updates or App's from the iTunes Store for my iPad, YouTube and other videos will load slower than they play.
    You can check the ISP speed with the Network tab of Activity Monitor,
    with the iStat Pro, a Dashboard Widget by iSlayer 
    or Speakeasy - Speed Test

  • How do I stop iTunes from re-altering my sorting info for classical music?

    Hi there. Hope someone can help. This is really irritating me now.
    I have a lot of classical music in my iTunes library. Since very early on I have taken the decision to alter the Artist name in the sort field to the name of the composer rather than the performer as the listing of artists in classical music is so inconsistent (sometimes it's the orchestra, or the orchestra & conductor, or just the conductor, or the soloists, or it changes from track to track). I have kept the performer's details in the Comments box.
    This has been absolutely fine until the last year or so, when I have noticed that music that I have downloaded from the iTunes store automatically reverts to the original sorting information even though I've changed it. So, for instance, I will have changed "Alfred Brendel" to "Mozart" as the Artist for a Mozart piano sonata. And even though I have changed the Artist, the Album Artist, the Sort Artist and the Sort Album Artist ALL to Mozart and synced that successfully to my iPhone, the next time that I launch iTunes or turn on my iPhone it will all mysteriously have reverted to the original sorting information. And I don't want that for classical music - fine for rock, pop etc., but classical music has a different set of priorities. I'm guessing this has something to do with iCloud, but how do I stop it happening? It is really tedious to keep altering these things. And some bizarre anomalies have appeared, such as some early Baroque music (Monteverdi) being labelled by iTunes as Electronic in the genre box!! Which it clearly isn't! But the same thing happens - I change the genre, but it changes back! Surely once I sort something it should stay sorted!
    I'm sure there's a fantastically obvious explanation for this, and I apologise for missing it. But I don't know what to do . I have iTunes 11.3.1 and am running OS 10.9.4 (Mavericks).
    Many thanks.

    Yes, others are seeing this. Something in purchased media (I am pretty sure this has only happened with purchased media) is periodically checking back with the iTunes Store and resetting the tags in the iTunes library file but not in the actual media files (metadata are stored in both).  I haven't seen a truly systematic diagnosis of the issue (I use an old iTunes and have no iTunes account so I can't test anything myself).  There are temporary workarounds but tags will still revert after a time.
    2014 discussion about edited tags for Store purchases reverting to originals - https://discussions.apple.com/message/26077896#26077896 - edited tags are still present in the media file but revert to the originals in the iTunes library file.  Workaround is to refresh tags so media file tags are re-read and used in library file.
    https://discussions.apple.com/message/26193185#26193185
    https://discussions.apple.com/message/26335620#26335620 - user ended up rebuilding iTunes library from scratch
    Send feedback to Apple about this so they know it is an issue they need to investigate: 
    http://www.apple.com/feedback/itunesapp.html
    Don't expect an immediate solution but maybe the next time they update the software it may be resolved.

  • How do I stop iCal from changing my appointment times when traveling?

    Once again I missed an important meeting as I had entered it into my iPhone so that event is to start at 10 AM. Last night I flew to this city which is two hours ahead of my town. So what again happened is that iCal just decided to change the time of my appointment to 12 AM.
    Why on earth would iCal asume that I would eneter the event into it in my hometowns time? I mean, when agreeing on the phone with a client, you do not say I'll be there 10 AM my time. You obviously say "ok let us meet at 10 AM".
    So how do I stop this from happening.

    I was having the same problem and spent some time on the phone with apple today.(new computer is under apple care). Tried a ton of stuff with different folks and ultimately I (well, me and 3 apple specialists) was able to solve this issue.
    Here's the break down:
    1. Quit Mail, Calendar and Messages.
    2. Open: System Preference -> Mail, Contacts & Calendars
    3. Delete all your google accounts (using the little minus button below your account list)
    4. Restart your computer.
    5. Re-add your google accounts. (Obviously, keep the calendar box checked).
    6. Open calendar and wait for your google info to populate.
    7. Attempt to add an event with correct time zone.
    IMPORTANT NOTE:
    Events I created while I was having the problem still had the problem.
    I simply deleted those broken events and recreated them with refreshed settings.
    I've only had this working for a few hours so I'm not certain it will stay working forever.
    But for now it is a relief.
    I realize deleting and re-adding the accounts is annoying but it's a lot less frustrating than seeing UTC every time you add an event.
    Hope that helps everyone else having this problem.

  • How can I stop the execution on a JSP page and start it again

    Hi
    I am making a program that simulates how to manage transactions when accessing a database by using locks. I have run into a problem and I hope someone has the time to help me.
    When a user does an update the transaction commits and releases its locks when the program executes
    <%stmt.executeUpdate("commit!"); %>
    I need to put a break in to stop the program executing this statement, to illustrate the lock is set correctly.
    I have tried to put in an alert box but this does not prevent the rest of the java code being executed.
    I have tried to use prompt boxes, JavaScript functions, but these functions cannot have any java code in them.
    I have tried using the java.swing JOptionPane boxes but this didn?t work either
    I have tried to get input from the user but I don?t know how to retrieve this data on the same page. (As far as I know you have to use submit and even refresh the page or retrieve it on the next page).
    Does anyone know how I can stop the execution on a JSP page and start it again (on same page)
    Mette

    I already have another client (Tomcat jsp application) running and it throws a SQLException correctly when I don�t put in a commit=true statement and don't close the database connection.
    But the problem is how to get the code above to stop to illustrate I have set this lock.
    I have tried to use the JOptionPane but because my program is running in a web browser I cannot use the JOptionPane dialog box.
    I have tired using an alert box but it executes the commit statement before the alert box is dispayed. So this does not work
    While (i < 2)
    if( i==1)
    %>alert(�The transactions commits when you press Ok�); <% //what it to stop execution here
    else
    stmt.executeUpdate(�commit�);
    I am not using threads so I cannot use the sleep function.
    I am using mysql and have already configured it to detect deadlocks and how long to wait for locks.
    Thanks for your help
    Mette

  • How can I stop mail on iPad from going to next message when deleting an email?

    How can I stop the mail app from moving to the next message when deleting an email?
    I like to keep messages as new until I can take action on them, but this just makes an unnecessary step.  I do not have this problem on my iPhone, but I am still running 5.0.1 on the phone and have the new iPad 5.1 software.

    Hi furiousbalancing,
    With regards to deleting messages in Mail, you may find the following portion of the following article helpful:
    To prevent the next message from being automatically selected (and marked as read), hold down the Option key when you delete a message.
    Mail (Mavericks): Delete messages
    http://support.apple.com/kb/PH14900
    You can also use Command-Shift-U to toggle a message between Read and Unread (command should be the same in Mavericks):
    Mail (Mountain Lion): Keyboard shortcuts
    http://support.apple.com/kb/PH11679
    You can also close the Preview portion of the Mail window, which should then require you to double-click on a message to open it and have it show as read (it appears the double click on the seperator may no longer work in Mavericks, but you should still be able to drag it to make it disappear):
    Mac OS X Mail: How to show or hide the preview pane or mailboxes drawer
    http://support.apple.com/kb/HT2583
    Regards,
    - Brenden

Maybe you are looking for

  • Storing PDF and Word document in oracle database

    any idea, how to store PDF and word document using oracle database. thanks

  • How can I get my music on iTunes on my new computer?

    I just got a new computer because my old one totally died. All I want to do is get my iTunes on my new computer to have all my music on it, just like it was on my previous computer. I have an first generation iPod Touch, 16GB.

  • "Not passed Windows logo testing" message

    I just download iTunes 8 and partway through the install got a message that said "software has not passed Windows Logo Testing" and that this could compromise my system. The older version of iTunes worked just fine, is there anywhere I can download t

  • Generating certificates *without* keytool

    I'm trying to replace some Java code based on Baltimore KeyTools so that it uses only what ships in the JCE. In particular, I'd like to be able to create a self-signed certificate given a DN and some other bits of information, then generate and proce

  • "This field name is not known" error when upgrading from VS 2003 to VS 2005

    When we upgraded our web servers from VS 2003 to 2005, our crystal reports web viewer began having a problem with reports that contained sub-reports.  We now are getting the following error on the web page.  The reports were developed in Crystal 10,