- 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
This commit is contained in:
@@ -123,11 +123,16 @@ public class VideoDisplayer extends Sprite
|
|||||||
|
|
||||||
protected function handleRollOut (event :MouseEvent) :void
|
protected function handleRollOut (event :MouseEvent) :void
|
||||||
{
|
{
|
||||||
removeChild(_pauser);
|
if (_pauser.parent) {
|
||||||
|
removeChild(_pauser);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function handleClick (event :MouseEvent) :void
|
protected function handleClick (event :MouseEvent) :void
|
||||||
{
|
{
|
||||||
|
// the buck stops here!
|
||||||
|
event.stopImmediatePropagation();
|
||||||
|
|
||||||
if (_paused) {
|
if (_paused) {
|
||||||
_netStream.resume();
|
_netStream.resume();
|
||||||
_paused = false;
|
_paused = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user