Adobe® Flash® Platform용 ActionScript® 3.0 참조 설명서
 |  패키지 및 클래스 목록 숨기기 |  패키지  |  클래스  |  새로운 내용  |  색인  |  부록  |  영어로 표시되는 이유
필터: AIR 30.0 이하, Flash Player 30.0 이하, Flash Lite 4
Flex 4.6 이하, Flash Pro CS6 이하
필터 숨기기
flash.events 

MouseEvent  - AS3

패키지x

최상위 레벨
adobe.utils
air.desktop
air.net
air.update
air.update.events
coldfusion.air
coldfusion.air.errors
coldfusion.air.events
coldfusion.service
coldfusion.service.events
coldfusion.service.mxml
com.adobe.acm.solutions.authoring.domain.extensions
com.adobe.acm.solutions.ccr.domain.extensions
com.adobe.consulting.pst.vo
com.adobe.dct.component
com.adobe.dct.component.datadictionary
com.adobe.dct.component.datadictionaryElement
com.adobe.dct.component.dataElementsPanel
com.adobe.dct.component.toolbars
com.adobe.dct.event
com.adobe.dct.exp
com.adobe.dct.model
com.adobe.dct.service
com.adobe.dct.service.provider
com.adobe.dct.transfer
com.adobe.dct.util
com.adobe.dct.view
com.adobe.ep.taskmanagement.domain
com.adobe.ep.taskmanagement.event
com.adobe.ep.taskmanagement.filter
com.adobe.ep.taskmanagement.services
com.adobe.ep.taskmanagement.util
com.adobe.ep.ux.attachmentlist.component
com.adobe.ep.ux.attachmentlist.domain
com.adobe.ep.ux.attachmentlist.domain.events
com.adobe.ep.ux.attachmentlist.domain.renderers
com.adobe.ep.ux.attachmentlist.skin
com.adobe.ep.ux.attachmentlist.skin.renderers
com.adobe.ep.ux.content.event
com.adobe.ep.ux.content.factory
com.adobe.ep.ux.content.handlers
com.adobe.ep.ux.content.managers
com.adobe.ep.ux.content.model.asset
com.adobe.ep.ux.content.model.preview
com.adobe.ep.ux.content.model.relation
com.adobe.ep.ux.content.model.search
com.adobe.ep.ux.content.model.toolbar
com.adobe.ep.ux.content.search
com.adobe.ep.ux.content.services
com.adobe.ep.ux.content.services.load
com.adobe.ep.ux.content.services.permissions
com.adobe.ep.ux.content.services.preview
com.adobe.ep.ux.content.services.providers
com.adobe.ep.ux.content.services.query
com.adobe.ep.ux.content.services.relationships
com.adobe.ep.ux.content.services.search.lccontent
com.adobe.ep.ux.content.services.version
com.adobe.ep.ux.content.view
com.adobe.ep.ux.content.view.components.activate
com.adobe.ep.ux.content.view.components.grid
com.adobe.ep.ux.content.view.components.grid.hover
com.adobe.ep.ux.content.view.components.grid.hover.component
com.adobe.ep.ux.content.view.components.grid.renderers
com.adobe.ep.ux.content.view.components.relationships
com.adobe.ep.ux.content.view.components.review
com.adobe.ep.ux.content.view.components.search.renderers
com.adobe.ep.ux.content.view.components.searchpod
com.adobe.ep.ux.content.view.components.toolbar
com.adobe.ep.ux.content.view.components.toolbar.controlRenderers
com.adobe.ep.ux.content.view.components.version
com.adobe.ep.ux.documentsubmit.component
com.adobe.ep.ux.documentsubmit.domain
com.adobe.ep.ux.documentsubmit.skin
com.adobe.ep.ux.taskaction.component
com.adobe.ep.ux.taskaction.domain
com.adobe.ep.ux.taskaction.domain.events
com.adobe.ep.ux.taskaction.skin
com.adobe.ep.ux.taskdetails.component
com.adobe.ep.ux.taskdetails.domain
com.adobe.ep.ux.taskdetails.skin
com.adobe.ep.ux.tasklist.component
com.adobe.ep.ux.tasklist.domain
com.adobe.ep.ux.tasklist.skin
com.adobe.ep.ux.webdocumentviewer.domain
com.adobe.exm.expression
com.adobe.exm.expression.error
com.adobe.exm.expression.event
com.adobe.exm.expression.impl
com.adobe.fiber.runtime.lib
com.adobe.fiber.services
com.adobe.fiber.services.wrapper
com.adobe.fiber.styles
com.adobe.fiber.util
com.adobe.fiber.valueobjects
com.adobe.gravity.binding
com.adobe.gravity.context
com.adobe.gravity.flex.bundleloader
com.adobe.gravity.flex.progress
com.adobe.gravity.flex.serviceloader
com.adobe.gravity.framework
com.adobe.gravity.init
com.adobe.gravity.service.bundleloader
com.adobe.gravity.service.logging
com.adobe.gravity.service.manifest
com.adobe.gravity.service.progress
com.adobe.gravity.tracker
com.adobe.gravity.ui
com.adobe.gravity.utility
com.adobe.gravity.utility.async
com.adobe.gravity.utility.error
com.adobe.gravity.utility.events
com.adobe.gravity.utility.factory
com.adobe.gravity.utility.flex.async
com.adobe.gravity.utility.logging
com.adobe.gravity.utility.message
com.adobe.gravity.utility.sequence
com.adobe.gravity.utility.url
com.adobe.guides.control
com.adobe.guides.domain
com.adobe.guides.i18n
com.adobe.guides.spark.components.skins
com.adobe.guides.spark.components.skins.mx
com.adobe.guides.spark.headers.components
com.adobe.guides.spark.headers.skins
com.adobe.guides.spark.layouts.components
com.adobe.guides.spark.layouts.skins
com.adobe.guides.spark.navigators.components
com.adobe.guides.spark.navigators.renderers
com.adobe.guides.spark.navigators.skins
com.adobe.guides.spark.util
com.adobe.guides.spark.wrappers.components
com.adobe.guides.spark.wrappers.skins
com.adobe.guides.submit
com.adobe.icc.dc.domain
com.adobe.icc.dc.domain.factory
com.adobe.icc.editors.events
com.adobe.icc.editors.handlers
com.adobe.icc.editors.managers
com.adobe.icc.editors.model
com.adobe.icc.editors.model.config
com.adobe.icc.editors.model.el
com.adobe.icc.editors.model.el.operands
com.adobe.icc.editors.model.el.operators
com.adobe.icc.enum
com.adobe.icc.external.dc
com.adobe.icc.obj
com.adobe.icc.services
com.adobe.icc.services.category
com.adobe.icc.services.config
com.adobe.icc.services.download
com.adobe.icc.services.export
com.adobe.icc.services.external
com.adobe.icc.services.formbridge
com.adobe.icc.services.fragmentlayout
com.adobe.icc.services.layout
com.adobe.icc.services.letter
com.adobe.icc.services.locator
com.adobe.icc.services.module
com.adobe.icc.services.render
com.adobe.icc.services.submit
com.adobe.icc.services.user
com.adobe.icc.token
com.adobe.icc.vo
com.adobe.icc.vo.render
com.adobe.icomm.assetplacement.controller
com.adobe.icomm.assetplacement.controller.utils
com.adobe.icomm.assetplacement.data
com.adobe.icomm.assetplacement.model
com.adobe.livecycle.assetmanager.client
com.adobe.livecycle.assetmanager.client.event
com.adobe.livecycle.assetmanager.client.handler
com.adobe.livecycle.assetmanager.client.managers
com.adobe.livecycle.assetmanager.client.model
com.adobe.livecycle.assetmanager.client.model.cms
com.adobe.livecycle.assetmanager.client.service
com.adobe.livecycle.assetmanager.client.service.search
com.adobe.livecycle.assetmanager.client.service.search.cms
com.adobe.livecycle.assetmanager.client.utils
com.adobe.livecycle.content
com.adobe.livecycle.rca.model
com.adobe.livecycle.rca.model.constant
com.adobe.livecycle.rca.model.document
com.adobe.livecycle.rca.model.participant
com.adobe.livecycle.rca.model.reminder
com.adobe.livecycle.rca.model.stage
com.adobe.livecycle.rca.service
com.adobe.livecycle.rca.service.core
com.adobe.livecycle.rca.service.core.delegate
com.adobe.livecycle.rca.service.process
com.adobe.livecycle.rca.service.process.delegate
com.adobe.livecycle.rca.token
com.adobe.livecycle.ria.security.api
com.adobe.livecycle.ria.security.service
com.adobe.mosaic.layouts
com.adobe.mosaic.layouts.dragAndDrop
com.adobe.mosaic.layouts.interfaces
com.adobe.mosaic.mxml
com.adobe.mosaic.om.constants
com.adobe.mosaic.om.events
com.adobe.mosaic.om.impl
com.adobe.mosaic.om.interfaces
com.adobe.mosaic.skinning
com.adobe.mosaic.sparklib.editors
com.adobe.mosaic.sparklib.optionMenu
com.adobe.mosaic.sparklib.scrollableMenu
com.adobe.mosaic.sparklib.scrollableMenu.skins
com.adobe.mosaic.sparklib.tabLayout
com.adobe.mosaic.sparklib.tabLayout.events
com.adobe.mosaic.sparklib.tabLayout.layouts
com.adobe.mosaic.sparklib.tabLayout.skins
com.adobe.mosaic.sparklib.text
com.adobe.mosaic.sparklib.util
com.adobe.solutions.acm.authoring.presentation
com.adobe.solutions.acm.authoring.presentation.actionbar
com.adobe.solutions.acm.authoring.presentation.common
com.adobe.solutions.acm.authoring.presentation.events
com.adobe.solutions.acm.authoring.presentation.fragment
com.adobe.solutions.acm.authoring.presentation.letter
com.adobe.solutions.acm.authoring.presentation.letter.data
com.adobe.solutions.acm.authoring.presentation.preview
com.adobe.solutions.acm.authoring.presentation.rte
com.adobe.solutions.acm.ccr.presentation
com.adobe.solutions.acm.ccr.presentation.contentcapture
com.adobe.solutions.acm.ccr.presentation.contentcapture.events
com.adobe.solutions.acm.ccr.presentation.contentcapture.preview
com.adobe.solutions.acm.ccr.presentation.datacapture
com.adobe.solutions.acm.ccr.presentation.datacapture.renderers
com.adobe.solutions.acm.ccr.presentation.pdf
com.adobe.solutions.exm
com.adobe.solutions.exm.authoring
com.adobe.solutions.exm.authoring.components.controls
com.adobe.solutions.exm.authoring.components.toolbars
com.adobe.solutions.exm.authoring.domain
com.adobe.solutions.exm.authoring.domain.expression
com.adobe.solutions.exm.authoring.domain.impl
com.adobe.solutions.exm.authoring.domain.method
com.adobe.solutions.exm.authoring.domain.variable
com.adobe.solutions.exm.authoring.enum
com.adobe.solutions.exm.authoring.events
com.adobe.solutions.exm.authoring.model
com.adobe.solutions.exm.authoring.renderer
com.adobe.solutions.exm.authoring.view
com.adobe.solutions.exm.expression
com.adobe.solutions.exm.impl
com.adobe.solutions.exm.impl.method
com.adobe.solutions.exm.method
com.adobe.solutions.exm.mock
com.adobe.solutions.exm.mock.method
com.adobe.solutions.exm.runtime
com.adobe.solutions.exm.runtime.impl
com.adobe.solutions.exm.variable
com.adobe.solutions.prm.constant
com.adobe.solutions.prm.domain
com.adobe.solutions.prm.domain.factory
com.adobe.solutions.prm.domain.impl
com.adobe.solutions.prm.domain.manager
com.adobe.solutions.prm.presentation.asset
com.adobe.solutions.prm.presentation.constant
com.adobe.solutions.prm.presentation.document
com.adobe.solutions.prm.presentation.event
com.adobe.solutions.prm.presentation.file
com.adobe.solutions.prm.presentation.project
com.adobe.solutions.prm.presentation.team
com.adobe.solutions.prm.presentation.util
com.adobe.solutions.prm.service
com.adobe.solutions.prm.services.impl
com.adobe.solutions.prm.vo
com.adobe.solutions.rca.constant
com.adobe.solutions.rca.domain
com.adobe.solutions.rca.domain.common
com.adobe.solutions.rca.domain.factory
com.adobe.solutions.rca.domain.impl
com.adobe.solutions.rca.domain.impl.manager
com.adobe.solutions.rca.domain.manager
com.adobe.solutions.rca.presentation
com.adobe.solutions.rca.presentation.comment
com.adobe.solutions.rca.presentation.constant
com.adobe.solutions.rca.presentation.event
com.adobe.solutions.rca.presentation.gantt
com.adobe.solutions.rca.presentation.gantt.ruler
com.adobe.solutions.rca.presentation.template
com.adobe.solutions.rca.presentation.template.audit
com.adobe.solutions.rca.presentation.template.definition
com.adobe.solutions.rca.presentation.template.documents
com.adobe.solutions.rca.presentation.template.stages
com.adobe.solutions.rca.presentation.util
com.adobe.solutions.rca.service
com.adobe.solutions.rca.services.impl
com.adobe.solutions.rca.vo
com.adobe.solutions.rca.vo.um
com.adobe.viewsource
fl.accessibility
fl.containers
fl.controls
fl.controls.dataGridClasses
fl.controls.listClasses
fl.controls.progressBarClasses
fl.core
fl.data
fl.display
fl.events
fl.ik
fl.lang
fl.livepreview
fl.managers
fl.motion
fl.motion.easing
fl.rsl
fl.text
fl.transitions
fl.transitions.easing
fl.video
flash.accessibility
flash.concurrent
flash.crypto
flash.data
flash.desktop
flash.display
flash.display3D
flash.display3D.textures
flash.errors
flash.events
flash.external
flash.filesystem
flash.filters
flash.geom
flash.globalization
flash.html
flash.media
flash.net
flash.net.dns
flash.net.drm
flash.notifications
flash.permissions
flash.printing
flash.profiler
flash.sampler
flash.security
flash.sensors
flash.system
flash.text
flash.text.engine
flash.text.ime
flash.ui
flash.utils
flash.xml
flashx.textLayout
flashx.textLayout.compose
flashx.textLayout.container
flashx.textLayout.conversion
flashx.textLayout.edit
flashx.textLayout.elements
flashx.textLayout.events
flashx.textLayout.factory
flashx.textLayout.formats
flashx.textLayout.operations
flashx.textLayout.utils
flashx.undo
ga.controls
ga.layouts
ga.model
ga.uiComponents
ga.util
ga.views
ga.wrappers
lc.foundation
lc.foundation.domain
lc.foundation.events
lc.foundation.ui
lc.foundation.util
lc.preloader
lc.procmgmt
lc.procmgmt.commands
lc.procmgmt.domain
lc.procmgmt.events
lc.procmgmt.formbridge
lc.procmgmt.impl
lc.procmgmt.ui.attachments
lc.procmgmt.ui.controls
lc.procmgmt.ui.controls.card
lc.procmgmt.ui.controls.renderer
lc.procmgmt.ui.help
lc.procmgmt.ui.layout
lc.procmgmt.ui.presentationmodel
lc.procmgmt.ui.process
lc.procmgmt.ui.search
lc.procmgmt.ui.startpoint
lc.procmgmt.ui.task
lc.procmgmt.ui.task.form
lc.procmgmt.ui.task.form.commands
lc.procmgmt.ui.tracking
mx.accessibility
mx.automation
mx.automation.air
mx.automation.delegates
mx.automation.delegates.advancedDataGrid
mx.automation.delegates.charts
mx.automation.delegates.containers
mx.automation.delegates.controls
mx.automation.delegates.controls.dataGridClasses
mx.automation.delegates.controls.fileSystemClasses
mx.automation.delegates.core
mx.automation.delegates.flashflexkit
mx.automation.events
mx.binding
mx.binding.utils
mx.charts
mx.charts.chartClasses
mx.charts.effects
mx.charts.effects.effectClasses
mx.charts.events
mx.charts.renderers
mx.charts.series
mx.charts.series.items
mx.charts.series.renderData
mx.charts.styles
mx.collections
mx.collections.errors
mx.containers
mx.containers.accordionClasses
mx.containers.dividedBoxClasses
mx.containers.errors
mx.containers.utilityClasses
mx.controls
mx.controls.advancedDataGridClasses
mx.controls.dataGridClasses
mx.controls.listClasses
mx.controls.menuClasses
mx.controls.olapDataGridClasses
mx.controls.scrollClasses
mx.controls.sliderClasses
mx.controls.textClasses
mx.controls.treeClasses
mx.controls.videoClasses
mx.core
mx.core.windowClasses
mx.data
mx.data.crypto
mx.data.errors
mx.data.events
mx.data.messages
mx.data.mxml
mx.data.offline.errors
mx.data.utils
mx.effects
mx.effects.easing
mx.effects.effectClasses
mx.events
mx.filters
mx.flash
mx.formatters
mx.geom
mx.graphics
mx.graphics.codec
mx.graphics.shaderClasses
mx.logging
mx.logging.errors
mx.logging.targets
mx.managers
mx.messaging
mx.messaging.channels
mx.messaging.config
mx.messaging.errors
mx.messaging.events
mx.messaging.management
mx.messaging.messages
mx.modules
mx.netmon
mx.olap
mx.olap.aggregators
mx.preloaders
mx.printing
mx.resources
mx.rpc
mx.rpc.events
mx.rpc.http
mx.rpc.http.mxml
mx.rpc.livecycle
mx.rpc.mxml
mx.rpc.remoting
mx.rpc.remoting.mxml
mx.rpc.soap
mx.rpc.soap.mxml
mx.rpc.wsdl
mx.rpc.xml
mx.skins
mx.skins.halo
mx.skins.spark
mx.skins.wireframe
mx.skins.wireframe.windowChrome
mx.states
mx.styles
mx.utils
mx.validators
org.osmf.containers
org.osmf.display
org.osmf.elements
org.osmf.events
org.osmf.layout
org.osmf.logging
org.osmf.media
org.osmf.metadata
org.osmf.net
org.osmf.net.dvr
org.osmf.net.httpstreaming
org.osmf.net.metrics
org.osmf.net.qos
org.osmf.net.rtmpstreaming
org.osmf.net.rules
org.osmf.traits
org.osmf.utils
spark.accessibility
spark.automation.delegates
spark.automation.delegates.components
spark.automation.delegates.components.gridClasses
spark.automation.delegates.components.mediaClasses
spark.automation.delegates.components.supportClasses
spark.automation.delegates.skins.spark
spark.automation.events
spark.collections
spark.components
spark.components.calendarClasses
spark.components.gridClasses
spark.components.mediaClasses
spark.components.supportClasses
spark.components.windowClasses
spark.core
spark.effects
spark.effects.animation
spark.effects.easing
spark.effects.interpolation
spark.effects.supportClasses
spark.events
spark.filters
spark.formatters
spark.formatters.supportClasses
spark.globalization
spark.globalization.supportClasses
spark.layouts
spark.layouts.supportClasses
spark.managers
spark.modules
spark.preloaders
spark.primitives
spark.primitives.supportClasses
spark.skins
spark.skins.mobile
spark.skins.mobile.supportClasses
spark.skins.spark
spark.skins.spark.mediaClasses.fullScreen
spark.skins.spark.mediaClasses.normal
spark.skins.spark.windowChrome
spark.skins.wireframe
spark.skins.wireframe.mediaClasses
spark.skins.wireframe.mediaClasses.fullScreen
spark.transitions
spark.utils
spark.validators
spark.validators.supportClasses
xd.core.axm.enterprise.view.components
xd.core.axm.enterprise.view.skins
xd.core.axm.view.components
xd.core.axm.view.components.support

언어 요소

전역 상수
전역 함수
연산자
명령문, 키워드 및 지시문
특수 유형 연산자

부록

새로운 내용
컴파일러 오류
컴파일러 경고
런타임 오류
ActionScript 3으로 마이그레이션
지원되는 문자 세트
MXML 전용 태그
모션 XML 요소
Timed Text 태그
사용되지 않는 요소의 목록
액세스 가능성 구현 상수
ActionScript 예제 사용 방법
법적 고지 사항

패키지 flash.events

인터페이스
IEventDispatcher
 
클래스
AccelerometerEvent
ActivityEvent
AsyncErrorEvent
AudioOutputChangeEvent
AVDictionaryDataEvent
AVHTTPStatusEvent
AVPauseAtPeriodEndEvent
BrowserInvokeEvent    
ContextMenuEvent
DataEvent
DatagramSocketDataEvent    
DeviceRotationEvent    
DNSResolverEvent    
DRMAuthenticateEvent    
DRMAuthenticationCompleteEvent
DRMAuthenticationErrorEvent
DRMDeviceGroupErrorEvent
DRMDeviceGroupEvent
DRMErrorEvent
DRMLicenseRequestEvent
DRMMetadataEvent
DRMReturnVoucherCompleteEvent
DRMReturnVoucherErrorEvent
DRMStatusEvent
ErrorEvent
Event
EventDispatcher
EventPhase
FileListEvent    
FocusEvent
FullScreenEvent
GameInputEvent    
GeolocationEvent
GestureEvent
GesturePhase
HTMLUncaughtScriptExceptionEvent    
HTTPStatusEvent
IMEEvent
InvokeEvent    
IOErrorEvent
KeyboardEvent
LocationChangeEvent    
MediaEvent    
MouseEvent
NativeDragEvent    
NativeProcessExitEvent    
NativeWindowBoundsEvent    
NativeWindowDisplayStateEvent    
NetDataEvent
NetMonitorEvent
NetStatusEvent
OutputProgressEvent    
PermissionEvent
PressAndTapGestureEvent
ProgressEvent
RemoteNotificationEvent    
SampleDataEvent
ScreenMouseEvent    
SecurityErrorEvent
ServerSocketConnectEvent    
ShaderEvent
SoftKeyboardEvent
SoftKeyboardTrigger
SQLErrorEvent    
SQLEvent    
SQLUpdateEvent    
StageOrientationEvent    
StageVideoAvailabilityEvent
StageVideoEvent
StatusEvent
StorageVolumeChangeEvent    
SyncEvent
TextEvent
ThrottleEvent
ThrottleType
TimerEvent
TouchEvent
TouchEventIntent    
TransformGestureEvent
UncaughtErrorEvent
UncaughtErrorEvents
VideoEvent
VideoTextureEvent
VsyncStateChangeAvailabilityEvent    
패키지flash.events
클래스public class MouseEvent
상속MouseEvent Inheritance Event Inheritance Object
하위 클래스 AutomationDragEvent, ChartEvent, ChartItemEvent, DragEvent, FlexMouseEvent, GridEvent, LegendMouseEvent, ListEvent, MosaicDragEvent, NativeDragEvent, ScreenMouseEvent

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

마우스 이벤트가 발생할 때마다 이벤트 흐름에 MouseEvent 객체가 전달됩니다. 마우스 이벤트는 보통 마우스나 트랙볼 같이 포인터를 사용하는 사용자 입력 장치에 의해 생성됩니다.

중첩된 노드가 있을 경우 마우스 이벤트는 표시 목록에 있는 노드 중 가장 깊이 중첩된 노드를 대상으로 하며, 이 노드를 대상 노드라 합니다. 대상 노드의 조상 노드가 마우스 이벤트에 대한 알림을 받도록 하려면 조상 노드에서 EventDispatcher.addEventListener()를 사용하여, 감지할 특정 마우스 이벤트를 type 매개 변수로 설정합니다.

예제 보기

기타 예제



공용 속성
 속성정의 주체
  altKey : Boolean
Alt 키가 활성 상태(true)인지 비활성 상태(false)인지를 나타냅니다.
MouseEvent
 Inheritedbubbles : Boolean
[읽기 전용] 이벤트가 버블링 이벤트인지 여부를 나타냅니다.
Event
  buttonDown : Boolean
마우스 기본 버튼이 눌려 있는지(true) 눌려 있지 않은지(false)를 나타냅니다.
MouseEvent
 Inheritedcancelable : Boolean
[읽기 전용] 해당 이벤트와 연관된 비헤이비어를 차단할 수 있는지 여부를 나타냅니다.
Event
  clickCount : int
[읽기 전용] 마우스 누름 이벤트가 다중 클릭 시퀀스의 일부인지 여부를 나타냅니다.
MouseEvent
  commandKey : Boolean
Command 키가 활성화되었는지 여부를 나타냅니다(Mac만 해당). commandKey 속성 값은 Mac의 ctrlKey 속성과 동일한 값을 가집니다.
MouseEvent
 Inheritedconstructor : Object
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다.
Object
  controlKey : Boolean
Mac에서 Control 키가 활성화되었는지 여부 및 Windows 또는 Linux에서 Ctrl 키가 활성화되었는지 여부를 나타냅니다.
MouseEvent
  ctrlKey : Boolean
Windows 또는 Linux에서 Ctrl 키가 활성 상태(true)인지 비활성 상태(false)인지를 나타냅니다.
MouseEvent
 InheritedcurrentTarget : Object
[읽기 전용] 이벤트 리스너를 통해 Event 객체를 처리하고 있는 객체입니다.
Event
  delta : int
마우스 휠을 한 단계 돌릴 때마다 몇 행씩 스크롤되는지를 나타냅니다.
MouseEvent
 InheritedeventPhase : uint
[읽기 전용] 이벤트 흐름에서 현재 단계입니다.
Event
  isRelatedObjectInaccessible : Boolean
true이면 relatedObject 속성이 보안 샌드박스와 관련된 이유로 인해 null로 설정됩니다.
MouseEvent
  localX : Number
마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수평 좌표입니다.
MouseEvent
  localY : Number
마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수직 좌표입니다.
MouseEvent
  movementX : Number
마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 X 방향의 마우스 위치 변경 사항입니다.
MouseEvent
  movementY : Number
마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 Y 방향의 마우스 위치 변경 사항입니다.
MouseEvent
  relatedObject : InteractiveObject
이벤트와 관련된 표시 목록 객체에 대한 참조입니다.
MouseEvent
  shiftKey : Boolean
Shift 키가 활성 상태(true)인지 비활성 상태(false)인지를 나타냅니다.
MouseEvent
  stageX : Number
[읽기 전용] 전역 스테이지 좌표에서 이벤트가 발생한 지점의 수평 좌표입니다.
MouseEvent
  stageY : Number
[읽기 전용] 전역 스테이지 좌표에서 이벤트가 발생한 지점의 수직 좌표입니다.
MouseEvent
 Inheritedtarget : Object
[읽기 전용] 이벤트 대상입니다.
Event
 Inheritedtype : String
[읽기 전용] 이벤트 유형입니다.
Event
공용 메서드
 메서드정의 주체
  
MouseEvent(type:String, bubbles:Boolean = true, cancelable:Boolean = false, localX:Number = NaN, localY:Number = NaN, relatedObject:InteractiveObject = null, ctrlKey:Boolean = false, altKey:Boolean = false, shiftKey:Boolean = false, buttonDown:Boolean = false, delta:int = 0, commandKey:Boolean = false, controlKey:Boolean = false, clickCount:int = 0)
마우스 이벤트에 대한 정보가 포함된 Event 객체를 만듭니다.
MouseEvent
  
[재정의] MouseEvent 객체의 복사본을 하나 만들고 각 속성의 값을 원본과 동일하게 설정합니다.
MouseEvent
 Inherited
formatToString(className:String, ... arguments):String
사용자 정의 ActionScript 3.0 Event 클래스에서 toString() 메서드를 구현하기 위한 유틸리티 함수입니다.
Event
 Inherited
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다.
Object
 Inherited
이벤트에서 preventDefault() 메서드가 호출되었는지 여부를 확인합니다.
Event
 Inherited
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다.
Object
 Inherited
이벤트의 기본 비헤이비어를 취소할 수 있는 경우, 그 비헤이비어를 취소합니다.
Event
 Inherited
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다.
Object
 Inherited
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다.
Object
 Inherited
이벤트 흐름에서 현재 노드 및 그 후속 노드에 있는 모든 이벤트 리스너가 처리되지 않도록 합니다.
Event
 Inherited
이벤트 흐름에서 현재 노드의 후속 노드에 있는 모든 이벤트 리스너가 처리되지 않도록 합니다.
Event
 Inherited
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다.
Object
  
[재정의] MouseEvent 객체의 속성이 모두 포함된 문자열을 반환합니다.
MouseEvent
  
표시 목록이 수정된 경우, 이 이벤트의 처리가 완료된 뒤 렌더링하도록 Flash Player 또는 Adobe AIR에 지시합니다.
MouseEvent
 Inherited
지정된 객체의 프리미티브 값을 반환합니다.
Object
공용 상수
 상수정의 주체
  CLICK : String = "click"
[정적] click 이벤트 객체의 type 속성 값을 정의합니다.
MouseEvent
  CONTEXT_MENU : String = "contextMenu"
[정적] MouseEvent.CONTEXT_MENU 상수는 contextMenu 이벤트 객체의 type 속성 값을 정의합니다.
MouseEvent
  DOUBLE_CLICK : String = "doubleClick"
[정적] doubleClick 이벤트 객체의 type 속성 값을 정의합니다.
MouseEvent
  MIDDLE_CLICK : String = "middleClick"
[정적] middleClick 이벤트 객체의 type 속성 값을 정의합니다.
MouseEvent
  MIDDLE_MOUSE_DOWN : String = "middleMouseDown"
[정적] middleMouseDown 이벤트 객체의 type 속성 값을 정의합니다.
MouseEvent
  MIDDLE_MOUSE_UP : String = "middleMouseUp"
[정적] middleMouseUp 이벤트 객체의 type 속성 값을 정의합니다.
MouseEvent
  MOUSE_DOWN : String = "mouseDown"
[정적] mouseDown 이벤트 객체의 type 속성 값을 정의합니다.
MouseEvent
  MOUSE_MOVE : String = "mouseMove"
[정적] mouseMove 이벤트 객체의 type 속성 값을 정의합니다.
MouseEvent
  MOUSE_OUT : String = "mouseOut"
[정적] mouseOut 이벤트 객체의 type 속성 값을 정의합니다.
MouseEvent
  MOUSE_OVER : String = "mouseOver"
[정적] mouseOver 이벤트 객체의 type 속성 값을 정의합니다.
MouseEvent
  MOUSE_UP : String = "mouseUp"
[정적] mouseUp 이벤트 객체의 type 속성 값을 정의합니다.
MouseEvent
  MOUSE_WHEEL : String = "mouseWheel"
[정적] mouseWheel 이벤트 객체의 type 속성 값을 정의합니다.
MouseEvent
  RELEASE_OUTSIDE : String = "releaseOutside"
[정적] releaseOutside 이벤트 객체의 type 속성 값을 정의합니다.
MouseEvent
  RIGHT_CLICK : String = "rightClick"
[정적] rightClick 이벤트 객체의 type 속성 값을 정의합니다.
MouseEvent
  RIGHT_MOUSE_DOWN : String = "rightMouseDown"
[정적] rightMouseDown 이벤트 객체의 type 속성 값을 정의합니다.
MouseEvent
  RIGHT_MOUSE_UP : String = "rightMouseUp"
[정적] rightMouseUp 이벤트 객체의 type 속성 값을 정의합니다.
MouseEvent
  ROLL_OUT : String = "rollOut"
[정적] rollOut 이벤트 객체의 type 속성 값을 정의합니다.
MouseEvent
  ROLL_OVER : String = "rollOver"
[정적] rollOver 이벤트 객체의 type 속성 값을 정의합니다.
MouseEvent
속성 세부 정보

altKey

속성
altKey:Boolean

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

Alt 키가 활성(true)인지 비활성(false)인지를 나타냅니다. Windows만 지원됩니다. 기타 운영 체제에서 이 속성은 항상 false로 설정됩니다.



구현
    public function get altKey():Boolean
    public function set altKey(value:Boolean):void

buttonDown

속성 
buttonDown:Boolean

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

마우스 기본 버튼이 눌려져 있는지(true) 눌려 있지 않은지(false)를 나타냅니다.



구현
    public function get buttonDown():Boolean
    public function set buttonDown(value:Boolean):void

clickCount

속성 
clickCount:int  [읽기 전용]

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Lite 4

마우스 누름 이벤트가 다중 클릭 시퀀스의 일부인지 여부를 나타냅니다. 이 매개 변수는 MouseEvent.mouseDown, MouseEvent.mouseUp, MouseEvent.middleMouseDown, MouseEvent.middleMouseUp, MouseEvent.rightMouseDownMouseEvent.rightMouseUp 이외의 모든 마우스 이벤트에 대해 0이 됩니다. clickCount 매개 변수를 사용하여 한 번 클릭, 두 번 클릭 또는 다중 클릭 시퀀스를 수신할 수 있습니다. 예를 들어 첫 번째 MouseEvent.mouseDownMouseEvent.mouseUpclickCount는 1이고, 두 번 클릭 시퀀스의 두 번째 MouseEvent.mouseDownMouseEvent.mouseUpclickCount는 2입니다. 마우스가 충분히 움직이거나 다중 클릭 시퀀스가 방해를 받는 경우, 다음 MouseEvent.mouseDown의 clickCount는 1이 됩니다. 예상대로 doubleClick 이벤트가 계속 발생합니다.



구현
    public function get clickCount():int

commandKey

속성 
commandKey:Boolean

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Lite 4

Command 키가 활성화되었는지 여부를 나타냅니다(Mac만 해당).

commandKey 속성 값은 Mac의 ctrlKey 속성과 동일한 값을 가집니다. Windows 또는 Linux에서는 항상 false입니다.



구현
    public function get commandKey():Boolean
    public function set commandKey(value:Boolean):void

controlKey

속성 
controlKey:Boolean

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Lite 4

Mac에서 Control 키가 활성화되었는지 여부 및 Windows 또는 Linux에서 Ctrl 키가 활성화되었는지 여부를 나타냅니다.



구현
    public function get controlKey():Boolean
    public function set controlKey(value:Boolean):void

ctrlKey

속성 
ctrlKey:Boolean

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

Windows 또는 Linux에서 Ctrl 키가 활성 상태(true)인지 비활성 상태(false)인지를 나타냅니다. Macintosh에서 Control 키 또는 Command 키가 활성화되었는지 여부를 나타냅니다.



구현
    public function get ctrlKey():Boolean
    public function set ctrlKey(value:Boolean):void

delta

속성 
delta:int

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

마우스 휠을 한 단계 돌릴 때마다 몇 행씩 스크롤되는지를 나타냅니다. 델타 값이 양수이면 위로 스크롤되는 것이고, 음수이면 아래로 스크롤되는 것입니다. 값은 보통 1 - 3 사이이지만 빨리 돌리면 값이 더 커집니다. 이 설정은 장치 및 운영 체제에 따라 다르며 일반적으로 사용자가 구성할 수 있습니다. 이 속성은 MouseEvent.mouseWheel 이벤트에만 적용됩니다.



구현
    public function get delta():int
    public function set delta(value:int):void

isRelatedObjectInaccessible

속성 
isRelatedObjectInaccessible:Boolean

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 10, Flash Lite 4

true이면 relatedObject 속성이 보안 샌드박스와 관련된 이유로 인해 null로 설정됩니다. relatedObject 공칭 값이 다른 샌드박스의 DisplayObject에 대한 참조이면 이 보안 샌드박스 경계를 넘어 양쪽 방향에서 권한이 있지 않는 한 relatedObjectnull로 지정됩니다. 권한은 SWF 파일에서 Security.allowDomain()을 호출하거나, 이미지 파일 서버에서 정책 파일을 제공하거나, 이미지를 로드할 때 LoaderContext.checkPolicyFile 속성을 지정하여 설정됩니다.



구현
    public function get isRelatedObjectInaccessible():Boolean
    public function set isRelatedObjectInaccessible(value:Boolean):void

관련 API 요소

localX

속성 
localX:Number

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수평 좌표입니다. Stage.mouseLockfalse로 설정하여 마우스 잠금을 비활성화합니다.

마우스 잠금이 활성화된 경우 localXlocalY는 0입니다. movementXmovementY를 사용하여 마우스 잠금이 활성화된 경우 마우스 위치의 변경 사항을 확인합니다.



구현
    public function get localX():Number
    public function set localX(value:Number):void

관련 API 요소


예제
예제 사용 방법
이 속성을 사용하는 방법은 MOUSE_MOVE 상수 예제를 참조하십시오.

localY

속성 
localY:Number

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수직 좌표입니다. Stage.mouseLockfalse로 설정하여 마우스 잠금을 비활성화합니다.

마우스 잠금이 활성화된 경우 localXlocalY는 0입니다. movementXmovementY를 사용하여 마우스 잠금이 활성화된 경우 마우스 위치의 변경 사항을 확인합니다.



구현
    public function get localY():Number
    public function set localY(value:Number):void

관련 API 요소


예제
예제 사용 방법
이 속성을 사용하는 방법은 MOUSE_MOVE 상수 예제를 참조하십시오.

movementX

속성 
movementX:Number

언어 버전: ActionScript 3.0
런타임 버전: Flash Player 11.2, AIR 3.2

마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 X 방향의 마우스 위치 변경 사항입니다. Stage.mouseLocktrue로 설정하여 마우스 잠금을 활성화합니다.

마우스 잠금이 활성화된 경우 다음과 같습니다.

  • localXlocalY는 0을 포함합니다.
  • movementXmovementY는 델타 값을 포함합니다.
  • movementXmovementY는 스테이지 변형에 기초하여 변형되지 않습니다. 따라서 항상 화면 좌표에 남아 있습니다.

Stage.mouseLockfalse인 경우 movementXmovementY는 0입니다.



구현
    public function get movementX():Number
    public function set movementX(value:Number):void

관련 API 요소


예제
예제 사용 방법
이 속성을 사용하는 방법은 MOUSE_MOVE 상수 예제를 참조하십시오.

movementY

속성 
movementY:Number

언어 버전: ActionScript 3.0
런타임 버전: Flash Player 11.2, AIR 3.2

마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 Y 방향의 마우스 위치 변경 사항입니다. Stage.mouseLocktrue로 설정하여 마우스 잠금을 활성화합니다.

마우스 잠금이 활성화된 경우 다음과 같습니다.

  • localXlocalY는 0을 포함합니다.
  • movementXmovementY는 델타 값을 포함합니다.
  • movementXmovementY는 스테이지 변형에 기초하여 변형되지 않습니다. 따라서 항상 화면 좌표에 남아 있습니다.

Stage.mouseLockfalse인 경우 movementXmovementY는 0입니다.



구현
    public function get movementY():Number
    public function set movementY(value:Number):void

관련 API 요소


예제
예제 사용 방법
이 속성을 사용하는 방법은 MOUSE_MOVE 상수 예제를 참조하십시오.

relatedObject

속성 
relatedObject:InteractiveObject

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

이벤트와 관련된 표시 목록 객체에 대한 참조입니다. 예를 들어 mouseOut 이벤트가 발생하면 relatedObject는 포인팅 장치가 현재 가리키고 있는 표시 목록 객체를 나타냅니다. 이 속성은 mouseOut, mouseOver, rollOutrollOver 이벤트에 적용됩니다.

이 속성 값은 관련 객체가 없거나 있는 두 경우 모두에서 null일 수 있지만, 액세스할 수 없는 보안 샌드박스에 있습니다. isRelatedObjectInaccessible() 속성을 사용하여 이러한 이유 중 어느 것이 해당하는지 확인할 수 있습니다.



구현
    public function get relatedObject():InteractiveObject
    public function set relatedObject(value:InteractiveObject):void

관련 API 요소

shiftKey

속성 
shiftKey:Boolean

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

Shift 키가 활성(true)인지 비활성(false)인지를 나타냅니다.



구현
    public function get shiftKey():Boolean
    public function set shiftKey(value:Boolean):void

stageX

속성 
stageX:Number  [읽기 전용]

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

전역 스테이지 좌표에서 이벤트가 발생한 지점의 수평 좌표입니다. localX 속성이 설정되면 이 속성이 계산됩니다.



구현
    public function get stageX():Number

예제
예제 사용 방법
이 속성을 사용하는 방법은 MOUSE_MOVE 상수 예제를 참조하십시오.

stageY

속성 
stageY:Number  [읽기 전용]

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

전역 스테이지 좌표에서 이벤트가 발생한 지점의 수직 좌표입니다. localY 속성이 설정되면 이 속성이 계산됩니다.



구현
    public function get stageY():Number

예제
예제 사용 방법
이 속성을 사용하는 방법은 MOUSE_MOVE 상수 예제를 참조하십시오.
생성자 세부 정보

MouseEvent

()생성자
public function MouseEvent(type:String, bubbles:Boolean = true, cancelable:Boolean = false, localX:Number = NaN, localY:Number = NaN, relatedObject:InteractiveObject = null, ctrlKey:Boolean = false, altKey:Boolean = false, shiftKey:Boolean = false, buttonDown:Boolean = false, delta:int = 0, commandKey:Boolean = false, controlKey:Boolean = false, clickCount:int = 0)

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

마우스 이벤트에 대한 정보가 포함된 Event 객체를 만듭니다. Event 객체는 매개 변수로 이벤트 리스너에 전달됩니다.

매개 변수
type:String — 이벤트 유형입니다. 사용할 수 있는 값에는 MouseEvent.CLICK, MouseEvent.DOUBLE_CLICK, MouseEvent.MOUSE_DOWN, MouseEvent.MOUSE_MOVE, MouseEvent.MOUSE_OUT, MouseEvent.MOUSE_OVER, MouseEvent.MOUSE_UP, MouseEvent.MIDDLE_CLICK, MouseEvent.MIDDLE_MOUSE_DOWN, MouseEvent.MIDDLE_MOUSE_UP, MouseEvent.RIGHT_CLICK, MouseEvent.RIGHT_MOUSE_DOWN, MouseEvent.RIGHT_MOUSE_UP, MouseEvent.MOUSE_WHEEL, MouseEvent.ROLL_OUT, MouseEvent.ROLL_OVER가 있습니다.
 
bubbles:Boolean (default = true) — Event 객체가 이벤트 흐름의 버블링 단계에 참여하는지 여부를 결정합니다.
 
cancelable:Boolean (default = false) — Event 객체를 취소할 수 있는지 여부를 결정합니다.
 
localX:Number (default = NaN) — 포함 Sprite와 관련된 이벤트가 발생한 지점의 수평 좌표입니다.
 
localY:Number (default = NaN) — 포함 Sprite와 관련된 이벤트가 발생한 지점의 수직 좌표입니다.
 
relatedObject:InteractiveObject (default = null) — 이벤트의 영향을 받는 보완적 InteractiveObject 인스턴스입니다. 예를 들어 mouseOut 이벤트가 발생하면 relatedObject는 포인팅 장치가 현재 가리키고 있는 표시 목록 객체를 나타냅니다.
 
ctrlKey:Boolean (default = false) — Windows 또는 Linux에서 Ctrl 키가 활성화되었는지 여부를 나타냅니다. Mac에서 Ctrl 키 또는 Command 키가 활성화되었는지 여부를 나타냅니다.
 
altKey:Boolean (default = false) — Alt 키의 활성화 여부를 나타냅니다(Windows 또는 Linux용).
 
shiftKey:Boolean (default = false) — Shift 키가 활성화되었는지 여부를 나타냅니다.
 
buttonDown:Boolean (default = false) — 마우스 기본 버튼이 눌려져 있는지를 나타냅니다.
 
delta:int (default = 0) — 마우스 휠을 한 단계 돌릴 때마다 몇 행씩 스크롤되는지를 나타냅니다. 델타 값이 양수이면 위로 스크롤되는 것이고, 음수이면 아래로 스크롤되는 것입니다. 값은 보통 1 - 3 사이이지만 빨리 돌리면 값이 더 커집니다. 이 매개 변수는 MouseEvent.mouseWheel 이벤트에만 사용됩니다.
 
commandKey:Boolean (default = false) — (AIR만 해당) Command 키가 활성화되었는지 여부를 나타냅니다(Mac만 해당). 이 매개 변수는 MouseEvent.click, MouseEvent.mouseDown, MouseEvent.mouseUp, MouseEvent.middleClick, MouseEvent.middleMouseDown, MouseEvent.middleMouseUp, MouseEvent.rightClick, MouseEvent.rightMouseDown, MouseEvent.rightMouseUpMouseEvent.doubleClick 이벤트에만 사용됩니다. 이 매개 변수는 Adobe AIR에만 사용할 수 있으므로 Flash Player 내용에는 설정하지 마십시오.
 
controlKey:Boolean (default = false) — (AIR만 해당) Control 또는 Ctrl 키가 활성화되었는지 여부를 나타냅니다. 이 매개 변수는 MouseEvent.click, MouseEvent.mouseDown, MouseEvent.mouseUp, MouseEvent.middleClick, MouseEvent.middleMouseDown, MouseEvent.middleMouseUp, MouseEvent.rightClick, MouseEvent.rightMouseDown, MouseEvent.rightMouseUpMouseEvent.doubleClick 이벤트에만 사용됩니다. 이 매개 변수는 Adobe AIR에만 사용할 수 있으므로 Flash Player 내용에는 설정하지 마십시오.
 
clickCount:int (default = 0) — (AIR만 해당) 마우스 이벤트가 다중 클릭 시퀀스의 일부인지 여부를 나타냅니다. 이 매개 변수는 MouseEvent.mouseDown, MouseEvent.mouseUp, MouseEvent.middleMouseDown, MouseEvent.middleMouseUp, MouseEvent.rightMouseDownMouseEvent.rightMouseUp 이외의 모든 마우스 이벤트에 대해 0이 됩니다. clickCount 매개 변수를 사용하여 한 번 클릭, 두 번 클릭 또는 다중 클릭 시퀀스를 수신할 수 있습니다. 이 매개 변수는 Adobe AIR에만 사용할 수 있으므로 Flash Player 내용에는 설정하지 마십시오.
메서드 세부 정보

clone

()메서드
override public function clone():Event

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

MouseEvent 객체의 복사본을 하나 만들고 각 속성의 값을 원본과 동일하게 설정합니다.

반환값
Event — 원본과 동일한 속성 값을 갖는 새로운 MouseEvent 객체입니다.

toString

()메서드 
override public function toString():String

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

MouseEvent 객체의 속성이 모두 포함된 문자열을 반환합니다. 문자열의 형식은 다음과 같습니다.

[MouseEvent type= value bubbles= value cancelable= value ... delta= value ]

반환값
String — MouseEvent 객체의 속성이 모두 포함된 문자열입니다.

updateAfterEvent

()메서드 
public function updateAfterEvent():void

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9

표시 목록이 수정된 경우, 이 이벤트의 처리가 완료된 뒤 렌더링하도록 Flash Player 또는 Adobe AIR에 지시합니다.

상수 세부 정보

CLICK

상수
public static const CLICK:String = "click"

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

click 이벤트 객체의 type 속성 값을 정의합니다.

이 이벤트에는 다음과 같은 속성이 있습니다.

속성
altKeyAlt 키가 활성 상태이면 true입니다(Windows).
bubblestrue
buttonDown클릭 이벤트의 경우 이 값이 항상 false입니다.
cancelablefalse. 취소할 기본 비헤이비어가 없습니다.
commandKeyMac에서 true이면 Command 키가 활성 상태이고, false이면 비활성 상태입니다. Windows에서는 항상 false입니다.
controlKeyCtrl 또는 Control 키가 활성 상태이면 true이고 비활성 상태이면 false입니다.
ctrlKeyWindows 또는 Linux에서 Ctrl 키가 활성 상태이면 true입니다. Mac에서 Ctrl 키 또는 Command 키가 활성 상태이면 true입니다. 그렇지 않으면 false입니다.
currentTarget이벤트 리스너를 통해 Event 객체를 처리하고 있는 객체입니다.
localX마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수평 좌표입니다.
localY마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수직 좌표입니다.
movementX마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수평 좌표에 대한 변경 사항입니다.
movementY마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수직 좌표에 대한 변경 사항입니다.
shiftKeytrue이면 Shift 키가 활성 상태이고, false이면 비활성 상태입니다.
stageX전역 스테이지 좌표에서 이벤트가 발생한 지점의 수평 좌표입니다.
stageY전역 스테이지 좌표에서 이벤트가 발생한 지점의 수직 좌표입니다.
target포인팅 장치 아래에 있는 InteractiveObject 인스턴스입니다. target은 표시 목록에서 이벤트 리스너를 등록한 객체가 아닐 수도 있습니다. 표시 목록에서 현재 이벤트를 처리 중인 객체에 액세스하려면 currentTarget 속성을 사용합니다.

관련 API 요소

CONTEXT_MENU

상수 
public static const CONTEXT_MENU:String = "contextMenu"

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Lite 4

MouseEvent.CONTEXT_MENU 상수는 contextMenu 이벤트 객체의 type 속성 값을 정의합니다.

이 이벤트에는 다음과 같은 속성이 있습니다.

속성
altKeyAlt 키가 활성 상태이면 true입니다(Windows).
bubblestrue
buttonDown마우스 오른쪽 버튼이 눌러져 있으면 true이고, 그렇지 않으면 false입니다.
cancelablefalse: 기본 비헤이비어를 취소할 수 없습니다.
commandKeyMac에서 true이면 Command 키가 활성 상태이고, false이면 비활성 상태입니다. Windows에서는 항상 false입니다.
controlKeyCtrl 또는 Control 키가 활성 상태이면 true이고 비활성 상태이면 false입니다.
ctrlKeyWindows 또는 Linux에서 Ctrl 키가 활성 상태이면 true입니다. Mac에서 Ctrl 키 또는 Command 키가 활성 상태이면 true입니다. 그렇지 않으면 false입니다.
currentTarget이벤트 리스너를 통해 Event 객체를 처리하고 있는 객체입니다.
localX마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수평 좌표입니다.
localY마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수직 좌표입니다.
movementX마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수평 좌표에 대한 변경 사항입니다.
movementY마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수직 좌표에 대한 변경 사항입니다.
shiftKeytrue이면 Shift 키가 활성 상태이고, false이면 비활성 상태입니다.
clickCount이벤트가 다중 클릭 시퀀스의 일부인지 여부를 나타내기 위한 마우스 클릭 수입니다.
stageX전역 스테이지 좌표에서 이벤트가 발생한 지점의 수평 좌표입니다.
stageY전역 스테이지 좌표에서 이벤트가 발생한 지점의 수직 좌표입니다.
target포인팅 장치 아래에 있는 InteractiveObject 인스턴스입니다. target은 표시 목록에서 이벤트 리스너를 등록한 객체가 아닐 수도 있습니다. 표시 목록에서 현재 이벤트를 처리 중인 객체에 액세스하려면 currentTarget 속성을 사용합니다.

DOUBLE_CLICK

상수 
public static const DOUBLE_CLICK:String = "doubleClick"

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

doubleClick 이벤트 객체의 type 속성 값을 정의합니다. doubleClick 이벤트를 생성하려면 객체에 대한 doubleClickEnabled 속성이 true여야 합니다.

이 이벤트에는 다음과 같은 속성이 있습니다.

속성
altKeyAlt 키가 활성 상태이면 true입니다(Windows).
bubblestrue
buttonDown두 번 클릭 이벤트의 경우 이 값이 항상 false입니다.
cancelablefalse. 취소할 기본 비헤이비어가 없습니다.
commandKeyMac에서 true이면 Command 키가 활성 상태이고, false이면 비활성 상태입니다. Windows에서는 항상 false입니다.
controlKeyCtrl 또는 Control 키가 활성 상태이면 true이고 비활성 상태이면 false입니다.
ctrlKeyWindows 또는 Linux에서 Ctrl 키가 활성 상태이면 true입니다. Mac에서 Ctrl 키 또는 Command 키가 활성 상태이면 true입니다. 그렇지 않으면 false입니다.
currentTarget이벤트 리스너를 통해 Event 객체를 처리하고 있는 객체입니다.
localX마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수평 좌표입니다.
localY마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수직 좌표입니다.
movementX마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수평 좌표에 대한 변경 사항입니다.
movementY마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수직 좌표에 대한 변경 사항입니다.
shiftKeytrue이면 Shift 키가 활성 상태이고, false이면 비활성 상태입니다.
stageX전역 스테이지 좌표에서 이벤트가 발생한 지점의 수평 좌표입니다.
stageY전역 스테이지 좌표에서 이벤트가 발생한 지점의 수직 좌표입니다.
target포인팅 장치 아래에 있는 InteractiveObject 인스턴스입니다. target은 표시 목록에서 이벤트 리스너를 등록한 객체가 아닐 수도 있습니다. 표시 목록에서 현재 이벤트를 처리 중인 객체에 액세스하려면 currentTarget 속성을 사용합니다.

관련 API 요소

MIDDLE_CLICK

상수 
public static const MIDDLE_CLICK:String = "middleClick"

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 11.2, Flash Lite 4

middleClick 이벤트 객체의 type 속성 값을 정의합니다.

이 이벤트에는 다음과 같은 속성이 있습니다.

속성
altKeyAlt 키가 활성 상태이면 true입니다(Windows).
bubblestrue
buttonDown가운데 클릭 이벤트의 경우 이 속성이 항상 false입니다.
cancelablefalse. 취소할 기본 비헤이비어가 없습니다.
commandKeyMac에서 true이면 Command 키가 활성 상태이고, false이면 비활성 상태입니다. Windows에서는 항상 false입니다.
controlKeyCtrl 또는 Control 키가 활성 상태이면 true이고 비활성 상태이면 false입니다.
ctrlKeyWindows 또는 Linux에서 Ctrl 키가 활성 상태이면 true입니다. Mac에서 Ctrl 키 또는 Command 키가 활성 상태이면 true입니다. 그렇지 않으면 false입니다.
currentTarget이벤트 리스너를 통해 Event 객체를 처리하고 있는 객체입니다.
localX마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수평 좌표입니다.
localY마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수직 좌표입니다.
movementX마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수평 좌표에 대한 변경 사항입니다.
movementY마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수직 좌표에 대한 변경 사항입니다.
shiftKeytrue이면 Shift 키가 활성 상태이고, false이면 비활성 상태입니다.
stageX전역 스테이지 좌표에서 이벤트가 발생한 지점의 수평 좌표입니다.
stageY전역 스테이지 좌표에서 이벤트가 발생한 지점의 수직 좌표입니다.
target포인팅 장치 아래에 있는 InteractiveObject 인스턴스입니다. target은 표시 목록에서 이벤트 리스너를 등록한 객체가 아닐 수도 있습니다. 표시 목록에서 현재 이벤트를 처리 중인 객체에 액세스하려면 currentTarget 속성을 사용합니다.

관련 API 요소

MIDDLE_MOUSE_DOWN

상수 
public static const MIDDLE_MOUSE_DOWN:String = "middleMouseDown"

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 11.2, Flash Lite 4

middleMouseDown 이벤트 객체의 type 속성 값을 정의합니다.

이 이벤트에는 다음과 같은 속성이 있습니다.

속성
altKeyAlt 키가 활성 상태이면 true입니다(Windows).
bubblestrue
buttonDown마우스 중간 버튼이 눌러져 있으면 true이고, 그렇지 않으면 false입니다.
cancelablefalse: 기본 비헤이비어를 취소할 수 없습니다.
commandKeyMac에서 true이면 Command 키가 활성 상태이고, false이면 비활성 상태입니다. Windows에서는 항상 false입니다.
controlKeyCtrl 또는 Control 키가 활성 상태이면 true이고 비활성 상태이면 false입니다.
ctrlKeyWindows 또는 Linux에서 Ctrl 키가 활성 상태이면 true입니다. Mac에서 Ctrl 키 또는 Command 키가 활성 상태이면 true입니다. 그렇지 않으면 false입니다.
currentTarget이벤트 리스너를 통해 Event 객체를 처리하고 있는 객체입니다.
localX마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수평 좌표입니다.
localY마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수직 좌표입니다.
movementX마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수평 좌표에 대한 변경 사항입니다.
movementY마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수직 좌표에 대한 변경 사항입니다.
shiftKeytrue이면 Shift 키가 활성 상태이고, false이면 비활성 상태입니다.
clickCount이벤트가 다중 클릭 시퀀스의 일부인지 여부를 나타내기 위한 마우스 클릭 수입니다.
stageX전역 스테이지 좌표에서 이벤트가 발생한 지점의 수평 좌표입니다.
stageY전역 스테이지 좌표에서 이벤트가 발생한 지점의 수직 좌표입니다.
target포인팅 장치 아래에 있는 InteractiveObject 인스턴스입니다. target은 표시 목록에서 이벤트 리스너를 등록한 객체가 아닐 수도 있습니다. 표시 목록에서 현재 이벤트를 처리 중인 객체에 액세스하려면 currentTarget 속성을 사용합니다.

관련 API 요소

MIDDLE_MOUSE_UP

상수 
public static const MIDDLE_MOUSE_UP:String = "middleMouseUp"

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 11.2, Flash Lite 4

middleMouseUp 이벤트 객체의 type 속성 값을 정의합니다.

이 이벤트에는 다음과 같은 속성이 있습니다.

속성
altKeyAlt 키가 활성 상태이면 true입니다(Windows).
bubblestrue
buttonDown마우스 중간 버튼이 눌러져 있으면 true이고, 그렇지 않으면 false입니다.
cancelablefalse: 기본 비헤이비어를 취소할 수 없습니다.
commandKeyMac에서 true이면 Command 키가 활성 상태이고, false이면 비활성 상태입니다. Windows에서는 항상 false입니다.
controlKeyCtrl 또는 Control 키가 활성 상태이면 true이고 비활성 상태이면 false입니다.
ctrlKeyWindows 또는 Linux에서 Ctrl 키가 활성 상태이면 true입니다. Mac에서 Ctrl 키 또는 Command 키가 활성 상태이면 true입니다. 그렇지 않으면 false입니다.
currentTarget이벤트 리스너를 통해 Event 객체를 처리하고 있는 객체입니다.
localX마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수평 좌표입니다.
localY마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수직 좌표입니다.
movementX마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수평 좌표에 대한 변경 사항입니다.
movementY마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수직 좌표에 대한 변경 사항입니다.
shiftKeytrue이면 Shift 키가 활성 상태이고, false이면 비활성 상태입니다.
clickCount이벤트가 다중 클릭 시퀀스의 일부인지 여부를 나타내기 위한 마우스 클릭 수입니다.
stageX전역 스테이지 좌표에서 이벤트가 발생한 지점의 수평 좌표입니다.
stageY전역 스테이지 좌표에서 이벤트가 발생한 지점의 수직 좌표입니다.
target포인팅 장치 아래에 있는 InteractiveObject 인스턴스입니다. target은 표시 목록에서 이벤트 리스너를 등록한 객체가 아닐 수도 있습니다. 표시 목록에서 현재 이벤트를 처리 중인 객체에 액세스하려면 currentTarget 속성을 사용합니다.

관련 API 요소

MOUSE_DOWN

상수 
public static const MOUSE_DOWN:String = "mouseDown"

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

mouseDown 이벤트 객체의 type 속성 값을 정의합니다.

이 이벤트에는 다음과 같은 속성이 있습니다.

속성
altKeyAlt 키가 활성 상태이면 true입니다(Windows).
bubblestrue
buttonDown마우스 기본 버튼이 눌러져 있으면 true이고, 그렇지 않으면 false입니다.
cancelablefalse: 기본 비헤이비어를 취소할 수 없습니다.
commandKeyMac에서 true이면 Command 키가 활성 상태이고, false이면 비활성 상태입니다. Windows에서는 항상 false입니다.
controlKeyCtrl 또는 Control 키가 활성 상태이면 true이고 비활성 상태이면 false입니다.
ctrlKeyWindows 및 Linux에서 Ctrl 키가 활성 상태이면 true입니다. Mac에서 Ctrl 키 또는 Command 키가 활성 상태이면 true입니다. 그렇지 않으면 false입니다.
currentTarget이벤트 리스너를 통해 Event 객체를 처리하고 있는 객체입니다.
localX마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수평 좌표입니다.
localY마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수직 좌표입니다.
movementX마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수평 좌표에 대한 변경 사항입니다.
movementY마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수직 좌표에 대한 변경 사항입니다.
shiftKeytrue이면 Shift 키가 활성 상태이고, false이면 비활성 상태입니다.
clickCount이벤트가 다중 클릭 시퀀스의 일부인지 여부를 나타내기 위한 마우스 클릭 수입니다.
stageX전역 스테이지 좌표에서 이벤트가 발생한 지점의 수평 좌표입니다.
stageY전역 스테이지 좌표에서 이벤트가 발생한 지점의 수직 좌표입니다.
target포인팅 장치 아래에 있는 InteractiveObject 인스턴스입니다. target은 표시 목록에서 이벤트 리스너를 등록한 객체가 아닐 수도 있습니다. 표시 목록에서 현재 이벤트를 처리 중인 객체에 액세스하려면 currentTarget 속성을 사용합니다.

관련 API 요소


예제
예제 사용 방법
이 상수를 사용하는 방법은 MOUSE_MOVE 상수 예제를 참조하십시오.

MOUSE_MOVE

상수 
public static const MOUSE_MOVE:String = "mouseMove"

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

mouseMove 이벤트 객체의 type 속성 값을 정의합니다.

이 이벤트에는 다음과 같은 속성이 있습니다.

속성
altKeyAlt 키가 활성 상태이면 true입니다(Windows).
bubblestrue
buttonDown마우스 기본 버튼이 눌러져 있으면 true이고, 그렇지 않으면 false입니다.
cancelablefalse: 기본 비헤이비어를 취소할 수 없습니다.
commandKeyMac에서 true이면 Command 키가 활성 상태이고, false이면 비활성 상태입니다. Windows에서는 항상 false입니다.
controlKeyCtrl 또는 Control 키가 활성 상태이면 true이고 비활성 상태이면 false입니다.
ctrlKeyWindows 또는 Linux에서 Ctrl 키가 활성 상태이면 true입니다. Mac에서 Ctrl 키 또는 Command 키가 활성 상태이면 true입니다. 그렇지 않으면 false입니다.
currentTarget이벤트 리스너를 통해 Event 객체를 처리하고 있는 객체입니다.
localX마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수평 좌표입니다.
localY마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수직 좌표입니다.
movementX마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수평 좌표에 대한 변경 사항입니다.
movementY마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수직 좌표에 대한 변경 사항입니다.
shiftKeytrue이면 Shift 키가 활성 상태이고, false이면 비활성 상태입니다.
stageX전역 스테이지 좌표에서 이벤트가 발생한 지점의 수평 좌표입니다.
stageY전역 스테이지 좌표에서 이벤트가 발생한 지점의 수직 좌표입니다.
target포인팅 장치 아래에 있는 InteractiveObject 인스턴스입니다. target은 표시 목록에서 이벤트 리스너를 등록한 객체가 아닐 수도 있습니다. 표시 목록에서 현재 이벤트를 처리 중인 객체에 액세스하려면 currentTarget 속성을 사용합니다.

관련 API 요소


예제  ( 예제 사용 방법 )

다음은 간단한 드로잉 프로그램 예제입니다. 기본 Sprite 객체 또는 크기가 작은 직사각형 Sprite 객체에 그릴 수 있습니다.

생성자에서 직사각형 innerRect Sprite 객체가 만들어지고 선 스타일이 녹색으로 설정됩니다. MouseEvent_MOUSE_MOVEExample Sprite 컨테이너에서 드로잉의 선 스타일이 빨간색으로 설정됩니다. MouseEvent.MOUSE_UPMouseEvent.MOUSE_DOWN 이벤트의 별도의 이벤트 리스너가 응용 프로그램의 기본 Sprite 객체 및 innerRect Sprite 객체에 추가됩니다. 두 경우 모두, 마우스 누름 이벤트 리스너 메서드가 현재 드로잉 위치를 마우스 포인터 위치로 이동하고 MouseEvent.MOUSE_MOVE 이벤트의 리스너를 추가합니다. 마우스 포인터가 이동되면 호출된 이벤트 리스너 메서드가 graphics.LineTo() 메서드를 사용하여 포인터를 따라 선을 그립니다. 참고: innerRect Sprite 객체는 사각형 뒤에 그려진 기본 Sprite 객체의 빨간색 선을 흐리게 합니다. MouseEvent.MOUSE_UP 이벤트가 발생하면 MOUSE_MOVE 이벤트의 리스너가 제거되며 드로잉이 중지됩니다.

package {
    import flash.display.Sprite;
    import flash.display.Graphics;
    import flash.events.MouseEvent;

    public class MouseEvent_MOUSE_MOVEExample extends Sprite {
        private var innerRect:Sprite = new Sprite();
        
        public function MouseEvent_MOUSE_MOVEExample() {

            graphics.lineStyle(3, 0xFF0000, 1);
            stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
            stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);

            innerRect.graphics.lineStyle(1, 0x00FF00, 1);
            innerRect.graphics.beginFill(0xFFFFFF);
            innerRect.graphics.drawRect(10, 10, 200, 200);
            innerRect.graphics.endFill();
            innerRect.addEventListener(MouseEvent.MOUSE_DOWN, innerRectMouseDownHandler);
            innerRect.addEventListener(MouseEvent.MOUSE_UP, innerRectMouseUpHandler);
            addChild(innerRect);
        }

        private function mouseDownHandler(event:MouseEvent):void {
            graphics.moveTo(event.stageX, event.stageY);
            stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
        }
    
        private function mouseMoveHandler(event:MouseEvent):void {
            graphics.lineTo(event.stageX, event.stageY);
        }    
    
        private function mouseUpHandler(event:MouseEvent):void {
            stage.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
        }

        private function innerRectMouseDownHandler(event:MouseEvent):void {
            innerRect.graphics.moveTo(event.localX, event.localY);
            innerRect.addEventListener(MouseEvent.MOUSE_MOVE, innerRectMouseMoveHandler);
        }
    
        private function innerRectMouseMoveHandler(event:MouseEvent):void {
            innerRect.graphics.lineTo(event.localX, event.localY);
        }    
    
        private function innerRectMouseUpHandler(event:MouseEvent):void {
            innerRect.removeEventListener(MouseEvent.MOUSE_MOVE, innerRectMouseMoveHandler);
        }
    }
}

MOUSE_OUT

상수 
public static const MOUSE_OUT:String = "mouseOut"

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

mouseOut 이벤트 객체의 type 속성 값을 정의합니다.

이 이벤트에는 다음과 같은 속성이 있습니다.

속성
altKeyAlt 키가 활성 상태이면 true입니다(Windows).
bubblestrue
buttonDown마우스 기본 버튼이 눌러져 있으면 true이고, 그렇지 않으면 false입니다.
cancelablefalse: 기본 비헤이비어를 취소할 수 없습니다.
commandKeyMac에서 true이면 Command 키가 활성 상태이고, false이면 비활성 상태입니다. Windows에서는 항상 false입니다.
controlKeyCtrl 또는 Control 키가 활성 상태이면 true이고 비활성 상태이면 false입니다.
ctrlKeyWindows 또는 Linux에서 Ctrl 키가 활성 상태이면 true입니다. Mac에서 Ctrl 키 또는 Command 키가 활성 상태이면 true입니다. 그렇지 않으면 false입니다.
currentTarget이벤트 리스너를 통해 Event 객체를 처리하고 있는 객체입니다.
relatedObject포인팅 장치가 현재 가리키고 있는 표시 목록 객체입니다.
localX마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수평 좌표입니다.
localY마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수직 좌표입니다.
movementX마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수평 좌표에 대한 변경 사항입니다.
movementY마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수직 좌표에 대한 변경 사항입니다.
shiftKeytrue이면 Shift 키가 활성 상태이고, false이면 비활성 상태입니다.
stageX전역 스테이지 좌표에서 이벤트가 발생한 지점의 수평 좌표입니다.
stageY전역 스테이지 좌표에서 이벤트가 발생한 지점의 수직 좌표입니다.
target포인팅 장치 아래에 있는 InteractiveObject 인스턴스입니다. target은 표시 목록에서 이벤트 리스너를 등록한 객체가 아닐 수도 있습니다. 표시 목록에서 현재 이벤트를 처리 중인 객체에 액세스하려면 currentTarget 속성을 사용합니다.

관련 API 요소

MOUSE_OVER

상수 
public static const MOUSE_OVER:String = "mouseOver"

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

mouseOver 이벤트 객체의 type 속성 값을 정의합니다.

이 이벤트에는 다음과 같은 속성이 있습니다.

속성
altKeyAlt 키가 활성 상태이면 true입니다(Windows).
bubblestrue
buttonDown마우스 기본 버튼이 눌러져 있으면 true이고, 그렇지 않으면 false입니다.
cancelablefalse: 기본 비헤이비어를 취소할 수 없습니다.
commandKeyMac에서 true이면 Command 키가 활성 상태이고, false이면 비활성 상태입니다. Windows에서는 항상 false입니다.
controlKeyCtrl 또는 Control 키가 활성 상태이면 true이고 비활성 상태이면 false입니다.
ctrlKeyWindows 또는 Linux에서 Ctrl 키가 활성 상태이면 true입니다. Mac에서 Ctrl 키 또는 Command 키가 활성 상태이면 true입니다. 그렇지 않으면 false입니다.
currentTarget이벤트 리스너를 통해 Event 객체를 처리하고 있는 객체입니다.
relatedObject포인팅 장치가 가리키고 있었던 표시 목록 객체입니다.
localX마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수평 좌표입니다.
localY마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수직 좌표입니다.
movementX마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수평 좌표에 대한 변경 사항입니다.
movementY마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수직 좌표에 대한 변경 사항입니다.
shiftKeytrue이면 Shift 키가 활성 상태이고, false이면 비활성 상태입니다.
stageX전역 스테이지 좌표에서 이벤트가 발생한 지점의 수평 좌표입니다.
stageY전역 스테이지 좌표에서 이벤트가 발생한 지점의 수직 좌표입니다.
target포인팅 장치 아래에 있는 InteractiveObject 인스턴스입니다. target은 표시 목록에서 이벤트 리스너를 등록한 객체가 아닐 수도 있습니다. 표시 목록에서 현재 이벤트를 처리 중인 객체에 액세스하려면 currentTarget 속성을 사용합니다.

관련 API 요소

MOUSE_UP

상수 
public static const MOUSE_UP:String = "mouseUp"

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

mouseUp 이벤트 객체의 type 속성 값을 정의합니다.

이 이벤트에는 다음과 같은 속성이 있습니다.

속성
altKeyAlt 키가 활성 상태이면 true입니다(Windows).
bubblestrue
buttonDown마우스 기본 버튼이 눌러져 있으면 true이고, 그렇지 않으면 false입니다.
cancelablefalse: 기본 비헤이비어를 취소할 수 없습니다.
commandKeyMac에서 true이면 Command 키가 활성 상태이고, false이면 비활성 상태입니다. Windows에서는 항상 false입니다.
controlKeyCtrl 또는 Control 키가 활성 상태이면 true이고 비활성 상태이면 false입니다.
ctrlKeyWindows 또는 Linux에서 Ctrl 키가 활성 상태이면 true입니다. Mac에서 Ctrl 키 또는 Command 키가 활성 상태이면 true입니다. 그렇지 않으면 false입니다.
currentTarget이벤트 리스너를 통해 Event 객체를 처리하고 있는 객체입니다.
localX마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수평 좌표입니다.
localY마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수직 좌표입니다.
movementX마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수평 좌표에 대한 변경 사항입니다.
movementY마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수직 좌표에 대한 변경 사항입니다.
shiftKeytrue이면 Shift 키가 활성 상태이고, false이면 비활성 상태입니다.
clickCount이벤트가 다중 클릭 시퀀스의 일부인지 여부를 나타내기 위한 마우스 클릭 수입니다.
stageX전역 스테이지 좌표에서 이벤트가 발생한 지점의 수평 좌표입니다.
stageY전역 스테이지 좌표에서 이벤트가 발생한 지점의 수직 좌표입니다.
target포인팅 장치 아래에 있는 InteractiveObject 인스턴스입니다. target은 표시 목록에서 이벤트 리스너를 등록한 객체가 아닐 수도 있습니다. 표시 목록에서 현재 이벤트를 처리 중인 객체에 액세스하려면 currentTarget 속성을 사용합니다.

관련 API 요소


예제
예제 사용 방법
이 상수를 사용하는 방법은 MOUSE_MOVE 상수 예제를 참조하십시오.

MOUSE_WHEEL

상수 
public static const MOUSE_WHEEL:String = "mouseWheel"

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9

mouseWheel 이벤트 객체의 type 속성 값을 정의합니다.

이 이벤트에는 다음과 같은 속성이 있습니다.

속성
altKeyAlt 키가 활성 상태이면 true입니다(Windows).
bubblestrue
buttonDown마우스 기본 버튼이 눌러져 있으면 true이고, 그렇지 않으면 false입니다.
cancelablefalse: 기본 비헤이비어를 취소할 수 없습니다.
commandKeyMac에서 true이면 Command 키가 활성 상태이고, false이면 비활성 상태입니다. Windows에서는 항상 false입니다.
controlKeyCtrl 또는 Control 키가 활성 상태이면 true이고 비활성 상태이면 false입니다.
ctrlKeyWindows 또는 Linux에서 Ctrl 키가 활성 상태이면 true입니다. Mac에서 Ctrl 키 또는 Command 키가 활성 상태이면 true입니다. 그렇지 않으면 false입니다.
currentTarget이벤트 리스너를 통해 Event 객체를 처리하고 있는 객체입니다.
delta마우스 휠의 한 칸에 해당되는 행 수입니다.
localX마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수평 좌표입니다.
localY마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수직 좌표입니다.
movementX마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수평 좌표에 대한 변경 사항입니다.
movementY마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수직 좌표에 대한 변경 사항입니다.
shiftKeytrue이면 Shift 키가 활성 상태이고, false이면 비활성 상태입니다.
stageX전역 스테이지 좌표에서 이벤트가 발생한 지점의 수평 좌표입니다.
stageY전역 스테이지 좌표에서 이벤트가 발생한 지점의 수직 좌표입니다.
target포인팅 장치 아래에 있는 InteractiveObject 인스턴스입니다. target은 표시 목록에서 이벤트 리스너를 등록한 객체가 아닐 수도 있습니다. 표시 목록에서 현재 이벤트를 처리 중인 객체에 액세스하려면 currentTarget 속성을 사용합니다.

관련 API 요소

RELEASE_OUTSIDE

상수 
public static const RELEASE_OUTSIDE:String = "releaseOutside"

언어 버전: ActionScript 3.0
런타임 버전: AIR 3.3, Flash Player 11.3

releaseOutside 이벤트 객체의 type 속성 값을 정의합니다.

이 이벤트에는 다음과 같은 속성이 있습니다.

속성
altKeyAlt 키가 활성 상태이면 true입니다(Windows).
bubblestrue
buttonDownfalse
cancelablefalse: 기본 비헤이비어를 취소할 수 없습니다.
commandKeyMac에서 true이면 Command 키가 활성 상태이고, false이면 비활성 상태입니다. Windows에서는 항상 false입니다.
controlKeyCtrl 또는 Control 키가 활성 상태이면 true이고 비활성 상태이면 false입니다.
ctrlKeyWindows 또는 Linux에서 Ctrl 키가 활성 상태이면 true입니다. Mac에서 Ctrl 키 또는 Command 키가 활성 상태이면 true입니다. 그렇지 않으면 false입니다.
currentTarget이벤트 리스너를 통해 Event 객체를 처리하고 있는 객체입니다.
localX마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수평 좌표입니다.
localY마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수직 좌표입니다.
shiftKeytrue이면 Shift 키가 활성 상태이고, false이면 비활성 상태입니다.
clickCount이벤트가 다중 클릭 시퀀스의 일부인지 여부를 나타내기 위한 마우스 클릭 수입니다.
stageX전역 스테이지 좌표에서 이벤트가 발생한 지점의 수평 좌표입니다.
stageY전역 스테이지 좌표에서 이벤트가 발생한 지점의 수직 좌표입니다.
target이전에 눌러졌다가 해제되어 인스턴스에서 빠져나오는 포인팅 장치 버튼을 나타내는 InteractiveObject입니다. target은 표시 목록에서 이벤트 리스너를 등록한 객체가 아닐 수도 있습니다. 표시 목록에서 현재 이벤트를 처리 중인 객체에 액세스하려면 currentTarget 속성을 사용합니다.

관련 API 요소


예제
예제 사용 방법
이 상수를 사용하는 방법은 MOUSE_MOVE 상수 예제를 참조하십시오.

RIGHT_CLICK

상수 
public static const RIGHT_CLICK:String = "rightClick"

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 11.2, Flash Lite 4

rightClick 이벤트 객체의 type 속성 값을 정의합니다.

이 이벤트에는 다음과 같은 속성이 있습니다.

속성
altKeyAlt 키가 활성 상태이면 true입니다(Windows).
bubblestrue
buttonDown오른쪽 클릭 이벤트의 경우 이 속성이 항상 false입니다.
cancelablefalse. 취소할 기본 비헤이비어가 없습니다.
commandKeyMac에서 true이면 Command 키가 활성 상태이고, false이면 비활성 상태입니다. Windows에서는 항상 false입니다.
controlKeyCtrl 또는 Control 키가 활성 상태이면 true이고 비활성 상태이면 false입니다.
ctrlKeyWindows 또는 Linux에서 Ctrl 키가 활성 상태이면 true입니다. Mac에서 Ctrl 키 또는 Command 키가 활성 상태이면 true입니다. 그렇지 않으면 false입니다.
currentTarget이벤트 리스너를 통해 Event 객체를 처리하고 있는 객체입니다.
localX마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수평 좌표입니다.
localY마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수직 좌표입니다.
movementX마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수평 좌표에 대한 변경 사항입니다.
movementY마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수직 좌표에 대한 변경 사항입니다.
shiftKeytrue이면 Shift 키가 활성 상태이고, false이면 비활성 상태입니다.
stageX전역 스테이지 좌표에서 이벤트가 발생한 지점의 수평 좌표입니다.
stageY전역 스테이지 좌표에서 이벤트가 발생한 지점의 수직 좌표입니다.
target포인팅 장치 아래에 있는 InteractiveObject 인스턴스입니다. target은 표시 목록에서 이벤트 리스너를 등록한 객체가 아닐 수도 있습니다. 표시 목록에서 현재 이벤트를 처리 중인 객체에 액세스하려면 currentTarget 속성을 사용합니다.

관련 API 요소

RIGHT_MOUSE_DOWN

상수 
public static const RIGHT_MOUSE_DOWN:String = "rightMouseDown"

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 11.2, Flash Lite 4

rightMouseDown 이벤트 객체의 type 속성 값을 정의합니다.

이 이벤트에는 다음과 같은 속성이 있습니다.

속성
altKeyAlt 키가 활성 상태이면 true입니다(Windows).
bubblestrue
buttonDown오른쪽 클릭 이벤트의 경우 이 속성이 항상 true입니다.
cancelablefalse: 기본 비헤이비어를 취소할 수 없습니다.
commandKeyMac에서 true이면 Command 키가 활성 상태이고, false이면 비활성 상태입니다. Windows에서는 항상 false입니다.
controlKeyCtrl 또는 Control 키가 활성 상태이면 true이고 비활성 상태이면 false입니다.
ctrlKeyWindows 또는 Linux에서 Ctrl 키가 활성 상태이면 true입니다. Mac에서 Ctrl 키 또는 Command 키가 활성 상태이면 true입니다. 그렇지 않으면 false입니다.
currentTarget이벤트 리스너를 통해 Event 객체를 처리하고 있는 객체입니다.
localX마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수평 좌표입니다.
localY마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수직 좌표입니다.
movementX마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수평 좌표에 대한 변경 사항입니다.
movementY마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수직 좌표에 대한 변경 사항입니다.
shiftKeytrue이면 Shift 키가 활성 상태이고, false이면 비활성 상태입니다.
clickCount이벤트가 다중 클릭 시퀀스의 일부인지 여부를 나타내기 위한 마우스 클릭 수입니다.
stageX전역 스테이지 좌표에서 이벤트가 발생한 지점의 수평 좌표입니다.
stageY전역 스테이지 좌표에서 이벤트가 발생한 지점의 수직 좌표입니다.
target포인팅 장치 아래에 있는 InteractiveObject 인스턴스입니다. target은 표시 목록에서 이벤트 리스너를 등록한 객체가 아닐 수도 있습니다. 표시 목록에서 현재 이벤트를 처리 중인 객체에 액세스하려면 currentTarget 속성을 사용합니다.

관련 API 요소

RIGHT_MOUSE_UP

상수 
public static const RIGHT_MOUSE_UP:String = "rightMouseUp"

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 11.2, Flash Lite 4

rightMouseUp 이벤트 객체의 type 속성 값을 정의합니다.

이 이벤트에는 다음과 같은 속성이 있습니다.

속성
altKeyAlt 키가 활성 상태이면 true입니다(Windows).
bubblestrue
buttonDown마우스 오른쪽 버튼이 눌러져 있으면 true이고, 그렇지 않으면 false입니다.
cancelablefalse: 기본 비헤이비어를 취소할 수 없습니다.
commandKeyMac에서 true이면 Command 키가 활성 상태이고, false이면 비활성 상태입니다. Windows에서는 항상 false입니다.
controlKeyCtrl 또는 Control 키가 활성 상태이면 true이고 비활성 상태이면 false입니다.
ctrlKeyWindows 또는 Linux에서 Ctrl 키가 활성 상태이면 true입니다. Mac에서 Ctrl 키 또는 Command 키가 활성 상태이면 true입니다. 그렇지 않으면 false입니다.
currentTarget이벤트 리스너를 통해 Event 객체를 처리하고 있는 객체입니다.
localX마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수평 좌표입니다.
localY마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수직 좌표입니다.
movementX마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수평 좌표에 대한 변경 사항입니다.
movementY마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수직 좌표에 대한 변경 사항입니다.
shiftKeytrue이면 Shift 키가 활성 상태이고, false이면 비활성 상태입니다.
clickCount이벤트가 다중 클릭 시퀀스의 일부인지 여부를 나타내기 위한 마우스 클릭 수입니다.
stageX전역 스테이지 좌표에서 이벤트가 발생한 지점의 수평 좌표입니다.
stageY전역 스테이지 좌표에서 이벤트가 발생한 지점의 수직 좌표입니다.
target포인팅 장치 아래에 있는 InteractiveObject 인스턴스입니다. target은 표시 목록에서 이벤트 리스너를 등록한 객체가 아닐 수도 있습니다. 표시 목록에서 현재 이벤트를 처리 중인 객체에 액세스하려면 currentTarget 속성을 사용합니다.

관련 API 요소

ROLL_OUT

상수 
public static const ROLL_OUT:String = "rollOut"

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

rollOut 이벤트 객체의 type 속성 값을 정의합니다.

이 이벤트에는 다음과 같은 속성이 있습니다.

속성
altKeyAlt 키가 활성 상태이면 true입니다(Windows).
bubblesfalse
buttonDown마우스 기본 버튼이 눌러져 있으면 true이고, 그렇지 않으면 false입니다.
cancelablefalse. 취소할 기본 비헤이비어가 없습니다.
commandKeyMac에서 true이면 Command 키가 활성 상태이고, false이면 비활성 상태입니다. Windows에서는 항상 false입니다.
controlKeyCtrl 또는 Control 키가 활성 상태이면 true이고 비활성 상태이면 false입니다.
ctrlKeyWindows 또는 Linux에서 Ctrl 키가 활성 상태이면 true입니다. Mac에서 Ctrl 키 또는 Command 키가 활성 상태이면 true입니다. 그렇지 않으면 false입니다.
currentTarget이벤트 리스너를 통해 Event 객체를 처리하고 있는 객체입니다.
relatedObject포인팅 장치가 현재 가리키고 있는 표시 목록 객체입니다.
localX마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수평 좌표입니다.
localY마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수직 좌표입니다.
movementX마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수평 좌표에 대한 변경 사항입니다.
movementY마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수직 좌표에 대한 변경 사항입니다.
shiftKeytrue이면 Shift 키가 활성 상태이고, false이면 비활성 상태입니다.
stageX전역 스테이지 좌표에서 이벤트가 발생한 지점의 수평 좌표입니다.
stageY전역 스테이지 좌표에서 이벤트가 발생한 지점의 수직 좌표입니다.
target포인팅 장치 아래에 있는 InteractiveObject 인스턴스입니다. target은 표시 목록에서 이벤트 리스너를 등록한 객체가 아닐 수도 있습니다. 표시 목록에서 현재 이벤트를 처리 중인 객체에 액세스하려면 currentTarget 속성을 사용합니다.

관련 API 요소

ROLL_OVER

상수 
public static const ROLL_OVER:String = "rollOver"

언어 버전: ActionScript 3.0
런타임 버전: AIR 1.0, Flash Player 9, Flash Lite 4

rollOver 이벤트 객체의 type 속성 값을 정의합니다.

이 이벤트에는 다음과 같은 속성이 있습니다.

속성
altKeyAlt 키가 활성 상태이면 true입니다(Windows).
bubblesfalse
buttonDown마우스 기본 버튼이 눌러져 있으면 true이고, 그렇지 않으면 false입니다.
cancelablefalse. 취소할 기본 비헤이비어가 없습니다.
commandKeyMac에서 true이면 Command 키가 활성 상태이고, false이면 비활성 상태입니다. Windows에서는 항상 false입니다.
controlKeyCtrl 또는 Control 키가 활성 상태이면 true이고 비활성 상태이면 false입니다.
ctrlKeyWindows 또는 Linux에서 Ctrl 키가 활성 상태이면 true입니다. Mac에서 Ctrl 키 또는 Command 키가 활성 상태이면 true입니다. 그렇지 않으면 false입니다.
currentTarget이벤트 리스너를 통해 Event 객체를 처리하고 있는 객체입니다.
relatedObject포인팅 장치가 가리키고 있었던 표시 목록 객체입니다.
localX마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수평 좌표입니다.
localY마우스 잠금이 비활성화된 경우 포함 Sprite와 관련된 이벤트가 발생한 지점의 수직 좌표입니다.
movementX마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수평 좌표에 대한 변경 사항입니다.
movementY마우스 잠금이 활성화된 경우 마지막 마우스 이벤트 이후 마우스 위치의 수직 좌표에 대한 변경 사항입니다.
shiftKeytrue이면 Shift 키가 활성 상태이고, false이면 비활성 상태입니다.
stageX전역 스테이지 좌표에서 이벤트가 발생한 지점의 수평 좌표입니다.
stageY전역 스테이지 좌표에서 이벤트가 발생한 지점의 수직 좌표입니다.
target포인팅 장치 아래에 있는 InteractiveObject 인스턴스입니다. target은 표시 목록에서 이벤트 리스너를 등록한 객체가 아닐 수도 있습니다. 표시 목록에서 현재 이벤트를 처리 중인 객체에 액세스하려면 currentTarget 속성을 사용합니다.

관련 API 요소

MouseEventExample.as

다음 예제에서는 MouseEventExampleChildSprite 클래스를 사용하여 간단한 이미지로 마우스 이벤트를 전달하는 방법을 보여 줍니다. 이는 다음 단계로 이루어집니다.
  1. 예제에서는 나중에 사각형을 그릴 때 사용하기 위한 크기(100 x 100픽셀) 및 배경색(주황색) 속성을 선언합니다.
  2. 생성자는 새로운 ChildSprite 객체 child를 생성합니다. 생성자는 먼저 draw() 메서드를 호출하여 (0,0) 좌표에 100 x 100픽셀의 주황색 사각형을 그린 다음 일곱 개의 이벤트 리스너/구독자를 추가합니다.
    • click / clickHandler(): 사용자가 사각형을 마우스 왼쪽 버튼으로 한 번 클릭하면 전달됩니다.
    • doubleClick / doubleClickHandler(): 사용자가 사각형을 마우스 왼쪽 버튼으로 두 번 클릭하면 전달됩니다.
    • mouseDown / mouseDownHandler(): ChildSprite 객체(주황색 사각형)를 클릭하면 화면에 trace() 메시지가 출력된 다음 ChildSprite.draw()가 호출되어 mouseOverHandler()에 그려진 연한 파란색 사각형 자리에 진한 노란색 사각형을 그립니다. mouseDownHandler() 메서드는 마우스 이동을 처리하는 mouseMove 이벤트 리스너 및 mouseMoveHandler() 구독자(아래 설명 참조)를 추가합니다. 그런 다음 Sprite 객체를 드래그할 수 있도록 startDrag() 메서드가 호출됩니다.
    • mouseOut / mouseOutHandler(): 포인터가 사각형 영역에서 벗어날 때마다 전달됩니다. draw() 메서드를 호출하여 사각형을 보통 크기와 색상으로 되돌립니다.
    • mouseOver / mouseOverHandler(): 마우스 포인터가 사각형 위에 있을 때 전달됩니다. 이 메서드는 사각형을 진한 노란색 배경에 더 큰 크기로 다시 그립니다.
    • mouseUp / mouseUpHandler(): 마우스 버튼을 놓으면 mouseMove 이벤트 리스너가 제거되고 stopDrag가 호출되어 사각형이 제자리에 고정됩니다.
    • mouseMove/mouseMoveHandler(): mouseDownHandler() 함수의 일부로 호출되며 사용자가 마우스 왼쪽 버튼을 누르고 사각형을 드래그할 때 전달됩니다.
    • mouseWheel / mouseWheelHandler(): 사용자가 사각형 위에서 마우스 휠을 돌릴 때 전달됩니다.
  3. 그런 다음 ChildSprite 인스턴스 childaddChild()에 의해 표시 목록에 추가되어 주황색 사각형을 즉시 그립니다.

참고:

  • MouseEventExample 클래스는 문서 루트여야 합니다.
  • 위의 이벤트 메서드 중 일부는 로컬 변수 sprite를 선언합니다. 이 변수는 Sprite 유형에 event.target 캐스트를 할당합니다.
package {
    import flash.display.Sprite;

    public class MouseEventExample extends Sprite {
        private var size:uint = 100;
        private var bgColor:uint = 0xFFCC00;

        public function MouseEventExample() {
            var child:ChildSprite = new ChildSprite();
            addChild(child);
        }
    }
}

import flash.display.Sprite;
import flash.events.MouseEvent;

class ChildSprite extends Sprite {
    private var size:uint = 50;
    private var overSize:uint = 60;
    private var backgroundColor:uint = 0xFFCC00;
    private var overColor:uint = 0xCCFF00;
    private var downColor:uint = 0x00CCFF;

    public function ChildSprite() {
        draw(size, size, backgroundColor);
            doubleClickEnabled = true;
        addEventListener(MouseEvent.CLICK, clickHandler);
        addEventListener(MouseEvent.DOUBLE_CLICK, doubleClickHandler);
        addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
        addEventListener(MouseEvent.MOUSE_OUT, mouseOutHandler);
        addEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler);
        addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
        addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelHandler);
    }

    private function draw(w:uint, h:uint, bgColor:uint):void {
        graphics.clear();
        graphics.beginFill(bgColor);
        graphics.drawRect(0, 0, w, h);
        graphics.endFill();
    }

    private function clickHandler(event:MouseEvent):void {
        trace("clickHandler");
    }

    private function doubleClickHandler(event:MouseEvent):void {
        trace("doubleClickHandler");
    }

    private function mouseDownHandler(event:MouseEvent):void {
        trace("mouseDownHandler");
        draw(overSize, overSize, downColor);

        var sprite:Sprite = Sprite(event.target);
        sprite.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
        sprite.startDrag();
    }

    private function mouseMoveHandler(event:MouseEvent):void {
        trace("mouseMoveHandler");
        event.updateAfterEvent();
    }

    private function mouseOutHandler(event:MouseEvent):void {
        trace("mouseOutHandler");
        draw(size, size, backgroundColor);
    }

    private function mouseOverHandler(event:MouseEvent):void {
        trace("mouseOverHandler");
        draw(overSize, overSize, overColor);
    }

    private function mouseWheelHandler(event:MouseEvent):void {
        trace("mouseWheelHandler delta: " + event.delta);
    }

    private function mouseUpHandler(event:MouseEvent):void {
        trace("mouseUpHandler");
        var sprite:Sprite = Sprite(event.target);
        sprite.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
        sprite.stopDrag();
        draw(overSize, overSize, overColor);
    }
}




[ X ]영어로 표시되는 이유
ActionScript 3.0 참조 설명서의 내용이 영어로 나타납니다.

ActionScript 3.0 참조 설명서 중 일부는 전체 언어로 번역되지 않았습니다. 언어 요소가 번역되지 않은 경우 영어로 나타납니다. 예를 들어 ga.controls.HelpBox 클래스는 어떤 언어로도 번역되지 않았습니다. 그러므로 한국어 버전의 참조 설명서에서 ga.controls.HelpBox 클래스는 영어로 나타납니다.