From 6d751fc466ab50e121c95a2d5890ac521e268ab6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Fri, 16 Aug 2013 16:40:26 -0700 Subject: [PATCH] Add mouse hovering to StrokeBounds example. --- examples/Scripts/StrokeBounds.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/Scripts/StrokeBounds.html b/examples/Scripts/StrokeBounds.html index b2497ba9..97745253 100644 --- a/examples/Scripts/StrokeBounds.html +++ b/examples/Scripts/StrokeBounds.html @@ -83,6 +83,13 @@ rect.strokeWidth = 0.25; rect.strokeColor = 'green'; rect.fillColor = null; + + path.onMouseEnter = function() { + this.strokeColor = 'red'; + } + path.onMouseLeave = function() { + this.strokeColor = 'black'; + } } project.activeLayer.position = view.center;