Photoshop: Script UI - Flashing image on 'mouseover' callback

  • 1
  • Problem
  • Updated 6 years ago
  • (Edited)
in a ScriptUI window, when I try to change an 'image' source in response to a 'mouseover' event, the image changes but flashes continuously. This happens on PS CS6 + CC, MacOSX 10.8.4 - while on other apps like Illustrator CC or ESTK the transition is instantaneous and without a glitch.


var imageOne = new File("~/Desktop/one.png");
var imageTwo = new File("~/Desktop/two.png");

var w = new Window('dialog',"flashing images");
var img = w.add('image', undefined, imageOne);

img.addEventListener('mouseover', function() { img.image = imageTwo });;
Photo of Davide Barranca

Davide Barranca

  • 21 Posts
  • 3 Reply Likes

Posted 6 years ago

  • 1

Be the first to post a reply!