Access keysTop, Summary, Constructors, Event handlersMouseEventSink
| Kind of class: |
class |
| Inherits from: |
MovieClip |
| Author: |
Martijn de Visser |
| Classpath: |
org.asapframework.ui.MouseEventSink |
| File last modified: |
Thursday, 13 July 2006, 09:33:58 |
/*
Copyright 2005-2006 by the authors of asapframework, http://asapframework.org
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
/**
@author Martijn de Visser
@description The MouseEventSink class can be attached to a movieclip to catch all mouse events it receives, thus preventing any clips on lower levels from receving those events.
*/
class org.asapframework.ui.MouseEventSink extends MovieClip {
/**
* Constructor
*/
public function MouseEventSink () {
enabled = false;
useHandCursor = false;
tabEnabled = false;
tabChildren = false;
}
/**
* Catch all mouse events
*/
public function onRollOver () : Void {};
public function onRollOut () : Void {};
public function onPress () : Void {};
public function onRelease() : Void {};
public function onReleaseOutside() : Void {};
}
The MouseEventSink class can be attached to a movieclip to catch all mouse events it receives, thus preventing any clips on lower levels from receving those events.
Constructor
MouseEventSink
function MouseEventSink (
)
Constructor
Event handlers
onPress
function onPress (
) : Void
onRelease
function onRelease (
) : Void
onReleaseOutside
function onReleaseOutside (
) : Void
onRollOut
function onRollOut (
) : Void
onRollOver
function onRollOver (
) : Void
Catch all mouse events