From 48fb6e51e4cba5ad97a4a8b019326f4949ca49a5 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Wed, 28 Feb 2007 05:22:47 +0000 Subject: [PATCH] - Prevent weirdness when trying to remove our child.. someone we may get a ROLL_OUT without having first got a ROLL_OVER? - Clicks that land on the video control should be stopped there and not allowed to trickle back up, potentially triggering the furni action that someone's set on the video. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4611 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/util/VideoDisplayer.as | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/as/com/threerings/util/VideoDisplayer.as b/src/as/com/threerings/util/VideoDisplayer.as index 2966e441e..155b91bd9 100644 --- a/src/as/com/threerings/util/VideoDisplayer.as +++ b/src/as/com/threerings/util/VideoDisplayer.as @@ -123,11 +123,16 @@ public class VideoDisplayer extends Sprite protected function handleRollOut (event :MouseEvent) :void { - removeChild(_pauser); + if (_pauser.parent) { + removeChild(_pauser); + } } protected function handleClick (event :MouseEvent) :void { + // the buck stops here! + event.stopImmediatePropagation(); + if (_paused) { _netStream.resume(); _paused = false;