Adobe® Flash® Platform 用 ActionScript® 3.0 リファレンスガイド
ホーム  |  パッケージおよびクラスリストの非表示 |  パッケージ  |  クラス  |  新機能  |  索引  |  付録  |  英語で表示される理由
フィルター: AIR 30.0 以前, Flash Player 30.0 以前, Flash Lite 4
Flex 4.6 以前, Flash Pro CS6 以前
フィルターを非表示
flash.events 

Event  - 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 タグ
使用されなくなったエレメントのリスト
Accessibility Implementation 定数
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 Event
継承Event Inheritance Object
サブクラス AccelerometerEvent, ActionSelectedEvent, ActivityEvent, AdvancedDataGridEvent, AdvancedDataGridHeaderShiftEvent, AdvancedDataGridItemSelectEvent, AIREvent, AlternativeAudioEvent, AnnotationParseEvent, AssetActionCompleteEvent, AssetActionCompleteEvent, AssetActionEvent, AssetActionsChangeEvent, AssetValidationEvent, AttachmentEvent, AudioEvent, AudioOutputChangeEvent, AuthenticationEvent, AutomationAirEvent, AutomationEvent, AutomationFlexNativeMenuEvent, AutomationRecordEvent, AutomationReplayEvent, AVDictionaryDataEvent, AVHTTPStatusEvent, AVPauseAtPeriodEndEvent, BaseEvent, BrowserChangeEvent, BrowserInvokeEvent, BufferEvent, BundleEvent, CalendarLayoutChangeEvent, CaptionChangeEvent, CaptionTargetEvent, ChannelEvent, ChartSelectionChangeEvent, ChildExistenceChangedEvent, CloseEvent, CollectionEvent, ColorPickerEvent, ColorPickerEvent, ComponentEvent, CompositionCompleteEvent, ComputationErrorEvent, ConflictEvent, ContainerChangeEvent, ContextMenuEvent, CubeEvent, CuePointEvent, DamageEvent, DataChangeEvent, DataConflictEvent, DataElementsPanelToolBarEvent, DatagramSocketDataEvent, DataGridEvent, DateChooserEvent, DCTEvent, DDInstanceValueChangeEvent, DeviceRotationEvent, DisplayObjectEvent, DividerEvent, DNSResolverEvent, DocumentPodEvent, DRMAuthenticateEvent, DRMAuthenticationCompleteEvent, DRMDeviceGroupEvent, DRMEvent, DRMLicenseRequestEvent, DRMMetadataEvent, DRMReturnVoucherCompleteEvent, DRMStatusEvent, DropdownEvent, DropDownEvent, DVREvent, DynamicEvent, DynamicStreamEvent, EffectEvent, ElementExistenceEvent, ErrorEvent, ExpressionBuilderEvent, ExpressionEvent, ExpressionInsertEvent, ExpressionRegistrationFailureEvent, ExpressionRegistrationSuccessEvent, ExpressionsPanelToolBarEvent, ExpressionValueChangeEvent, FileEvent, FileEvent, FileListEvent, FlexEvent, FlexNativeMenuEvent, FlowElementMouseEvent, FlowOperationEvent, FocusEvent, FunctionFamilyProviderEvent, FunctionsPanelToolBarEvent, GAEvent, GameInputEvent, GanttActionEvent, GanttEvent, GeolocationEvent, GestureEvent, GridCaretEvent, GridItemEditorEvent, GridSelectionEvent, GridSortEvent, HTMLUncaughtScriptExceptionEvent, HTTPStatusEvent, IKEvent, IndexChangedEvent, IndexChangeEvent, InterManagerRequest, InvokeEvent, ItemClickEvent, KeyboardEvent, LabelEditorEvent, LayoutEvent, LayoutEvent, ListEvent, ListEvent, ListItemSelectEvent, LiveCycleEvent, LiveCycleFaultEvent, LoaderEvent, LoaderInvalidationEvent, LoadEvent, LocationChangeEvent, LogEvent, MarshalledAutomationEvent, MediaElementEvent, MediaErrorEvent, MediaEvent, MediaFactoryEvent, MediaPlayerCapabilityChangeEvent, MediaPlayerStateChangeEvent, MenuShowEvent, Message, MessageEvent, MessageFaultEvent, MetadataEvent, MetadataEvent, MetadataEvent, MotionEvent, MouseEvent, MoveEvent, NativeProcessExitEvent, NativeWindowBoundsEvent, NativeWindowDisplayStateEvent, NetConnectionFactoryEvent, NetDataEvent, NetMonitorEvent, NetStatusEvent, NumericStepperEvent, OptionMenuEvent, OutputProgressEvent, PackageDefinitionLoadFailedEvent, PackageDefinitionReadyEvent, PackageObjectReadyEvent, PermissionEvent, PlayEvent, PluginNotInstalledEvent, PopUpEvent, PreviewEvent, PRMErrorEvent, ProcessComponentEvent, ProgressEvent, ProjectEvent, PropertyChangeEvent, PropertyLoadEvent, QoSInfoEvent, RCAErrorEvent, ReferenceChangedEvent, RelationEvent, RemoteNotificationEvent, RendererExistenceEvent, Request, RequestAwareEvent, ResizeEvent, RSLEvent, SampleDataEvent, SandboxMouseEvent, ScaleChangedEvent, SchedulesStateEvent, ScrollEvent, ScrollEvent, SearchEvent, SearchEvent, SeekEvent, SelectionEvent, SerialElementEvent, ServerSocketConnectEvent, ServiceEvent, SessionFaultEvent, SessionResultEvent, ShaderEvent, SliderEvent, SliderEvent, SoftKeyboardEvent, SoundEvent, SparkDataGridItemSelectEvent, SparkListItemSelectEvent, SparkValueChangeAutomationEvent, SQLEvent, SQLUpdateEvent, StageEvent, StageOrientationEvent, StageParticipantEvent, StageVideoAvailabilityEvent, StageVideoEvent, StartpointEvent, StateChangeEvent, StatusChangeEvent, StatusEvent, StorageVolumeChangeEvent, SwfAppButtonEvent, SwfAppEvent, SWFBridgeEvent, SWFBridgeRequest, SwfDataEvent, SyncEvent, TabLayoutEvent, TaskCompletedEvent, TaskManagerEvent, TaskManagerFaultEvent, TaskPropertyChangedEvent, TeamPodEvent, TemplateEvent, TextEvent, TextLayoutEvent, TextOperationEvent, TextSelectionEvent, ThrottleEvent, TimeEvent, TimerEvent, TitleWindowBoundsEvent, ToolTipEvent, TouchEvent, TouchInteractionEvent, TrackBaseEvent, TreeEvent, TweenEvent, TweenEvent, UpdateCompleteEvent, UpdateEvent, UploadEvent, UserEvent, UserSelectedEvent, ValidationResultEvent, VariableChangeEvent, VersionEvent, VideoEvent, VideoEvent, VideoEvent, VideoTextureEvent, ViewNavigatorEvent, VsyncStateChangeAvailabilityEvent, WorkItemEvent, XFADataLoadFailedEvent, XFADataReadyEvent, XFADataSavedEvent, XFADataSaveFailedEvent, XMLDataReadyEvent, XMLLoadEvent

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

Event クラスは、Event オブジェクトを作成するための基本クラスとして使用されます。これらの Event オブジェクトは、イベントの発生時にイベントリスナーにパラメーターとして渡されます。

Event クラスのプロパティは、イベントのタイプやイベントのデフォルト動作をキャンセルできるかどうかといった、イベントの基本情報を保持しています。Event クラス定数が表すイベントなど多くのイベントでは、この基本情報で十分です。ただし、さらに詳しい情報が必要なイベントもあります。例えば、マウスクリックに関連するイベントは、クリックイベントの場所やクリック時にキーが押されていたかどうかに関する追加情報を含む必要があります。このような追加情報は、MouseEvent クラスで行われているように、Event クラスを拡張することでイベントリスナーに渡すことができます。ActionScript 3.0 API によって、追加情報を必要とする一般的なイベントのためにいくつかの Event サブクラスが定義されています。各 Event サブクラスに関連するイベントの説明は、各クラスのドキュメントを参照してください。

Event クラスのメソッドは、イベントリスナー関数で使用してイベントオブジェクトの動作に影響を与えることができます。一部のイベントにはデフォルトの動作が関連付けられています。例えば、doubleClick イベントには、イベント時にマウスポインター位置の単語がハイライト表示されるというデフォルトの動作が関連付けられています。イベントリスナーで preventDefault() メソッドを呼び出してこの動作をキャンセルできます。 また、stopPropagation() メソッドまたは stopImmediatePropagation() メソッドを呼び出すと、現在のイベントリスナーを、イベントを処理する最後のイベントリスナーにすることができます。

その他の参考情報:

例を表示

さらに例を参照

関連する API エレメント



パブリックプロパティ
 プロパティ定義元
  bubbles : Boolean
[読み取り専用] イベントがバブリングイベントかどうかを示します。
Event
  cancelable : Boolean
[読み取り専用] イベントに関連付けられた動作を回避できるかどうかを示します。
Event
 Inheritedconstructor : Object
指定されたオブジェクトインスタンスのクラスオブジェクトまたはコンストラクター関数への参照です。
Object
  currentTarget : Object
[読み取り専用] イベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
Event
  eventPhase : uint
[読み取り専用] イベントフローの現在の段階です。
Event
  target : Object
[読み取り専用] イベントターゲットです。
Event
  type : String
[読み取り専用] イベントのタイプです。
Event
パブリックメソッド
 メソッド定義元
  
Event(type:String, bubbles:Boolean = false, cancelable:Boolean = false)
イベントリスナーにパラメーターとして渡す Event オブジェクトを作成します。
Event
  
Event サブクラスのインスタンスを複製します。
Event
  
formatToString(className:String, ... arguments):String
カスタム ActionScript 3.0 Event クラスに toString() メソッドを実装するためのユーティリティ関数です。
Event
 Inherited
オブジェクトに指定されたプロパティが定義されているかどうかを示します。
Object
  
イベントで preventDefault() メソッドが呼び出されたかどうかを確認します。
Event
 Inherited
Object クラスのインスタンスが、パラメーターとして指定されたオブジェクトのプロトタイプチェーン内にあるかどうかを示します。
Object
  
イベントのデフォルト動作をキャンセルできる場合に、その動作をキャンセルします。
Event
 Inherited
指定されたプロパティが存在し、列挙できるかどうかを示します。
Object
 Inherited
ループ処理に対するダイナミックプロパティの可用性を設定します。
Object
  
イベントフローの現在のノードおよび後続するノードで、イベントリスナーが処理されないようにします。
Event
  
イベントフローの現在のノードに後続するノードで、イベントリスナーが処理されないようにします。
Event
 Inherited
ロケール固有の規則に従って書式設定された、このオブジェクトのストリング表現を返します。
Object
  
Event オブジェクトのすべてのプロパティを含むストリングを返します。
Event
 Inherited
指定されたオブジェクトのプリミティブな値を返します。
Object
パブリック定数
 定数定義元
  ACTIVATE : String = "activate"
[静的] ACTIVATE 定数は、type プロパティ(activate イベントオブジェクト)の値を定義します。
Event
  ADDED : String = "added"
[静的] Event.ADDED 定数は、added イベントオブジェクトの type プロパティの値を定義します。
Event
  ADDED_TO_STAGE : String = "addedToStage"
[静的] Event.ADDED_TO_STAGE 定数は、type プロパティ(addedToStage イベントオブジェクト)の値を定義します。
Event
  BROWSER_ZOOM_CHANGE : String = "browserZoomChange"
[静的] Event.BROWSER_ZOOM_CHANGE 定数は、browserZoomChange イベントオブジェクトの type プロパティの値を定義します。
Event
  CANCEL : String = "cancel"
[静的] Event.CANCEL 定数は、cancel イベントオブジェクトの type プロパティの値を定義します。
Event
  CHANGE : String = "change"
[静的] Event.CHANGE 定数は、type プロパティ(change イベントオブジェクト)の値を定義します。
Event
  CHANNEL_MESSAGE : String = "channelMessage"
[静的] Event.CHANNEL_MESSAGE 定数は、channelMessage イベントオブジェクトの type プロパティの値を定義します。
Event
  CHANNEL_STATE : String = "channelState"
[静的] Event.CHANNEL_STATE 定数は、channelState イベントオブジェクトの type プロパティの値を定義します。
Event
  CLEAR : String = "clear"
[静的] Event.CLEAR 定数は、clear イベントオブジェクトの type プロパティの値を定義します。
Event
  CLOSE : String = "close"
[静的] Event.CLOSE 定数は、close イベントオブジェクトの type プロパティの値を定義します。
Event
  CLOSING : String = "closing"
[静的] Event.CLOSING 定数は、closing イベントオブジェクトの type プロパティの値を定義します。
Event
  COMPLETE : String = "complete"
[静的] Event.COMPLETE 定数は、complete イベントオブジェクトの type プロパティの値を定義します。
Event
  CONNECT : String = "connect"
[静的] Event.CONNECT 定数は、connect イベントオブジェクトの type プロパティの値を定義します。
Event
  CONTEXT3D_CREATE : String = "context3DCreate"
[静的] Event.CONTEXT3D_CREATE 定数は、context3Dcreate イベントオブジェクトの type プロパティの値を定義します。
Event
  COPY : String = "copy"
[静的] copy イベントオブジェクトの type プロパティ値を定義します。
Event
  CUT : String = "cut"
[静的] cut イベントオブジェクトの type プロパティ値を定義します。
Event
  DEACTIVATE : String = "deactivate"
[静的] Event.DEACTIVATE 定数は、deactivate イベントオブジェクトの type プロパティの値を定義します。
Event
  DISPLAYING : String = "displaying"
[静的] Event.DISPLAYING 定数は、displaying イベントオブジェクトの type プロパティの値を定義します。
Event
  ENTER_FRAME : String = "enterFrame"
[静的] Event.ENTER_FRAME 定数は、enterFrame イベントオブジェクトの type プロパティの値を定義します。
Event
  EXIT_FRAME : String = "exitFrame"
[静的] Event.EXIT_FRAME 定数は、exitFrame イベントオブジェクトの type プロパティの値を定義します。
Event
  EXITING : String = "exiting"
[静的] Event.EXITING 定数は、exiting イベントオブジェクトの type プロパティの値を定義します。
Event
  FRAME_CONSTRUCTED : String = "frameConstructed"
[静的] Event.FRAME_CONSTRUCTED 定数は、frameConstructed イベントオブジェクトの type プロパティの値を定義します。
Event
  FRAME_LABEL : String = "frameLabel"
[静的] Event.FRAME_LABEL 定数は、frameLabel イベントオブジェクトの type プロパティの値を定義します。
Event
  FULLSCREEN : String = "fullScreen"
[静的] Event.FULL_SCREEN 定数は、fullScreen イベントオブジェクトの type プロパティの値を定義します。
Event
  HTML_BOUNDS_CHANGE : String = "htmlBoundsChange"
[静的] Event.HTML_BOUNDS_CHANGE 定数は、htmlBoundsChange イベントオブジェクトの type プロパティの値を定義します。
Event
  HTML_DOM_INITIALIZE : String = "htmlDOMInitialize"
[静的] Event.HTML_DOM_INITIALIZE 定数は、htmlDOMInitialize イベントオブジェクトの type プロパティの値を定義します。
Event
  HTML_RENDER : String = "htmlRender"
[静的] Event.HTML_RENDER 定数は、htmlRender イベントオブジェクトの type プロパティの値を定義します。
Event
  ID3 : String = "id3"
[静的] Event.ID3 定数は、id3 イベントオブジェクトの type プロパティの値を定義します。
Event
  INIT : String = "init"
[静的] Event.INIT 定数は、init イベントオブジェクトの type プロパティの値を定義します。
Event
  LOCATION_CHANGE : String = "locationChange"
[静的] Event.LOCATION_CHANGE 定数は、locationChange イベントオブジェクトの type プロパティの値を定義します。
Event
  MOUSE_LEAVE : String = "mouseLeave"
[静的] Event.MOUSE_LEAVE 定数は、mouseLeave イベントオブジェクトの type プロパティの値を定義します。
Event
  NETWORK_CHANGE : String = "networkChange"
[静的] Event.NETWORK_CHANGE 定数は、networkChange イベントオブジェクトの type プロパティの値を定義します。
Event
  OPEN : String = "open"
[静的] Event.OPEN 定数は、open イベントオブジェクトの type プロパティの値を定義します。
Event
  PASTE : String = "paste"
[静的] Event.PASTE 定数は、type プロパティ(paste イベントオブジェクト)の値を定義します。
Event
      PREPARING : String = "preparing"
[静的] Event.PREPARING 定数は、preparing イベントオブジェクトの type プロパティの値を定義します。
Event
  REMOVED : String = "removed"
[静的] Event.REMOVED 定数は、removed イベントオブジェクトの type プロパティの値を定義します。
Event
  REMOVED_FROM_STAGE : String = "removedFromStage"
[静的] Event.REMOVED_FROM_STAGE 定数は、removedFromStage イベントオブジェクトの type プロパティの値を定義します。
Event
  RENDER : String = "render"
[静的] Event.RENDER 定数は、render イベントオブジェクトの type プロパティの値を定義します。
Event
  RESIZE : String = "resize"
[静的] Event.RESIZE 定数は、resize イベントオブジェクトの type プロパティの値を定義します。
Event
  SCROLL : String = "scroll"
[静的] Event.SCROLL 定数は、scroll イベントオブジェクトの type プロパティの値を定義します。
Event
  SELECT : String = "select"
[静的] Event.SELECT 定数は、select イベントオブジェクトの type プロパティの値を定義します。
Event
  SELECT_ALL : String = "selectAll"
[静的] Event.SELECT_ALL 定数は、selectAll イベントオブジェクトの type プロパティの値を定義します。
Event
  SOUND_COMPLETE : String = "soundComplete"
[静的] Event.SOUND_COMPLETE 定数は、soundComplete イベントオブジェクトの type プロパティの値を定義します。
Event
  STANDARD_ERROR_CLOSE : String = "standardErrorClose"
[静的] Event.STANDARD_ERROR_CLOSE 定数は、standardErrorClose イベントオブジェクトの type プロパティの値を定義します。
Event
  STANDARD_INPUT_CLOSE : String = "standardInputClose"
[静的] Event.STANDARD_INPUT_CLOSE 定数は、standardInputClose イベントオブジェクトの type プロパティの値を定義します。
Event
  STANDARD_OUTPUT_CLOSE : String = "standardOutputClose"
[静的] Event.STANDARD_OUTPUT_CLOSE 定数は、standardOutputClose イベントオブジェクトの type プロパティの値を定義します。
Event
      SUSPEND : String = "suspend"
[静的] Event.SUSPEND 定数は、suspend イベントオブジェクトの type プロパティの値を定義します。
Event
  TAB_CHILDREN_CHANGE : String = "tabChildrenChange"
[静的] Event.TAB_CHILDREN_CHANGE 定数は、tabChildrenChange イベントオブジェクトの type プロパティの値を定義します。
Event
  TAB_ENABLED_CHANGE : String = "tabEnabledChange"
[静的] Event.TAB_ENABLED_CHANGE 定数は、tabEnabledChange イベントオブジェクトの type プロパティの値を定義します。
Event
  TAB_INDEX_CHANGE : String = "tabIndexChange"
[静的] Event.TAB_INDEX_CHANGE 定数は、tabIndexChange イベントオブジェクトの type プロパティの値を定義します。
Event
  TEXT_INTERACTION_MODE_CHANGE : String = "textInteractionModeChange"
[静的] Event.TEXT_INTERACTION_MODE_CHANGE 定数は、操作モードイベントオブジェクトの type プロパティの値を定義します。
Event
  TEXTURE_READY : String = "textureReady"
[静的] Event.TEXTURE_READY 定数は、textureReady イベントオブジェクトの type プロパティの値を定義します。
Event
  UNLOAD : String = "unload"
[静的] Event.UNLOAD 定数は、unload イベントオブジェクトの type プロパティの値を定義します。
Event
  USER_IDLE : String = "userIdle"
[静的] Event.USER_IDLE 定数は、userIdle イベントオブジェクトの type プロパティの値を定義します。
Event
  USER_PRESENT : String = "userPresent"
[静的] Event.USER_PRESENT 定数は、userPresent イベントオブジェクトの type プロパティの値を定義します。
Event
  VIDEO_FRAME : String = "videoFrame"
[静的] Event.VIDEO_FRAME 定数は、videoFrame イベントオブジェクトの type プロパティの値を定義します。
Event
  WORKER_STATE : String = "workerState"
[静的] Event.WORKER_STATE 定数は、workerState イベントオブジェクトの type プロパティの値を定義します。
Event
プロパティの詳細

bubbles

プロパティ
bubbles:Boolean  [読み取り専用]

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

イベントがバブリングイベントかどうかを示します。イベントがバブル可能な場合、この値は true です。バブル不可能な場合は、false です。

イベントが発生すると、イベントフローの 3 つの段階に進みます。表示リストの一番上の階層からターゲットノードの直前までのキャプチャ段階、ターゲットノードに対応するターゲット段階、およびターゲットノードの次のノードから表示リスト階層に戻るまでのバブリング段階があります。

activate イベントや unload イベントなど一部のイベントにはバブリング段階がありません。バブリング段階のないイベントの bubbles プロパティの値は false です。



実装
    public function get bubbles():Boolean

cancelable

プロパティ 
cancelable:Boolean  [読み取り専用]

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

イベントに関連付けられた動作を回避できるかどうかを示します。動作がキャンセル可能な場合、この値は true です。キャンセル不可能な場合は、false です。



実装
    public function get cancelable():Boolean

関連する API エレメント

currentTarget

プロパティ 
currentTarget:Object  [読み取り専用]

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

イベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。例えば、ユーザーが「OK」をクリックした場合、currentTarget は、そのボタンまたは、そのイベントに対してイベントリスナーを登録している祖先の 1 つを含むノードになります。



実装
    public function get currentTarget():Object

eventPhase

プロパティ 
eventPhase:uint  [読み取り専用]

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

イベントフローの現在の段階です。このプロパティには、次の数値が含まれます。

  • キャプチャ段階(EventPhase.CAPTURING_PHASE
  • ターゲット段階(EventPhase.AT_TARGET
  • バブリング段階(EventPhase.BUBBLING_PHASE



実装
    public function get eventPhase():uint

target

プロパティ 
target:Object  [読み取り専用]

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

イベントターゲットです。このプロパティにはターゲットノードが含まれます。例えば、ユーザーが「OK」をクリックした場合、ターゲットノードはそのボタンを含む表示リストノードです。



実装
    public function get target():Object

type

プロパティ 
type:String  [読み取り専用]

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

イベントのタイプです。タイプでは大文字小文字が区別されます。



実装
    public function get type():String
コンストラクターの詳細

Event

()コンストラクター
public function Event(type:String, bubbles:Boolean = false, cancelable:Boolean = false)

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

イベントリスナーにパラメーターとして渡す Event オブジェクトを作成します。

パラメーター
type:StringEvent.type としてアクセス可能なイベントタイプです。
 
bubbles:Boolean (default = false) — Event オブジェクトがイベントフローのバブリング段階で処理されるかどうかを判断します。デフォルト値は false です。
 
cancelable:Boolean (default = false) — Event オブジェクトがキャンセル可能かどうかを判断します。デフォルト値は false です
メソッドの詳細

clone

()メソッド
public function clone():Event

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

Event サブクラスのインスタンスを複製します。

Event オブジェクトの元のインスタンスのコピーである、新しい Event オブジェクトを返します。通常、clone() を呼び出さないでください。イベントを再送出すると、つまり、ハンドラーから dispatchEvent(event) を呼び出すと(このハンドラーは event を処理しているハンドラー)、EventDispatcher クラスが自動的にこのメソッドを呼び出します。

新しい Event オブジェクトには、元のオブジェクトのすべてのプロパティが含まれます。

カスタム Event クラスを作成する場合は、カスタムクラスのプロパティが複製されるように、継承された Event.clone() メソッドをオーバーライドする必要があります。イベントサブクラスに追加するすべてのプロパティを設定しなかった場合、再送出されたイベントをリスナーが処理するときに、プロパティに正しい値が含まれません。

この例では、PingEventEvent のサブクラスであるため、独自のバージョンの clone() を実装します。

     class PingEvent extends Event {
         var URL:String;
         
     public override function clone():Event {
              return new PingEvent(type, bubbles, cancelable, URL);
        }
     }
     

戻り値
Event — 元のオブジェクトと同一の新しい Event オブジェクトです。

formatToString

()メソッド 
public function formatToString(className:String, ... arguments):String

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

カスタム ActionScript 3.0 Event クラスに toString() メソッドを実装するためのユーティリティ関数です。toString() メソッドをオーバーライドすることは、推奨されますが必須ではありません。

	 class PingEvent extends Event {
	  var URL:String;
	 
	 public override function toString():String { 
	  return formatToString("PingEvent", "type", "bubbles", "cancelable", "eventPhase", "URL"); 
	    }
	 }
	 

パラメーター

className:String — カスタム Event クラスの名前です。上の例では、className パラメーターは PingEvent です。
 
... arguments — Event クラスのプロパティとカスタム Event クラスに追加するプロパティです。上の例では、...arguments パラメーターに、typebubblescancelableeventPhase および URL が含まれます。

戻り値
String — カスタム Event クラスの名前と ...arguments パラメーターのストリング値です。

isDefaultPrevented

()メソッド 
public function isDefaultPrevented():Boolean

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

イベントで preventDefault() メソッドが呼び出されたかどうかを確認します。preventDefault() メソッドが呼び出された場合は true、それ以外の場合は false を返します。

戻り値
BooleanpreventDefault() が呼び出された場合は true、それ以外の場合は false を返します。

関連する API エレメント

preventDefault

()メソッド 
public function preventDefault():void

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

イベントのデフォルト動作をキャンセルできる場合に、その動作をキャンセルします。

多くのイベントには、デフォルトで実行される動作が関連付けられています。例えば、ユーザーがテキストフィールドに文字を入力した場合、デフォルト動作では文字がテキストフィールドに表示されます。TextEvent.TEXT_INPUT イベントのデフォルト動作はキャンセルできるので、preventDefault() メソッドを使用して文字を表示しないようにすることができます。

キャンセルできない動作の例としては、Event.REMOVED イベントに関連付けられているデフォルト動作があります。このイベントは、Flash Player が表示リストから表示オブジェクトを削除しようとすると生成されます。このデフォルト動作(要素の削除)はキャンセルできません。つまり、preventDefault() メソッドを呼び出してもこのデフォルト動作には効果がありません。

Event.cancelable プロパティを使用して、特定のイベントに関連付けられているデフォルト動作をキャンセルできるかどうかを確認できます。Event.cancelable の値が true の場合、preventDefault() を使用してイベントをキャンセルできます。それ以外の場合、preventDefault() の効果はありません。

関連する API エレメント

stopImmediatePropagation

()メソッド 
public function stopImmediatePropagation():void

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

イベントフローの現在のノードおよび後続するノードで、イベントリスナーが処理されないようにします。このメソッドはすぐに有効になり、現在のノードのイベントリスナーに影響します。これに対し、stopPropagation() メソッドは、現在のノードのすべてのイベントリスナーの処理が終了するまで有効になりません。

注意:このメソッドは、このイベントに関連付けられている動作をキャンセルしません。その機能については、preventDefault() を参照してください。

関連する API エレメント

stopPropagation

()メソッド 
public function stopPropagation():void

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

イベントフローの現在のノードに後続するノードで、イベントリスナーが処理されないようにします。このメソッドは、現在のノード(currentTarget)のイベントリスナーには影響しません。これに対し、stopImmediatePropagation() メソッドは、現在のノードとそれ以降のノードで、イベントリスナーが処理されないようにします。このメソッドを繰り返し呼び出しても影響はありません。このメソッドは、イベントフローの任意の段階で呼び出すことができます。

注意:このメソッドは、このイベントに関連付けられている動作をキャンセルしません。その機能については、preventDefault() を参照してください。

関連する API エレメント

toString

()メソッド 
public function toString():String

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

Event オブジェクトのすべてのプロパティを含むストリングを返します。ストリングは次の形式です。

[Event type=value bubbles=value cancelable=value]

戻り値
String — Event オブジェクトのすべてのプロパティを含むストリングです。
定数の詳細

ACTIVATE

定数
public static const ACTIVATE:String = "activate"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

ACTIVATE 定数は、type プロパティ(activate イベントオブジェクト)の値を定義します。

注意:このイベントには「キャプチャ段階」と「バブリング段階」はありません。したがって、ターゲットが表示リストにあるかないかに関わらず、潜在的なターゲットにはイベントリスナーを直接追加する必要があります。

AIR for TV デバイスでは、このイベントが自動的に送出されることはありません。手動での送出は可能です。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
targetactivate イベントに対するリスナーが登録された任意の DisplayObject インスタンスです。

関連する API エレメント

ADDED

定数 
public static const ADDED:String = "added"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

Event.ADDED 定数は、type プロパティ(added イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblestrue
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
target表示リストに追加される DisplayObejct インスタンスです。target は、必ずしもイベントリスナーを登録した表示リスト内のオブジェクトとは限りません。現在イベントを処理している表示リスト内のオブジェクトにアクセスするには、currentTarget プロパティを使用します。

関連する API エレメント

ADDED_TO_STAGE

定数 
public static const ADDED_TO_STAGE:String = "addedToStage"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9.0.28.0, Flash Lite 4

Event.ADDED_TO_STAGE 定数は、type プロパティ(addedToStage イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
target直接または DisplayObject インスタンスが含まれているサブツリーを追加することで、オンステージ表示リストに追加される DisplayObject インスタンスです。DisplayObject インスタンスが直接追加される場合、このイベントの前に added イベントが発生します。

関連する API エレメント

BROWSER_ZOOM_CHANGE

定数 
public static const BROWSER_ZOOM_CHANGE:String = "browserZoomChange"

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 15, AIR 15

Event.BROWSER_ZOOM_CHANGE 定数は、browserZoomChange イベントオブジェクトの type プロパティの値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
target Stage インスタンスです。

関連する API エレメント

CANCEL

定数 
public static const CANCEL:String = "cancel"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

Event.CANCEL 定数は、type プロパティ(cancel イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
target操作をキャンセルするオブジェクトへの参照です。

関連する API エレメント

CHANGE

定数 
public static const CHANGE:String = "change"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

Event.CHANGE 定数は、type プロパティ(change イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblestrue
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
target値が変更されたオブジェクトです。target は、必ずしもイベントリスナーを登録した表示リスト内のオブジェクトとは限りません。現在イベントを処理している表示リスト内のオブジェクトにアクセスするには、currentTarget プロパティを使用します。

関連する API エレメント

CHANNEL_MESSAGE

定数 
public static const CHANNEL_MESSAGE:String = "channelMessage"

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 11.4, AIR 3.4

Event.CHANNEL_MESSAGE 定数は、channelMessage イベントオブジェクトの type プロパティの値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
targetこのイベントを送出したオブジェクトです。

関連する API エレメント

CHANNEL_STATE

定数 
public static const CHANNEL_STATE:String = "channelState"

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 11.4, AIR 3.4

Event.CHANNEL_STATE 定数は、channelState イベントオブジェクトの type プロパティの値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
targetこのイベントを送出したオブジェクトです。

関連する API エレメント

CLEAR

定数 
public static const CLEAR:String = "clear"

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5, Flash Lite 4

Event.CLEAR 定数は、type プロパティ(clear イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
targetclear イベントに対するリスナーが登録された任意の InteractiveObject インスタンスです。

注意: TextField オブジェクトは、clearcopycutpaste、または selectAll イベントは送出しません。TextField オブジェクトのコンテキストメニューには「カット」、「コピー」、「ペースト」、「クリア」および「すべて選択」コマンドが常に含まれます。これらのコマンドを TextField オブジェクトのコンテキストメニューから削除することはできません。TextField オブジェクトでこれらのコマンドを選択(または相当するキーボード操作を実行)する際、clearcopycutpaste および selectAll 各イベントは生成されません。ただし、Flash テキストエンジン(FTE)を使用してビルドされたコンポーネントを含めて、InteractiveObject クラスを拡張している他のクラスは、キーボードショートカットやコンテキストメニューといったユーザーアクションへの応答としてこれらのイベントを送出します。

関連する API エレメント

CLOSE

定数 
public static const CLOSE:String = "close"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

Event.CLOSE 定数は、type プロパティ(close イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
target接続が閉じられたオブジェクトです。

関連する API エレメント

CLOSING

定数 
public static const CLOSING:String = "closing"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Lite 4

Event.CLOSING 定数は、type プロパティ(closing イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelabletrue。このイベントオブジェクトをキャンセルすると、閉じる操作がキャンセルされます。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
target接続が閉じられるオブジェクトです。

関連する API エレメント

COMPLETE

定数 
public static const COMPLETE:String = "complete"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

Event.COMPLETE 定数は、type プロパティ(complete イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
target読み込みが完了したネットワークオブジェクトです。

関連する API エレメント

CONNECT

定数 
public static const CONNECT:String = "connect"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

Event.CONNECT 定数は、type プロパティ(connect イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
targetネットワーク接続を確立した Socket オブジェクトまたは XMLSocket オブジェクトです。

関連する API エレメント

CONTEXT3D_CREATE

定数 
public static const CONTEXT3D_CREATE:String = "context3DCreate"

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 11, AIR 3

Event.CONTEXT3D_CREATE 定数は、context3Dcreate イベントオブジェクトの type プロパティの値を定義します。 このイベントは Stage3D オブジェクトでのみ発生します。このイベントは、Stage3D.requestContext3D の呼び出し、または Stage3D オブジェクトにバインドされた Context3D の リセット(OS によってトリガーされます)に応じて発生します。Stage3D.context3D プロパティを調べ、新規作成された Context3D オブジェクトを取得します。

関連する API エレメント

Stage3D

COPY

定数 
public static const COPY:String = "copy"

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5, Flash Lite 4

type プロパティ(copy イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
targetcopy イベントに対するリスナーが登録された任意の InteractiveObject インスタンスです。

注意: TextField オブジェクトは、clearcopycutpaste、または selectAll イベントは送出しません。TextField オブジェクトのコンテキストメニューには「カット」、「コピー」、「ペースト」、「クリア」および「すべて選択」コマンドが常に含まれます。これらのコマンドを TextField オブジェクトのコンテキストメニューから削除することはできません。TextField オブジェクトでこれらのコマンドを選択(または相当するキーボード操作を実行)する際、clearcopycutpaste および selectAll 各イベントは生成されません。ただし、Flash テキストエンジン(FTE)を使用してビルドされたコンポーネントを含めて、InteractiveObject クラスを拡張している他のクラスは、キーボードショートカットやコンテキストメニューといったユーザーアクションへの応答としてこれらのイベントを送出します。

関連する API エレメント

CUT

定数 
public static const CUT:String = "cut"

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5, Flash Lite 4

type プロパティ(cut イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
targetcut イベントに対するリスナーが登録された任意の InteractiveObject インスタンスです。

注意: TextField オブジェクトは、clearcopycutpaste、または selectAll イベントは送出しません。TextField オブジェクトのコンテキストメニューには「カット」、「コピー」、「ペースト」、「クリア」および「すべて選択」コマンドが常に含まれます。これらのコマンドを TextField オブジェクトのコンテキストメニューから削除することはできません。TextField オブジェクトでこれらのコマンドを選択(または相当するキーボード操作を実行)する際、clearcopycutpaste および selectAll 各イベントは生成されません。ただし、Flash テキストエンジン(FTE)を使用してビルドされたコンポーネントを含めて、InteractiveObject クラスを拡張している他のクラスは、キーボードショートカットやコンテキストメニューといったユーザーアクションへの応答としてこれらのイベントを送出します。

関連する API エレメント

DEACTIVATE

定数 
public static const DEACTIVATE:String = "deactivate"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

Event.DEACTIVATE 定数は、type プロパティ(deactivate イベントオブジェクト)の値を定義します。

注意:このイベントには「キャプチャ段階」と「バブリング段階」はありません。したがって、ターゲットが表示リストにあるかないかに関わらず、潜在的なターゲットにはイベントリスナーを直接追加する必要があります。

AIR for TV デバイスでは、このイベントが自動的に送出されることはありません。手動での送出は可能です。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
targetdeactivate イベントに対するリスナーが登録された任意の DisplayObject インスタンスです。

関連する API エレメント

DISPLAYING

定数 
public static const DISPLAYING:String = "displaying"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Lite 4

Event.DISPLAYING 定数は、type プロパティ(displaying イベントオブジェクト)の値を定義します。

注意:このイベントは "キャプチャ段階" を経由せず、ターゲットが表示リストにあるかどうかにかかわらず、ターゲットに直接送出されます。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
target表示されるオブジェクトです。

関連する API エレメント

ENTER_FRAME

定数 
public static const ENTER_FRAME:String = "enterFrame"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

Event.ENTER_FRAME 定数は、type プロパティ(enterFrame イベントオブジェクト)の値を定義します。

注意:このイベントには「キャプチャ段階」と「バブリング段階」はありません。したがって、ターゲットが表示リストにあるかないかに関わらず、潜在的なターゲットにはイベントリスナーを直接追加する必要があります。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
targetenterFrame イベントに対するリスナーが登録された任意の DisplayObject インスタンスです。

関連する API エレメント

EXIT_FRAME

定数 
public static const EXIT_FRAME:String = "exitFrame"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

Event.EXIT_FRAME 定数は、type プロパティ(exitFrame イベントオブジェクト)の値を定義します。

注意:このイベントには「キャプチャ段階」と「バブリング段階」はありません。したがって、ターゲットが表示リストにあるかないかに関わらず、潜在的なターゲットにはイベントリスナーを直接追加する必要があります。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
targetenterFrame イベントに対するリスナーが登録された任意の DisplayObject インスタンスです。

関連する API エレメント

EXITING

定数 
public static const EXITING:String = "exiting"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Lite 4

Event.EXITING 定数は、type プロパティ(exiting イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelabletrue。このイベントオブジェクトをキャンセルすると、終了操作がキャンセルされます。
currentTargetNativeApplication オブジェクトです。
targetNativeApplication オブジェクトです。

関連する API エレメント

FRAME_CONSTRUCTED

定数 
public static const FRAME_CONSTRUCTED:String = "frameConstructed"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

Event.FRAME_CONSTRUCTED 定数は、type プロパティ(frameConstructed イベントオブジェクト)の値を定義します。

注意:このイベントには「キャプチャ段階」と「バブリング段階」はありません。したがって、ターゲットが表示リストにあるかないかに関わらず、潜在的なターゲットにはイベントリスナーを直接追加する必要があります。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
targetframeConstructed イベントに対するリスナーが登録された任意の DisplayObject インスタンスです。

関連する API エレメント

FRAME_LABEL

定数 
public static const FRAME_LABEL:String = "frameLabel"

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 11.3, AIR 3.3

Event.FRAME_LABEL 定数は、frameLabel イベントオブジェクトの type プロパティの値を定義します。

注意:このイベントには「キャプチャ段階」と「バブリング段階」はありません。したがって、FrameLabel オブジェクトにイベントリスナーを直接追加する必要があります。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理している FrameLabel オブジェクトです。
targetframeLabel イベントに対するリスナーが登録された任意の FrameLabel インスタンスです。

関連する API エレメント

FULLSCREEN

定数 
public static const FULLSCREEN:String = "fullScreen"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

Event.FULL_SCREEN 定数は、type プロパティ(fullScreen イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
targetStage オブジェクトです。

関連する API エレメント

HTML_BOUNDS_CHANGE

定数 
public static const HTML_BOUNDS_CHANGE:String = "htmlBoundsChange"

ランタイムバージョン: AIR 1.0, Flash Lite 4

Event.HTML_BOUNDS_CHANGE 定数は、type プロパティ(htmlBoundsChange イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetHTMLLoader オブジェクトです。
targetHTMLLoader オブジェクトです。

関連する API エレメント

HTML_DOM_INITIALIZE

定数 
public static const HTML_DOM_INITIALIZE:String = "htmlDOMInitialize"

ランタイムバージョン: AIR 1.0, Flash Lite 4

Event.HTML_DOM_INITIALIZE 定数は、type プロパティ(htmlDOMInitialize イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetHTMLLoader オブジェクトです。
targetHTMLLoader オブジェクトです。

関連する API エレメント

HTML_RENDER

定数 
public static const HTML_RENDER:String = "htmlRender"

ランタイムバージョン: AIR 1.0, Flash Lite 4

Event.HTML_RENDER 定数は、type プロパティ(htmlRender イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetHTMLLoader オブジェクトです。
targetHTMLLoader オブジェクトです。

関連する API エレメント

ID3

定数 
public static const ID3:String = "id3"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

Event.ID3 定数は、type プロパティ(id3 イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
targetID3 データが現在使用可能な MP3 を読み込んでいる Sound オブジェクトです。target は、必ずしもイベントリスナーを登録した表示リスト内のオブジェクトとは限りません。現在イベントを処理している表示リスト内のオブジェクトにアクセスするには、currentTarget プロパティを使用します。

関連する API エレメント

INIT

定数 
public static const INIT:String = "init"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

Event.INIT 定数は、type プロパティ(init イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
target読み込む SWF ファイルに関連付けられた LoaderInfo オブジェクトです。

関連する API エレメント

LOCATION_CHANGE

定数 
public static const LOCATION_CHANGE:String = "locationChange"

ランタイムバージョン: AIR 1.0, Flash Lite 4

Event.LOCATION_CHANGE 定数は、type プロパティ(locationChange イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetHTMLLoader オブジェクトです。
targetHTMLLoader オブジェクトです。

関連する API エレメント

MOUSE_LEAVE

定数 
public static const MOUSE_LEAVE:String = "mouseLeave"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

Event.MOUSE_LEAVE 定数は、type プロパティ(mouseLeave イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
targetStage オブジェクトです。target は、必ずしもイベントリスナーを登録した表示リスト内のオブジェクトとは限りません。現在イベントを処理している表示リスト内のオブジェクトにアクセスするには、currentTarget プロパティを使用します。

関連する API エレメント

NETWORK_CHANGE

定数 
public static const NETWORK_CHANGE:String = "networkChange"

ランタイムバージョン: AIR 1.0, Flash Lite 4

Event.NETWORK_CHANGE 定数は、type プロパティ(networkChange イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
targetNativeApplication オブジェクトです。

関連する API エレメント

OPEN

定数 
public static const OPEN:String = "open"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

Event.OPEN 定数は、type プロパティ(open イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
target接続をオープンしたネットワークオブジェクトです。

関連する API エレメント

PASTE

定数 
public static const PASTE:String = "paste"

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5, Flash Lite 4

Event.PASTE 定数は、type プロパティ(paste イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblestrue(AIR ランタイムでは false。)
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
targetpaste イベントに対するリスナーが登録された任意の InteractiveObject インスタンスです。

注意: TextField オブジェクトは、clearcopycutpaste、または selectAll イベントは送出しません。TextField オブジェクトのコンテキストメニューには「カット」、「コピー」、「ペースト」、「クリア」および「すべて選択」コマンドが常に含まれます。これらのコマンドを TextField オブジェクトのコンテキストメニューから削除することはできません。TextField オブジェクトでこれらのコマンドを選択(または相当するキーボード操作を実行)する際、clearcopycutpaste および selectAll 各イベントは生成されません。ただし、Flash テキストエンジン(FTE)を使用してビルドされたコンポーネントを含めて、InteractiveObject クラスを拡張している他のクラスは、キーボードショートカットやコンテキストメニューといったユーザーアクションへの応答としてこれらのイベントを送出します。

関連する API エレメント

    

PREPARING

定数 
public static const PREPARING:String = "preparing"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 2.6

Event.PREPARING 定数は、preparing イベントオブジェクトの type プロパティの値を定義します。

注意:このイベントは "キャプチャ段階" を経由せず、ターゲットが表示リストにあるかどうかにかかわらず、ターゲットに直接送出されます。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse
currentTargetこのイベントを送出したオブジェクトです。
targetこのイベントを送出したオブジェクトです。

関連する API エレメント

REMOVED

定数 
public static const REMOVED:String = "removed"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

Event.REMOVED 定数は、type プロパティ(removed イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblestrue
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
target表示リストから削除される DisplayObejct インスタンスです。target は、必ずしもイベントリスナーを登録した表示リスト内のオブジェクトとは限りません。現在イベントを処理している表示リスト内のオブジェクトにアクセスするには、currentTarget プロパティを使用します。

関連する API エレメント

REMOVED_FROM_STAGE

定数 
public static const REMOVED_FROM_STAGE:String = "removedFromStage"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9.0.28.0, Flash Lite 4

Event.REMOVED_FROM_STAGE 定数は、type プロパティ(removedFromStage イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
target直接または DisplayObject インスタンスが含まれているサブツリーを削除することで、オンステージ表示リストから削除される DisplayObject インスタンスです。DisplayObject インスタンスが直接削除される場合、このイベントの前に removed イベントが発生します。

関連する API エレメント

RENDER

定数 
public static const RENDER:String = "render"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

Event.RENDER 定数は、type プロパティ(render イベントオブジェクト)の値を定義します。

注意:このイベントには「キャプチャ段階」と「バブリング段階」はありません。したがって、ターゲットが表示リストにあるかないかに関わらず、潜在的なターゲットにはイベントリスナーを直接追加する必要があります。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse。デフォルトの動作をキャンセルすることはできません。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
targetrender イベントに対するリスナーが登録された任意の DisplayObject インスタンスです。

関連する API エレメント

RESIZE

定数 
public static const RESIZE:String = "resize"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

Event.RESIZE 定数は、type プロパティ(resize イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
targetStage オブジェクトです。

関連する API エレメント

SCROLL

定数 
public static const SCROLL:String = "scroll"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

Event.SCROLL 定数は、type プロパティ(scroll イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
targetスクロールされた TextField オブジェクトです。target プロパティは、必ずしもイベントリスナーを登録した表示リスト内のオブジェクトとは限りません。現在イベントを処理している表示リスト内のオブジェクトにアクセスするには、currentTarget プロパティを使用します。

関連する API エレメント

SELECT

定数 
public static const SELECT:String = "select"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

Event.SELECT 定数は、type プロパティ(select イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
targetアイテムが選択されたオブジェクトです。

関連する API エレメント

SELECT_ALL

定数 
public static const SELECT_ALL:String = "selectAll"

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5, Flash Lite 4

Event.SELECT_ALL 定数は、type プロパティ(selectAll イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
targetselectAll イベントに対するリスナーが登録された任意の InteractiveObject インスタンスです。

注意: TextField オブジェクトは、clearcopycutpaste、または selectAll イベントは送出しません。TextField オブジェクトのコンテキストメニューには「カット」、「コピー」、「ペースト」、「クリア」および「すべて選択」コマンドが常に含まれます。これらのコマンドを TextField オブジェクトのコンテキストメニューから削除することはできません。TextField オブジェクトでこれらのコマンドを選択(または相当するキーボード操作を実行)する際、clearcopycutpaste および selectAll 各イベントは生成されません。ただし、Flash テキストエンジン(FTE)を使用してビルドされたコンポーネントを含めて、InteractiveObject クラスを拡張している他のクラスは、キーボードショートカットやコンテキストメニューといったユーザーアクションへの応答としてこれらのイベントを送出します。

関連する API エレメント

SOUND_COMPLETE

定数 
public static const SOUND_COMPLETE:String = "soundComplete"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

Event.SOUND_COMPLETE 定数は、type プロパティ(soundComplete イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
targetサウンドの再生が終了した SoundChannel オブジェクトです。

関連する API エレメント

STANDARD_ERROR_CLOSE

定数 
public static const STANDARD_ERROR_CLOSE:String = "standardErrorClose"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 2, Flash Lite 4

Event.STANDARD_ERROR_CLOSE 定数は、standardErrorClose イベントオブジェクトの type プロパティの値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
targetNativeProcess プロジェクトです。

STANDARD_INPUT_CLOSE

定数 
public static const STANDARD_INPUT_CLOSE:String = "standardInputClose"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 2, Flash Lite 4

Event.STANDARD_INPUT_CLOSE 定数は、standardInputClose イベントオブジェクトの type プロパティの値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
targetNativeProcess プロジェクトです。

STANDARD_OUTPUT_CLOSE

定数 
public static const STANDARD_OUTPUT_CLOSE:String = "standardOutputClose"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 2, Flash Lite 4

Event.STANDARD_OUTPUT_CLOSE 定数は、standardOutputClose イベントオブジェクトの type プロパティの値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
targetNativeProcess プロジェクトです。

    

SUSPEND

定数 
public static const SUSPEND:String = "suspend"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 3.3

Event.SUSPEND 定数は、suspend イベントオブジェクトの type プロパティの値を定義します。このイベントは AIR iOS でのみ送出されます。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetNativeApplication オブジェクトです。
targetNativeApplication オブジェクトです。

関連する API エレメント

TAB_CHILDREN_CHANGE

定数 
public static const TAB_CHILDREN_CHANGE:String = "tabChildrenChange"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

Event.TAB_CHILDREN_CHANGE 定数は、type プロパティ(tabChildrenChange イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblestrue
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
targettabChildren フラグが変更されたオブジェクトです。target は、必ずしもイベントリスナーを登録した表示リスト内のオブジェクトとは限りません。現在イベントを処理している表示リスト内のオブジェクトにアクセスするには、currentTarget プロパティを使用します。

関連する API エレメント

TAB_ENABLED_CHANGE

定数 
public static const TAB_ENABLED_CHANGE:String = "tabEnabledChange"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

Event.TAB_ENABLED_CHANGE 定数は、type プロパティ(tabEnabledChange イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblestrue
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
targettabEnabled フラグが変更された InteractiveObject です。target は、必ずしもイベントリスナーを登録した表示リスト内のオブジェクトとは限りません。現在イベントを処理している表示リスト内のオブジェクトにアクセスするには、currentTarget プロパティを使用します。

関連する API エレメント

TAB_INDEX_CHANGE

定数 
public static const TAB_INDEX_CHANGE:String = "tabIndexChange"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

Event.TAB_INDEX_CHANGE 定数は、type プロパティ(tabIndexChange イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblestrue
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
targettabIndex が変更されたオブジェクトです。target は、必ずしもイベントリスナーを登録した表示リスト内のオブジェクトとは限りません。現在イベントを処理している表示リスト内のオブジェクトにアクセスするには、currentTarget プロパティを使用します。

関連する API エレメント

TEXT_INTERACTION_MODE_CHANGE

定数 
public static const TEXT_INTERACTION_MODE_CHANGE:String = "textInteractionModeChange"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 11, Flash Lite 4

Event.TEXT_INTERACTION_MODE_CHANGE 定数は、interaction mode イベントオブジェクトの type プロパティの値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
target操作モードプロパティが変更された TextField オブジェクトです。例えば Android では、ユーザーはコンテキストメニューを使用して、操作モードを選択モードに切り替えることができます。target プロパティは、必ずしもイベントリスナーを登録した表示リスト内のオブジェクトとは限りません。現在イベントを処理している表示リスト内のオブジェクトにアクセスするには、currentTarget プロパティを使用します。

関連する API エレメント

TEXTURE_READY

定数 
public static const TEXTURE_READY:String = "textureReady"

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 11.4, AIR 3.4

Event.TEXTURE_READY 定数は、textureReady イベントオブジェクトの type プロパティの値を定義します。このイベントは、非同期アップロードの完了を通知するために、Texture オブジェクトおよび CubeTexture オブジェクトによって送出されます。非同期アップロードは、Texture または CubeTexture の uploadCompressedTextureFromByteArray() メソッドを使用して要求します。このイベントはバブリングを行わず、キャンセル可能でもありません。

関連する API エレメント

Texture.uploadCompressedTextureFromByteArray()
CubeTexture.uploadCompressedTextureFromByteArray()

UNLOAD

定数 
public static const UNLOAD:String = "unload"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0, Flash Player 9, Flash Lite 4

Event.UNLOAD 定数は、type プロパティ(unload イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
target解放または置き換える SWF ファイルに関連付けられた LoaderInfo オブジェクトです。

関連する API エレメント

USER_IDLE

定数 
public static const USER_IDLE:String = "userIdle"

ランタイムバージョン: AIR 1.0, Flash Lite 4

Event.USER_IDLE 定数は、type プロパティ(userIdle イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
targetNativeApplication オブジェクトです。

関連する API エレメント

USER_PRESENT

定数 
public static const USER_PRESENT:String = "userPresent"

ランタイムバージョン: AIR 1.0, Flash Lite 4

Event.USER_PRESENT 定数は、type プロパティ(userPresent イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
targetNativeApplication オブジェクトです。

関連する API エレメント

VIDEO_FRAME

定数 
public static const VIDEO_FRAME:String = "videoFrame"

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 11.4, AIR 3.4

Event.VIDEO_FRAME 定数は、videoFrame イベントオブジェクトの type プロパティの値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
targetこのイベントを送出した Camera オブジェクトです。

関連する API エレメント

WORKER_STATE

定数 
public static const WORKER_STATE:String = "workerState"

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 11.4, AIR 3.4

Event.WORKER_STATE 定数は、workerState イベントオブジェクトの type プロパティの値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
targetこのイベントを送出したオブジェクトです。

関連する API エレメント

EventExample.as

次の例では、EventExample クラスと Square カスタムクラスを使用して、イベントバブリングを管理する方法を示します。
package {
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.events.MouseEvent;

    public class EventExample extends Sprite {
        
        public function EventExample() {
            var square_0:Square = new Square(300, 0x336633);
            addChild(square_0);
            
            var square_1:Square = new Square(250, 0x669966);
            square_0.addChild(square_1);

            var square_2:Square = new Square(200, 0x66CC66);
            square_1.addChild(square_2);

            var square_3:Square = new Square(150, 0xAA0000);
            square_3.shouldBubble = false;
            square_2.addChild(square_3);

            var square_4:Square = new Square(100, 0x66FF66);
            square_3.addChild(square_4);

            var square_5:Square = new Square(50, 0xCC0000);
            square_5.shouldBubble = false;
            square_4.addChild(square_5);

            this.addEventListener(MouseEvent.CLICK, clickHandler);
        }
        
        private function clickHandler(e:Event):void {
            trace(">> stage: " + e.type + " event from " + e.target.name + " called on " + this.name);
            trace(">> --------------------------------------------");
        }
    }
}

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

class Square extends Sprite {
    private var sideLen:int;
    private var color:Number;
    public var shouldBubble:Boolean = true;

    public function Square(sideLen:int, color:Number) {
        this.sideLen = sideLen;
        this.color = color;
        init();
        draw();
    }
        
    private function init():void {
        buttonMode = true;
        this.addEventListener(MouseEvent.CLICK, firstClickHandler);
        this.addEventListener(MouseEvent.CLICK, secondClickHandler);
        this.addEventListener(MouseEvent.CLICK, thirdClickHandler);
    }
        
    private function draw():void {
        this.graphics.beginFill(color);
        this.graphics.drawRect(0, 0, sideLen, sideLen);
    }
        
    private function firstClickHandler(e:Event):void {
        trace(">> 1e: " + e.type + " event from " + e.target.name + " called on " + this.name);
        if(!shouldBubble) {
            e.stopPropagation();
        }
    }

    private function secondClickHandler(e:Event):void {
        trace(">> 2e: " + e.type + " event from " + e.target.name + " called on " + this.name);
        if(!shouldBubble) {
            e.stopImmediatePropagation();
            trace(">> --------------------------------------------");
        }
    }

    private function thirdClickHandler(e:Event):void {
        trace(">> 3e: " + e.type + " event from " + e.target.name + " called on " + this.name);
    }
}
EventExample2.as

次の例では、ADDED イベントと ADDED_TO_STAGE イベントの相違、および REMOVED イベントと REMOVED_FROM_STAGE イベントの相違を示すインタラクティブなデモンストレーションを作成します。スプラインをクリックすると、そのスプラインと、その中にネストされているものがすべてステージから削除されます。例えば、最も大きなスプラインをクリックすると、1つの REMOVED イベントと 3 つの REMOVED_FROM_STAGE イベントが発生します。
 package {
    import flash.display.Sprite;
    import flash.events.*;

    public class EventExample2 extends Sprite {
        public function EventExample2():void {
            var parentSprite:Sprite = createSprite("parentSprite",200);
            var childSprite:Sprite = createSprite("childSprite",100);
            var childOfChildSprite:Sprite = createSprite("childOfChildSprite",50);
            
            trace(":: Adding to Stage ::");
            this.addChild(parentSprite);
            trace(":: Adding to Stage ::");
            parentSprite.addChild(childSprite);
            trace(":: Adding to Stage ::");
            childSprite.addChild(childOfChildSprite);
        }
        private function createSprite(name:String,size:uint):Sprite {
            trace(":: Creating Sprite ::");
            var newSprite:Sprite = new Sprite();
            newSprite.name = name;
            newSprite.graphics.beginFill(0xFFFFFF * Math.random(),1);
            newSprite.graphics.drawRect(0,0,size,size);
            newSprite.graphics.endFill();
            newSprite.addEventListener(Event.ADDED, spriteAdded);
            newSprite.addEventListener(Event.ADDED_TO_STAGE, spriteAddedToStage);
            newSprite.addEventListener(Event.REMOVED, spriteRemoved);
            newSprite.addEventListener(Event.REMOVED_FROM_STAGE, spriteRemovedFromStage);
            newSprite.addEventListener(MouseEvent.CLICK, remove);
            return newSprite;
        }
        private function remove(event:Event) {
            if(event.target == event.currentTarget) {
                trace(":: Removing Clicked Sprite ::");
                var target:Sprite = Sprite(event.target);
                target.parent.removeChild(target);
            }
        }
        private function spriteRemovedFromStage(event:Event):void {
            trace("REMOVED_FROM_STAGE: " + event.target.name + " : " + event.currentTarget.name);
        }
        private function spriteRemoved(event:Event):void {
            trace("REMOVED: " + event.target.name + " from " + event.currentTarget.name);
        }
        private function spriteAddedToStage(event:Event):void {
            trace("ADDED_TO_STAGE: " + event.target.name + " : " + event.currentTarget.name);
        }
        private function spriteAdded(event:Event):void {
            trace("ADDED: " + event.target.name + " within " + event.currentTarget.name);
        }
    }
}




[ X ]英語で表示される理由
ActionScript 3.0 リファレンスガイドのコンテンツが英語で表示されます。

ActionScript 3.0 リファレンスガイドのすべての部分がすべての言語に翻訳されているわけではありません。言語エレメントが翻訳されていない場合、そのエレメントは英語で表示されます。例えば、ga.controls.HelpBox クラスはどの言語にも訳されていません。このため、リファレンスガイドの日本語バージョンでは、ga.controls.HelpBox クラスは英語で表示されます。