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

TouchEvent  - 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 TouchEvent
継承TouchEvent Inheritance Event Inheritance Object

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

TouchEvent クラスを使用すると、ユーザーの接触(タッチスクリーンに指で触れるなど)を検出したデバイス上で、イベントを処理できます。

タッチスクリーン搭載の携帯電話またはタブレットなどのデバイスを操作する場合、ユーザーは通常、指やポインティングデバイスで画面に触れます。TouchEvent クラスを使用すると、基本的なタッチイベント(1 本の指でタップするなど)に応答するアプリケーションを開発できます。このクラスで定義されたイベントタイプを使用して、イベントリスナーを作成します。複数の接触位置を利用したユーザー操作(タッチスクリーン上で複数の指を同時に動かすなど)では、関連する GestureEvent クラス、PressAndTapGestureEvent および TransformGestureEvent クラスが使用されます。また、これらのクラスのプロパティとメソッドを使用して、ユーザーがデバイスに接触すると応答するイベントハンドラーを作成します。

Multitouch クラスを使用して、現在の環境でタッチ操作がサポートされているかどうかを確認します。サポートされている場合は、タッチ操作のサポートを管理します。

注意:表示リスト上でオブジェクトがネストされている場合、タッチイベントは、表示リストに表示されているネストされたオブジェクトの中で、最下層のオブジェクトを対象にします。このオブジェクトはターゲットノードと呼ばれます。ターゲットノードの祖先(表示リストにターゲットノードを含むオブジェクト)がタッチイベントの通知を受け取るようにするには、祖先ノードで EventDispatcher.addEventListener() を使用する際、検出する特定のタッチイベントを type パラメーターに設定します。

AIR 3 以降では、サポートされている Android デバイスのうち、アクティブなスタイラスを持つデバイスで近接イベントを監視することができます。このようなデバイスでは、proximityMove および touchMove イベントオブジェクトは、前回の移動イベント以降、取得されたパスおよび圧力サンプルを含むバイト配列を提供します。これらのサンプルを使用して、タッチイベント間のスタイラスのパスを構築できます(ただし、表示リストを使った、スタイラス入力操作のヒットテストは、パスセグメントの末尾でのみ行われます)。

例を表示

関連する API エレメント



パブリックプロパティ
 プロパティ定義元
  altKey : Boolean
Alt キーがアクティブになっているか(true)非アクティブになっているか(false)を示します。
TouchEvent
 Inheritedbubbles : Boolean
[読み取り専用] イベントがバブリングイベントかどうかを示します。
Event
 Inheritedcancelable : Boolean
[読み取り専用] イベントに関連付けられた動作を回避できるかどうかを示します。
Event
  commandKey : Boolean
command キーがアクティブになっているかどうかを示します(Macintosh のみ)。
TouchEvent
 Inheritedconstructor : Object
指定されたオブジェクトインスタンスのクラスオブジェクトまたはコンストラクター関数への参照です。
Object
  controlKey : Boolean
Mac で Control キーがアクティブになっているか、および Windows や Linux で Ctrl キーがアクティブになっているかどうかを示します。
TouchEvent
  ctrlKey : Boolean
Windows または Linux で、Ctrl キーがアクティブ(true)か非アクティブ(false)かを示します。
TouchEvent
 InheritedcurrentTarget : Object
[読み取り専用] イベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
Event
 InheritedeventPhase : uint
[読み取り専用] イベントフローの現在の段階です。
Event
  isPrimaryTouchPoint : Boolean
最初の接触位置がマウスイベントにマップされているかどうかを示します。
TouchEvent
  isRelatedObjectInaccessible : Boolean
true の場合、relatedObject プロパティは、セキュリティサンドボックスに関連する理由により null に設定されます。
TouchEvent
      isTouchPointCanceled : Boolean
オペレーティングシステムによりこのタッチ入力シーケンスがキャンセルされたことを報告します。
TouchEvent
  localX : Number
スプライトを基準とするイベント発生位置の水平座標です。
TouchEvent
  localY : Number
スプライトを基準とするイベント発生位置の垂直座標です。
TouchEvent
  pressure : Number
0.0 ~1.0 の値で、デバイスに対する接触強度を示します。
TouchEvent
  relatedObject : InteractiveObject
イベントに関連する表示リストオブジェクトへの参照です。
TouchEvent
  shiftKey : Boolean
Shift キーがアクティブになっているか(true)非アクティブになっているか(false)を示します。
TouchEvent
  sizeX : Number
接触領域の幅です。
TouchEvent
  sizeY : Number
接触領域の高さです。
TouchEvent
  stageX : Number
[読み取り専用] グローバルステージ座標を基準とするイベント発生位置の水平座標です。
TouchEvent
  stageY : Number
[読み取り専用] グローバルステージ座標を基準とするイベント発生位置の垂直座標です。
TouchEvent
 Inheritedtarget : Object
[読み取り専用] イベントターゲットです。
Event
      timestamp : Number
イベントの時間を相対的にミリ秒単位で報告します。
TouchEvent
      touchIntent : String
スタイラスの先端でタッチが行われたか消しゴム側で行われたかを報告します。
TouchEvent
  touchPointID : int
タッチポイントに割り当てられている一意の識別番号(int 型)です。
TouchEvent
 Inheritedtype : String
[読み取り専用] イベントのタイプです。
Event
パブリックメソッド
 メソッド定義元
  
TouchEvent(type:String, bubbles:Boolean = true, cancelable:Boolean = false, touchPointID:int = 0, isPrimaryTouchPoint:Boolean = false, localX:Number = NaN, localY:Number = NaN, sizeX:Number = NaN, sizeY:Number = NaN, pressure:Number = NaN, relatedObject:InteractiveObject = null, ctrlKey:Boolean = false, altKey:Boolean = false, shiftKey:Boolean = false, commandKey:Boolean = false, controlKey:Boolean = false, timestamp:Number = NaN, touchIntent:String, samples:ByteArray = null, isTouchPointCanceled:Boolean = false)
タッチイベントに関する情報を含むイベントオブジェクトを作成します。
TouchEvent
  
[オーバーライド] TouchEvent オブジェクトのコピーを作成して、各プロパティの値を元のプロパティの値と一致するように設定します。
TouchEvent
 Inherited
formatToString(className:String, ... arguments):String
カスタム ActionScript 3.0 Event クラスに toString() メソッドを実装するためのユーティリティ関数です。
Event
  
    getSamples(buffer:ByteArray, append:Boolean = false):uint
マルチポイントタッチイベントで、高周波数データポイントを使い、指定された ByteArray オブジェクトを更新します。
TouchEvent
 Inherited
オブジェクトに指定されたプロパティが定義されているかどうかを示します。
Object
 Inherited
イベントで preventDefault() メソッドが呼び出されたかどうかを確認します。
Event
 Inherited
Object クラスのインスタンスが、パラメーターとして指定されたオブジェクトのプロトタイプチェーン内にあるかどうかを示します。
Object
  
指定されたインデックスのハードウェアボタンが押されたことを報告します。
TouchEvent
 Inherited
イベントのデフォルト動作をキャンセルできる場合に、その動作をキャンセルします。
Event
 Inherited
指定されたプロパティが存在し、列挙できるかどうかを示します。
Object
 Inherited
ループ処理に対するダイナミックプロパティの可用性を設定します。
Object
 Inherited
イベントフローの現在のノードおよび後続するノードで、イベントリスナーが処理されないようにします。
Event
 Inherited
イベントフローの現在のノードに後続するノードで、イベントリスナーが処理されないようにします。
Event
 Inherited
ロケール固有の規則に従って書式設定された、このオブジェクトのストリング表現を返します。
Object
  
[オーバーライド] TouchEvent オブジェクトのすべてのプロパティを含むストリングを返します。
TouchEvent
  
表示リストが変更されている場合、このイベントの処理が終了した後にレンダリングするよう Flash Player または Adobe AIR に指示します。
TouchEvent
 Inherited
指定されたオブジェクトのプリミティブな値を返します。
Object
パブリック定数
 定数定義元
      PROXIMITY_BEGIN : String = "proximityBegin"
[静的] PROXIMITY_BEGIN タッチイベントオブジェクトの type プロパティの値を定義します。
TouchEvent
      PROXIMITY_END : String = "proximityEnd"
[静的] PROXIMITY_END タッチイベントオブジェクトの type プロパティの値を定義します。
TouchEvent
      PROXIMITY_MOVE : String = "proximityMove"
[静的] PROXIMITY_MOVE タッチイベントオブジェクトの type プロパティの値を定義します。
TouchEvent
      PROXIMITY_OUT : String = "proximityOut"
[静的] PROXIMITY_OUT タッチイベントオブジェクトの type プロパティの値を定義します。
TouchEvent
      PROXIMITY_OVER : String = "proximityOver"
[静的] PROXIMITY_OVER タッチイベントオブジェクトの type プロパティの値を定義します。
TouchEvent
      PROXIMITY_ROLL_OUT : String = "proximityRollOut"
[静的] PROXIMITY_ROLL_OUT タッチイベントオブジェクトの type プロパティの値を定義します。
TouchEvent
      PROXIMITY_ROLL_OVER : String = "proximityRollOver"
[静的] PROXIMITY_ROLL_OVER タッチイベントオブジェクトの type プロパティの値を定義します。
TouchEvent
  TOUCH_BEGIN : String = "touchBegin"
[静的] TOUCH_BEGIN タッチイベントオブジェクトの type プロパティ値を定義します。
TouchEvent
  TOUCH_END : String = "touchEnd"
[静的] TOUCH_END タッチイベントオブジェクトの type プロパティ値を定義します。
TouchEvent
  TOUCH_MOVE : String = "touchMove"
[静的] TOUCH_MOVE タッチイベントオブジェクトの type プロパティ値を定義します。
TouchEvent
  TOUCH_OUT : String = "touchOut"
[静的] TOUCH_OUT タッチイベントオブジェクトの type プロパティ値を定義します。
TouchEvent
  TOUCH_OVER : String = "touchOver"
[静的] TOUCH_OVER タッチイベントオブジェクトの type プロパティ値を定義します。
TouchEvent
  TOUCH_ROLL_OUT : String = "touchRollOut"
[静的] TOUCH_ROLL_OUT タッチイベントオブジェクトの type プロパティ値を定義します。
TouchEvent
  TOUCH_ROLL_OVER : String = "touchRollOver"
[静的] TOUCH_ROLL_OVER タッチイベントオブジェクトの type プロパティ値を定義します。
TouchEvent
  TOUCH_TAP : String = "touchTap"
[静的] TOUCH_TAP タッチイベントオブジェクトの type プロパティ値を定義します。
TouchEvent
プロパティの詳細

altKey

プロパティ
altKey:Boolean

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

Alt キーがアクティブになっているか(true)非アクティブになっているか(false)を示します。Windows および Linux のオペレーティングシステムでのみサポートされます。



実装
    public function get altKey():Boolean
    public function set altKey(value:Boolean):void

commandKey

プロパティ 
commandKey:Boolean

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

command キーがアクティブになっているかどうかを示します(Macintosh のみ)。

Mac OS では、commandKey プロパティの値は ctrlKey プロパティの値と同じです。このプロパティは、Windows または Linux では常に false です。



実装
    public function get commandKey():Boolean
    public function set commandKey(value:Boolean):void

controlKey

プロパティ 
controlKey:Boolean

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

Mac で Control キーがアクティブになっているか、および Windows や Linux で Ctrl キーがアクティブになっているかどうかを示します。



実装
    public function get controlKey():Boolean
    public function set controlKey(value:Boolean):void

ctrlKey

プロパティ 
ctrlKey:Boolean

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

Windows または Linux で、Ctrl キーがアクティブ(true)か非アクティブ(false)かを示します。Macintosh では、Control キーと Command キーのいずれがアクティブになっているかどうかを示します。



実装
    public function get ctrlKey():Boolean
    public function set ctrlKey(value:Boolean):void

isPrimaryTouchPoint

プロパティ 
isPrimaryTouchPoint:Boolean

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

最初の接触位置がマウスイベントにマップされているかどうかを示します。



実装
    public function get isPrimaryTouchPoint():Boolean
    public function set isPrimaryTouchPoint(value:Boolean):void

関連する API エレメント

isRelatedObjectInaccessible

プロパティ 
isRelatedObjectInaccessible:Boolean

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10.1, AIR 2, 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 エレメント

    

isTouchPointCanceled

プロパティ 
isTouchPointCanceled:Boolean

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

オペレーティングシステムによりこのタッチ入力シーケンスがキャンセルされたことを報告します。

タッチイベントは様々な理由によりキャンセルされます。例えば、ペンスタイラスの使用中は手のひらによるタッチは拒否されます。isTouchPointCanceled は、touchEnd イベントでのみ true です。



実装
    public function get isTouchPointCanceled():Boolean
    public function set isTouchPointCanceled(value:Boolean):void

localX

プロパティ 
localX:Number

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

スプライトを基準とするイベント発生位置の水平座標です。



実装
    public function get localX():Number
    public function set localX(value:Number):void

localY

プロパティ 
localY:Number

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

スプライトを基準とするイベント発生位置の垂直座標です。



実装
    public function get localY():Number
    public function set localY(value:Number):void

pressure

プロパティ 
pressure:Number

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

0.01.0 の値で、デバイスに対する接触強度を示します。デバイスが接触圧の検出をサポートしていない場合、値は 1.0 です。



実装
    public function get pressure():Number
    public function set pressure(value:Number):void

relatedObject

プロパティ 
relatedObject:InteractiveObject

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

イベントに関連する表示リストオブジェクトへの参照です。例えば、touchOut イベントが発生した場合、relatedObject はポインティングデバイスが現在指している表示リストオブジェクトを表します。このプロパティは、touchOuttouchOvertouchRollOut および touchRollOver イベントに適用されます。

このプロパティの値は、関連オブジェクトがない場合、または関連オブジェクトはあるがアクセスできないセキュリティサンドボックスの中にある場合の 2 つの状況において、null になる可能性があります。isRelatedObjectInaccessible() プロパティを使用して、どの理由が適用されるかを判別します。



実装
    public function get relatedObject():InteractiveObject
    public function set relatedObject(value:InteractiveObject):void

関連する API エレメント

shiftKey

プロパティ 
shiftKey:Boolean

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

Shift キーがアクティブになっているか(true)非アクティブになっているか(false)を示します。



実装
    public function get shiftKey():Boolean
    public function set shiftKey(value:Boolean):void

sizeX

プロパティ 
sizeX:Number

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

接触領域の幅です。



実装
    public function get sizeX():Number
    public function set sizeX(value:Number):void

sizeY

プロパティ 
sizeY:Number

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

接触領域の高さです。



実装
    public function get sizeY():Number
    public function set sizeY(value:Number):void

stageX

プロパティ 
stageX:Number  [読み取り専用]

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

グローバルステージ座標を基準とするイベント発生位置の水平座標です。このプロパティは、localX プロパティが設定されている場合に計算されます。



実装
    public function get stageX():Number

stageY

プロパティ 
stageY:Number  [読み取り専用]

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

グローバルステージ座標を基準とするイベント発生位置の垂直座標です。このプロパティは、localY プロパティが設定されている場合に計算されます。



実装
    public function get stageY():Number
    

timestamp

プロパティ 
timestamp:Number

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

イベントの時間を相対的にミリ秒単位で報告します。

報告される時間は、アプリケーションが実行を開始した時間に対して相対的に表されます。サンプルバッファー内のポイントのシーケンスを返すイベントについては、このタイムスタンプはバッファーにある最後のサンプルの経過時間を表します。



実装
    public function get timestamp():Number
    public function set timestamp(value:Number):void

関連する API エレメント

    

touchIntent

プロパティ 
touchIntent:String

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

スタイラスの先端でタッチが行われたか消しゴム側で行われたかを報告します。

タッチイベントが指などのスタイラス以外の入力メソッドで生成された場合、または高周波数モーショントラッキングがサポートされていないスタイラスで生成された場合、このプロパティは値 TouchEventIntent.UNKNOWN を報告します。

TouchEventIntent クラスは、このプロパティに設定される可能性のある値の定数を次のように定義します。

  • TouchEventIntent.ERASER
  • TouchEventIntent.PEN
  • TouchEventIntent.UNKNOWN



実装
    public function get touchIntent():String
    public function set touchIntent(value:String):void

関連する API エレメント

touchPointID

プロパティ 
touchPointID:int

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

タッチポイントに割り当てられている一意の識別番号(int 型)です。



実装
    public function get touchPointID():int
    public function set touchPointID(value:int):void

例  ( この例の使用方法 )
次の例は、変数 touchMoveID を確立し、touchMove イベントに応答する前に、touchPointID の値が正しいことを確認します。この値が正しくないと、他のタッチ入力によってもイベントハンドラーがトリガーされます。移動段階と終了段階のリスナーはステージ上にあります。表示オブジェクト上にはありません。ユーザーがタッチポイントを表示オブジェクトの境界外に移動した場合に備えて、移動段階と終了段階はステージが監視します。
Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT; 

var mySprite:Sprite = new Sprite(); 
mySprite.graphics.beginFill(0x336699); 
mySprite.graphics.drawRect(0,0,40,40); 
addChild(mySprite); 

var myTextField:TextField = new TextField(); 
addChild(myTextField); 
myTextField.width = 200; 
myTextField.height = 20; 

var touchMoveID:int = 0; 
 
mySprite.addEventListener(TouchEvent.TOUCH_BEGIN, onTouchBegin); 
function onTouchBegin(event:TouchEvent) { 
    if(touchMoveID != 0) { 
        myTextField.text = "already moving. ignoring new touch";     
        return; 
    } 
    touchMoveID = event.touchPointID; 
 
    myTextField.text = "touch begin" + event.touchPointID; 
    stage.addEventListener(TouchEvent.TOUCH_MOVE, onTouchMove); 
    stage.addEventListener(TouchEvent.TOUCH_END, onTouchEnd); 
} 
function onTouchMove(event:TouchEvent) { 
    if(event.touchPointID != touchMoveID) { 
        myTextField.text = "ignoring unrelated touch"; 
        return; 
    } 
    mySprite.x = event.stageX; 
    mySprite.y = event.stageY; 
    myTextField.text = "touch move" + event.touchPointID; 
} 
function onTouchEnd(event:TouchEvent) { 
    if(event.touchPointID != touchMoveID) { 
        myTextField.text = "ignoring unrelated touch end"; 
        return; 
    } 
    touchMoveID = 0; 
    stage.removeEventListener(TouchEvent.TOUCH_MOVE, onTouchMove); 
    stage.removeEventListener(TouchEvent.TOUCH_END, onTouchEnd); 
    myTextField.text = "touch end" + event.touchPointID; 
}
コンストラクターの詳細

TouchEvent

()コンストラクター
public function TouchEvent(type:String, bubbles:Boolean = true, cancelable:Boolean = false, touchPointID:int = 0, isPrimaryTouchPoint:Boolean = false, localX:Number = NaN, localY:Number = NaN, sizeX:Number = NaN, sizeY:Number = NaN, pressure:Number = NaN, relatedObject:InteractiveObject = null, ctrlKey:Boolean = false, altKey:Boolean = false, shiftKey:Boolean = false, commandKey:Boolean = false, controlKey:Boolean = false, timestamp:Number = NaN, touchIntent:String, samples:ByteArray = null, isTouchPointCanceled:Boolean = false)

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

タッチイベントに関する情報を含むイベントオブジェクトを作成します。イベントリスナーには Event オブジェクトがパラメーターとして渡されます。

パラメーター
type:String — イベントのタイプです。有効な値は次のとおりです。TouchEvent.PROXIMITY_BEGINTouchEvent.PROXIMITY_ENDTouchEvent.PROXIMITY_MOVETouchEvent.PROXIMITY_OUTTouchEvent.PROXIMITY_OVERTouchEvent.PROXIMITY_ROLL_OUTTouchEvent.PROXIMITY_ROLL_OVERTouchEvent.TOUCH_BEGINTouchEvent.TOUCH_ENDTouchEvent.TOUCH_MOVETouchEvent.TOUCH_OUTTouchEvent.TOUCH_OVERTouchEvent.TOUCH_ROLL_OUTTouchEvent.TOUCH_ROLL_OVER および TouchEvent.TOUCH_TAP
 
bubbles:Boolean (default = true) — Event オブジェクトがイベントフローのバブリング段階で処理されるかどうかを判断します。
 
cancelable:Boolean (default = false) — Event オブジェクトがキャンセル可能かどうかを判断します。
 
touchPointID:int (default = 0) — タッチポイントに割り当てられている一意の識別番号(int 型)です。
 
isPrimaryTouchPoint:Boolean (default = false) — 最初の接触位置がマウスイベントにマップされているかどうかを示します。
 
localX:Number (default = NaN) — スプライトを基準とするイベント発生位置の水平座標です。
 
localY:Number (default = NaN) — スプライトを基準とするイベント発生位置の垂直座標です。
 
sizeX:Number (default = NaN) — 接触領域の幅です。
 
sizeY:Number (default = NaN) — 接触領域の高さです。
 
pressure:Number (default = NaN)0.01.0 の値で、デバイスに対する接触強度を示します。デバイスが接触圧の検出をサポートしていない場合、値は 1.0 です。
 
relatedObject:InteractiveObject (default = null) — イベントの影響を受ける補完的な InteractiveObject インスタンスです。例えば、touchOut イベントが発生した場合、relatedObject はポインティングデバイスが現在指している表示リストオブジェクトを表します。
 
ctrlKey:Boolean (default = false) — Windows または Linux では、Ctrl キーがアクティブになっているかどうかを示します。Macintosh では、Ctrl キーと Command キーのいずれがアクティブになっているかどうかを示します。
 
altKey:Boolean (default = false) — Alt キーがアクティブになっているかどうかを示します(Windows または Linux のみ)。
 
shiftKey:Boolean (default = false) — Shift キーがアクティブになっているかどうかを示します。
 
commandKey:Boolean (default = false) — (AIR のみ)Command キーがアクティブになっているかどうかを示します(Macintosh のみ)。このパラメーターは Adobe AIR 専用です。Flash Player コンテンツに対しては設定しないでください。
 
controlKey:Boolean (default = false) — (AIR のみ)Control キーまたは Ctrl キーがアクティブになっているかどうかを示します。このパラメーターは Adobe AIR 専用です。Flash Player コンテンツに対しては設定しないでください。
 
timestamp:Number (default = NaN) — (AIR のみ)アプリケーションの開始を基準としたイベントのタイムスタンプ(ミリ秒単位)。
 
touchIntent:String (default = NaN) — (AIR のみ)TouchEventIntent クラスからの値。
 
samples:ByteArray (default = null) — (AIR のみ)シーケンスで直前のタッチまたは近接イベント以降に記録された各中間サンプルの位置と圧力の測定値を含む ByteArray オブジェクト。
 
isTouchPointCanceled:Boolean (default = false) — (AIR のみ)拒否されたタッチタイプであるためタッチイベントがキャンセルされた場合は true
メソッドの詳細

clone

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

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

TouchEvent オブジェクトのコピーを作成して、各プロパティの値を元のプロパティの値と一致するように設定します。

戻り値
Event — 元のオブジェクトと同じプロパティ値を含む新しい TouchEvent オブジェクトです。

    getSamples

()メソッド 
public function getSamples(buffer:ByteArray, append:Boolean = false):uint

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

マルチポイントタッチイベントで、高周波数データポイントを使い、指定された ByteArray オブジェクトを更新します。

buffer パラメーターが参照する ByteArray オブジェクトは、このタッチイベントと直前のタッチイベントの間の中間データポイントの値で更新されます。サンプルごとに 3 つの浮動小数点値(x 座標、y 座標、圧力値)が追加されます。位置の値はステージの座標として報告されます。圧力は 0 ~ 1 の値として報告されます。サンプルは定期的に記録されます。正確な周波数は、デバイスのハードウェアとハードウェアのドライバによって異なります。典型的なサンプル周波数は約 133 Hz です。ただし、タッチイベントが正確な間隔で送出されることはありません。したがって、類似するイベントに対するバッファーに含まれるサンプルの数は異なります。バッファー内の最後のサンプルは、このタッチイベントオブジェクトの stageXstageY および pressure プロパティと同じです。

proximityMove および touchMove イベントに対して送出されたイベントオブジェクトには、サンプルバッファーが含まれています。

パラメーター

buffer:ByteArray — サンプルデータを受け取る ByteArray オブジェクト。
 
append:Boolean (default = false)true の場合、サンプルは、配列の現在の position プロパティの位置から始まる buffer バイト配列に追加されます。デフォルトの false の場合、バッファーオブジェクト内の既存のデータは、サンプルの追加前に削除されます。

戻り値
uint — バッファーに追加されたサンプル数の単位。各サンプルは 3 つの浮動小数点 Number から構成されます。

関連する API エレメント


例  ( この例の使用方法 )

次の例は、touchMove または proximityMove イベントからサンプルデータを取得する方法を示しています。
function touchMoveHandler( event:TouchEvent ):void
{
    if( (event.type == TouchEvent.TOUCH_MOVE ||
        event.type == TouchEvent.PROXIMITY_MOVE) &&
        event.touchEventIntent != TouchEventIntent.UNKNOWN )
    {
        var samples:ByteArray = new ByteArray();
        event.getSamples( samples, true );
        samples.position = 0;     // rewind to beginning of array before reading
        
        var xCoord:Number, yCoord:Number, pressure:Number;
        
        while( samples.bytesAvailable > 0 )
        {
            xCoord = samples.readFloat();
            yCoord = samples.readFloat();
            pressure = samples.readFloat();
            //do something with the sample data
        }
    }
}

次の例は、touchMove または proximityMove イベントからサンプルデータを取得する方法を示しています。この例では、サンプルは既存のバイト配列に追加されます。
var samples:ByteArray = new ByteArray();

function touchMoveHandler( event:TouchEvent ):void
{
    if( (event.type == TouchEvent.TOUCH_MOVE ||
        event.type == TouchEvent.PROXIMITY_MOVE) &&
        event.touchEventIntent != TouchEventIntent.UNKNOWN )
    {
        var sampleCount:uint = event.getSamples( samples, true );         
        var xCoord:Number, yCoord:Number, pressure:Number;
        
        for( var i:int; i < sampleCount; i++ )
        {
            xCoord = samples.readFloat();
            yCoord = samples.readFloat();
            pressure = samples.readFloat();
            //do something with the sample data
        }
    }
}

    isToolButtonDown

()メソッド 
public function isToolButtonDown(index:int):Boolean

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

指定されたインデックスのハードウェアボタンが押されたことを報告します。

パラメーター

index:int — スタイラスタイプの入力デバイスによりサポートされているボタンの 0 ベースのインデックス。

戻り値
Boolean

toString

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

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

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

[TouchEvent type=value bubbles=value cancelable=value ... ]

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

updateAfterEvent

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

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

表示リストが変更されている場合、このイベントの処理が終了した後にレンダリングするよう Flash Player または Adobe AIR に指示します。

定数の詳細
    

PROXIMITY_BEGIN

定数
public static const PROXIMITY_BEGIN:String = "proximityBegin"

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

PROXIMITY_BEGIN タッチイベントオブジェクトの type プロパティの値を定義します。

送出された TouchEvent オブジェクトには次のプロパティがあります。

プロパティ
altKeyAlt キーがアクティブになっている場合は true(Windows または Linux)。
bubblestrue
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
commandKeyMacintosh で Command キーがアクティブになっている場合は true、非アクティブになっている場合は false です。 Windows では常に false になります。
controlKeyCtrl キーまたは Control キーがアクティブになっている場合は true、非アクティブになっている場合は false です。
ctrlKeyWindows または Linux では Ctrl キーがアクティブになっている場合は、true です。Macintosh では Ctrl キーまたは Command キーがアクティブになっている場合は、true です。それ以外の場合は false です。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
eventPhaseイベントフローの現在の段階です。
isRelatedObjectInaccessibleセキュリティサンドボックスのルールによって、relatedObject プロパティが null に設定されている場合は true になります。
localXスプライトを基準とするイベント発生位置の水平座標です。
localYスプライトを基準とするイベント発生位置の垂直座標です。
pressure0.01.0 の値で、デバイスに対する接触強度を示します。デバイスが接触圧の検出をサポートしていない場合、値は 1.0 です。
relatedObjectイベントに関連する表示オブジェクトへの参照です。
shiftKeyShift キーがアクティブになっている場合は true、非アクティブになっている場合は false です。
sizeX接触領域の幅です。
sizeY接触領域の高さです。
stageXグローバルステージ座標を基準とするイベント発生位置の水平座標です。
stageYグローバルステージ座標を基準とするイベント発生位置の垂直座標です。
targetタッチデバイスの下にある InteractiveObject インスタンスです。target は、必ずしもイベントリスナーを登録した表示リスト内のオブジェクトとは限りません。現在イベントを処理している表示リスト内のオブジェクトにアクセスするには、currentTarget プロパティを使用します。
touchPointIDタッチポイントに割り当てられている一意の識別番号(int 型)です。
timestamp(AIR のみ)アプリケーションの開始を基準としたイベントのタイムスタンプ(ミリ秒単位)。
touchIntent(AIR のみ)TouchEventIntent クラスからの値。
isTouchPointCanceled(AIR のみ)デバイスのタッチ拒否ロジックのためタッチイベントがキャンセルされた場合は true

関連する API エレメント

    

PROXIMITY_END

定数 
public static const PROXIMITY_END:String = "proximityEnd"

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

PROXIMITY_END タッチイベントオブジェクトの type プロパティの値を定義します。

送出された TouchEvent オブジェクトには次のプロパティがあります。

プロパティ
altKeyAlt キーがアクティブになっている場合は true(Windows または Linux)。
bubblestrue
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
commandKeyMacintosh で Command キーがアクティブになっている場合は true、非アクティブになっている場合は false です。 Windows では常に false になります。
controlKeyCtrl キーまたは Control キーがアクティブになっている場合は true、非アクティブになっている場合は false です。
ctrlKeyWindows または Linux では Ctrl キーがアクティブになっている場合は、true です。Macintosh では Ctrl キーまたは Command キーがアクティブになっている場合は、true です。それ以外の場合は false です。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
eventPhaseイベントフローの現在の段階です。
isRelatedObjectInaccessibleセキュリティサンドボックスのルールによって、relatedObject プロパティが null に設定されている場合は true になります。
localXスプライトを基準とするイベント発生位置の水平座標です。
localYスプライトを基準とするイベント発生位置の垂直座標です。
pressure0.01.0 の値で、デバイスに対する接触強度を示します。デバイスが接触圧の検出をサポートしていない場合、値は 1.0 です。
relatedObjectイベントに関連する表示オブジェクトへの参照です。
shiftKeyShift キーがアクティブになっている場合は true、非アクティブになっている場合は false です。
sizeX接触領域の幅です。
sizeY接触領域の高さです。
stageXグローバルステージ座標を基準とするイベント発生位置の水平座標です。
stageYグローバルステージ座標を基準とするイベント発生位置の垂直座標です。
targetタッチデバイスの下にある InteractiveObject インスタンスです。target は、必ずしもイベントリスナーを登録した表示リスト内のオブジェクトとは限りません。現在イベントを処理している表示リスト内のオブジェクトにアクセスするには、currentTarget プロパティを使用します。
touchPointIDタッチポイントに割り当てられている一意の識別番号(int 型)です。
timestamp(AIR のみ)アプリケーションの開始を基準としたイベントのタイムスタンプ(ミリ秒単位)。
touchIntent(AIR のみ)TouchEventIntent クラスからの値。
isTouchPointCanceled(AIR のみ)デバイスのタッチ拒否ロジックのためタッチイベントがキャンセルされた場合は true

関連する API エレメント

    

PROXIMITY_MOVE

定数 
public static const PROXIMITY_MOVE:String = "proximityMove"

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

PROXIMITY_MOVE タッチイベントオブジェクトの type プロパティの値を定義します。

送出された TouchEvent オブジェクトには次のプロパティがあります。

プロパティ
altKeyAlt キーがアクティブになっている場合は true(Windows または Linux)。
bubblestrue
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
commandKeyMacintosh で Command キーがアクティブになっている場合は true、非アクティブになっている場合は false です。 Windows では常に false になります。
controlKeyCtrl キーまたは Control キーがアクティブになっている場合は true、非アクティブになっている場合は false です。
ctrlKeyWindows または Linux では Ctrl キーがアクティブになっている場合は、true です。Macintosh では Ctrl キーまたは Command キーがアクティブになっている場合は、true です。それ以外の場合は false です。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
eventPhaseイベントフローの現在の段階です。
isRelatedObjectInaccessibleセキュリティサンドボックスのルールによって、relatedObject プロパティが null に設定されている場合は true になります。
localXスプライトを基準とするイベント発生位置の水平座標です。
localYスプライトを基準とするイベント発生位置の垂直座標です。
pressure0.01.0 の値で、デバイスに対する接触強度を示します。デバイスが接触圧の検出をサポートしていない場合、値は 1.0 です。
relatedObjectイベントに関連する表示オブジェクトへの参照です。
shiftKeyShift キーがアクティブになっている場合は true、非アクティブになっている場合は false です。
sizeX接触領域の幅です。
sizeY接触領域の高さです。
stageXグローバルステージ座標を基準とするイベント発生位置の水平座標です。
stageYグローバルステージ座標を基準とするイベント発生位置の垂直座標です。
targetタッチデバイスの下にある InteractiveObject インスタンスです。target は、必ずしもイベントリスナーを登録した表示リスト内のオブジェクトとは限りません。現在イベントを処理している表示リスト内のオブジェクトにアクセスするには、currentTarget プロパティを使用します。
touchPointIDタッチポイントに割り当てられている一意の識別番号(int 型)です。
timestamp(AIR のみ)アプリケーションの開始を基準としたイベントのタイムスタンプ(ミリ秒単位)。
touchIntent(AIR のみ)TouchEventIntent クラスからの値。
isTouchPointCanceled(AIR のみ)デバイスのタッチ拒否ロジックのためタッチイベントがキャンセルされた場合は true

関連する API エレメント

    

PROXIMITY_OUT

定数 
public static const PROXIMITY_OUT:String = "proximityOut"

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

PROXIMITY_OUT タッチイベントオブジェクトの type プロパティの値を定義します。

送出された TouchEvent オブジェクトには次のプロパティがあります。

プロパティ
altKeyAlt キーがアクティブになっている場合は true(Windows または Linux)。
bubblestrue
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
commandKeyMacintosh で Command キーがアクティブになっている場合は true、非アクティブになっている場合は false です。 Windows では常に false になります。
controlKeyCtrl キーまたは Control キーがアクティブになっている場合は true、非アクティブになっている場合は false です。
ctrlKeyWindows または Linux では Ctrl キーがアクティブになっている場合は、true です。Macintosh では Ctrl キーまたは Command キーがアクティブになっている場合は、true です。それ以外の場合は false です。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
eventPhaseイベントフローの現在の段階です。
isRelatedObjectInaccessibleセキュリティサンドボックスのルールによって、relatedObject プロパティが null に設定されている場合は true になります。
localXスプライトを基準とするイベント発生位置の水平座標です。
localYスプライトを基準とするイベント発生位置の垂直座標です。
pressure0.01.0 の値で、デバイスに対する接触強度を示します。デバイスが接触圧の検出をサポートしていない場合、値は 1.0 です。
relatedObjectイベントに関連する表示オブジェクトへの参照です。
shiftKeyShift キーがアクティブになっている場合は true、非アクティブになっている場合は false です。
sizeX接触領域の幅です。
sizeY接触領域の高さです。
stageXグローバルステージ座標を基準とするイベント発生位置の水平座標です。
stageYグローバルステージ座標を基準とするイベント発生位置の垂直座標です。
targetタッチデバイスの下にある InteractiveObject インスタンスです。target は、必ずしもイベントリスナーを登録した表示リスト内のオブジェクトとは限りません。現在イベントを処理している表示リスト内のオブジェクトにアクセスするには、currentTarget プロパティを使用します。
touchPointIDタッチポイントに割り当てられている一意の識別番号(int 型)です。
timestamp(AIR のみ)アプリケーションの開始を基準としたイベントのタイムスタンプ(ミリ秒単位)。
touchIntent(AIR のみ)TouchEventIntent クラスからの値。
isTouchPointCanceled(AIR のみ)デバイスのタッチ拒否ロジックのためタッチイベントがキャンセルされた場合は true

関連する API エレメント

    

PROXIMITY_OVER

定数 
public static const PROXIMITY_OVER:String = "proximityOver"

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

PROXIMITY_OVER タッチイベントオブジェクトの type プロパティの値を定義します。

送出された TouchEvent オブジェクトには次のプロパティがあります。

プロパティ
altKeyAlt キーがアクティブになっている場合は true(Windows または Linux)。
bubblestrue
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
commandKeyMacintosh で Command キーがアクティブになっている場合は true、非アクティブになっている場合は false です。 Windows では常に false になります。
controlKeyCtrl キーまたは Control キーがアクティブになっている場合は true、非アクティブになっている場合は false です。
ctrlKeyWindows または Linux では Ctrl キーがアクティブになっている場合は、true です。Macintosh では Ctrl キーまたは Command キーがアクティブになっている場合は、true です。それ以外の場合は false です。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
eventPhaseイベントフローの現在の段階です。
isRelatedObjectInaccessibleセキュリティサンドボックスのルールによって、relatedObject プロパティが null に設定されている場合は true になります。
localXスプライトを基準とするイベント発生位置の水平座標です。
localYスプライトを基準とするイベント発生位置の垂直座標です。
pressure0.01.0 の値で、デバイスに対する接触強度を示します。デバイスが接触圧の検出をサポートしていない場合、値は 1.0 です。
relatedObjectイベントに関連する表示オブジェクトへの参照です。
shiftKeyShift キーがアクティブになっている場合は true、非アクティブになっている場合は false です。
sizeX接触領域の幅です。
sizeY接触領域の高さです。
stageXグローバルステージ座標を基準とするイベント発生位置の水平座標です。
stageYグローバルステージ座標を基準とするイベント発生位置の垂直座標です。
targetタッチデバイスの下にある InteractiveObject インスタンスです。target は、必ずしもイベントリスナーを登録した表示リスト内のオブジェクトとは限りません。現在イベントを処理している表示リスト内のオブジェクトにアクセスするには、currentTarget プロパティを使用します。
touchPointIDタッチポイントに割り当てられている一意の識別番号(int 型)です。
timestamp(AIR のみ)アプリケーションの開始を基準としたイベントのタイムスタンプ(ミリ秒単位)。
touchIntent(AIR のみ)TouchEventIntent クラスからの値。
isTouchPointCanceled(AIR のみ)デバイスのタッチ拒否ロジックのためタッチイベントがキャンセルされた場合は true

関連する API エレメント

    

PROXIMITY_ROLL_OUT

定数 
public static const PROXIMITY_ROLL_OUT:String = "proximityRollOut"

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

PROXIMITY_ROLL_OUT タッチイベントオブジェクトの type プロパティの値を定義します。

送出された TouchEvent オブジェクトには次のプロパティがあります。

プロパティ
altKeyAlt キーがアクティブになっている場合は true(Windows または Linux)。
bubblestrue
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
commandKeyMacintosh で Command キーがアクティブになっている場合は true、非アクティブになっている場合は false です。 Windows では常に false になります。
controlKeyCtrl キーまたは Control キーがアクティブになっている場合は true、非アクティブになっている場合は false です。
ctrlKeyWindows または Linux では Ctrl キーがアクティブになっている場合は、true です。Macintosh では Ctrl キーまたは Command キーがアクティブになっている場合は、true です。それ以外の場合は false です。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
eventPhaseイベントフローの現在の段階です。
isRelatedObjectInaccessibleセキュリティサンドボックスのルールによって、relatedObject プロパティが null に設定されている場合は true になります。
localXスプライトを基準とするイベント発生位置の水平座標です。
localYスプライトを基準とするイベント発生位置の垂直座標です。
pressure0.01.0 の値で、デバイスに対する接触強度を示します。デバイスが接触圧の検出をサポートしていない場合、値は 1.0 です。
relatedObjectイベントに関連する表示オブジェクトへの参照です。
shiftKeyShift キーがアクティブになっている場合は true、非アクティブになっている場合は false です。
sizeX接触領域の幅です。
sizeY接触領域の高さです。
stageXグローバルステージ座標を基準とするイベント発生位置の水平座標です。
stageYグローバルステージ座標を基準とするイベント発生位置の垂直座標です。
targetタッチデバイスの下にある InteractiveObject インスタンスです。target は、必ずしもイベントリスナーを登録した表示リスト内のオブジェクトとは限りません。現在イベントを処理している表示リスト内のオブジェクトにアクセスするには、currentTarget プロパティを使用します。
touchPointIDタッチポイントに割り当てられている一意の識別番号(int 型)です。
timestamp(AIR のみ)アプリケーションの開始を基準としたイベントのタイムスタンプ(ミリ秒単位)。
touchIntent(AIR のみ)TouchEventIntent クラスからの値。
isTouchPointCanceled(AIR のみ)デバイスのタッチ拒否ロジックのためタッチイベントがキャンセルされた場合は true

関連する API エレメント

    

PROXIMITY_ROLL_OVER

定数 
public static const PROXIMITY_ROLL_OVER:String = "proximityRollOver"

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

PROXIMITY_ROLL_OVER タッチイベントオブジェクトの type プロパティの値を定義します。

送出された TouchEvent オブジェクトには次のプロパティがあります。

プロパティ
altKeyAlt キーがアクティブになっている場合は true(Windows または Linux)。
bubblestrue
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
commandKeyMacintosh で Command キーがアクティブになっている場合は true、非アクティブになっている場合は false です。 Windows では常に false になります。
controlKeyCtrl キーまたは Control キーがアクティブになっている場合は true、非アクティブになっている場合は false です。
ctrlKeyWindows または Linux では Ctrl キーがアクティブになっている場合は、true です。Macintosh では Ctrl キーまたは Command キーがアクティブになっている場合は、true です。それ以外の場合は false です。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
eventPhaseイベントフローの現在の段階です。
isRelatedObjectInaccessibleセキュリティサンドボックスのルールによって、relatedObject プロパティが null に設定されている場合は true になります。
localXスプライトを基準とするイベント発生位置の水平座標です。
localYスプライトを基準とするイベント発生位置の垂直座標です。
pressure0.01.0 の値で、デバイスに対する接触強度を示します。デバイスが接触圧の検出をサポートしていない場合、値は 1.0 です。
relatedObjectイベントに関連する表示オブジェクトへの参照です。
shiftKeyShift キーがアクティブになっている場合は true、非アクティブになっている場合は false です。
sizeX接触領域の幅です。
sizeY接触領域の高さです。
stageXグローバルステージ座標を基準とするイベント発生位置の水平座標です。
stageYグローバルステージ座標を基準とするイベント発生位置の垂直座標です。
targetタッチデバイスの下にある InteractiveObject インスタンスです。target は、必ずしもイベントリスナーを登録した表示リスト内のオブジェクトとは限りません。現在イベントを処理している表示リスト内のオブジェクトにアクセスするには、currentTarget プロパティを使用します。
touchPointIDタッチポイントに割り当てられている一意の識別番号(int 型)です。
timestamp(AIR のみ)アプリケーションの開始を基準としたイベントのタイムスタンプ(ミリ秒単位)。
touchIntent(AIR のみ)TouchEventIntent クラスからの値。
isTouchPointCanceled(AIR のみ)デバイスのタッチ拒否ロジックのためタッチイベントがキャンセルされた場合は true

関連する API エレメント

TOUCH_BEGIN

定数 
public static const TOUCH_BEGIN:String = "touchBegin"

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

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

送出された TouchEvent オブジェクトには次のプロパティがあります。

プロパティ
altKeyAlt キーがアクティブになっている場合は true(Windows または Linux)。
bubblestrue
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
commandKeyMacintosh で Command キーがアクティブになっている場合は true、非アクティブになっている場合は false です。 Windows では常に false になります。
controlKeyCtrl キーまたは Control キーがアクティブになっている場合は true、非アクティブになっている場合は false です。
ctrlKeyWindows または Linux では Ctrl キーがアクティブになっている場合は、true です。Macintosh では Ctrl キーまたは Command キーがアクティブになっている場合は、true です。それ以外の場合は false です。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
eventPhaseイベントフローの現在の段階です。
isRelatedObjectInaccessibleセキュリティサンドボックスのルールによって、relatedObject プロパティが null に設定されている場合は true になります。
localXスプライトを基準とするイベント発生位置の水平座標です。
localYスプライトを基準とするイベント発生位置の垂直座標です。
pressure0.01.0 の値で、デバイスに対する接触強度を示します。デバイスが接触圧の検出をサポートしていない場合、値は 1.0 です。
relatedObjectイベントに関連する表示オブジェクトへの参照です。
shiftKeyShift キーがアクティブになっている場合は true、非アクティブになっている場合は false です。
sizeX接触領域の幅です。
sizeY接触領域の高さです。
stageXグローバルステージ座標を基準とするイベント発生位置の水平座標です。
stageYグローバルステージ座標を基準とするイベント発生位置の垂直座標です。
targetタッチデバイスの下にある InteractiveObject インスタンスです。target は、必ずしもイベントリスナーを登録した表示リスト内のオブジェクトとは限りません。現在イベントを処理している表示リスト内のオブジェクトにアクセスするには、currentTarget プロパティを使用します。
touchPointIDタッチポイントに割り当てられている一意の識別番号(int 型)です。

関連する API エレメント

TOUCH_END

定数 
public static const TOUCH_END:String = "touchEnd"

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

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

送出された TouchEvent オブジェクトには次のプロパティがあります。

プロパティ
altKeyAlt キーがアクティブになっている場合は true(Windows または Linux)。
bubblestrue
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
commandKeyMacintosh で Command キーがアクティブになっている場合は true、非アクティブになっている場合は false です。 Windows では常に false になります。
controlKeyCtrl キーまたは Control キーがアクティブになっている場合は true、非アクティブになっている場合は false です。
ctrlKeyWindows または Linux では Ctrl キーがアクティブになっている場合は、true です。Macintosh では Ctrl キーまたは Command キーがアクティブになっている場合は、true です。それ以外の場合は false です。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
eventPhaseイベントフローの現在の段階です。
isRelatedObjectInaccessibleセキュリティサンドボックスのルールによって、relatedObject プロパティが null に設定されている場合は true になります。
localXスプライトを基準とするイベント発生位置の水平座標です。
localYスプライトを基準とするイベント発生位置の垂直座標です。
pressure0.01.0 の値で、デバイスに対する接触強度を示します。デバイスが接触圧の検出をサポートしていない場合、値は 1.0 です。
relatedObjectイベントに関連する表示オブジェクトへの参照です。
shiftKeyShift キーがアクティブになっている場合は true、非アクティブになっている場合は false です。
sizeX接触領域の幅です。
sizeY接触領域の高さです。
stageXグローバルステージ座標を基準とするイベント発生位置の水平座標です。
stageYグローバルステージ座標を基準とするイベント発生位置の垂直座標です。
targetタッチデバイスの下にある InteractiveObject インスタンスです。target は、必ずしもイベントリスナーを登録した表示リスト内のオブジェクトとは限りません。現在イベントを処理している表示リスト内のオブジェクトにアクセスするには、currentTarget プロパティを使用します。
touchPointIDタッチポイントに割り当てられている一意の識別番号(int 型)です。

関連する API エレメント

TOUCH_MOVE

定数 
public static const TOUCH_MOVE:String = "touchMove"

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

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

送出された TouchEvent オブジェクトには次のプロパティがあります。

プロパティ
altKeyAlt キーがアクティブになっている場合は true(Windows または Linux)。
bubblestrue
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
commandKeyMacintosh で Command キーがアクティブになっている場合は true、非アクティブになっている場合は false です。 Windows では常に false になります。
controlKeyCtrl キーまたは Control キーがアクティブになっている場合は true、非アクティブになっている場合は false です。
ctrlKeyWindows または Linux では Ctrl キーがアクティブになっている場合は、true です。Macintosh では Ctrl キーまたは Command キーがアクティブになっている場合は、true です。それ以外の場合は false です。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
eventPhaseイベントフローの現在の段階です。
isRelatedObjectInaccessibleセキュリティサンドボックスのルールによって、relatedObject プロパティが null に設定されている場合は true になります。
localXスプライトを基準とするイベント発生位置の水平座標です。
localYスプライトを基準とするイベント発生位置の垂直座標です。
pressure0.01.0 の値で、デバイスに対する接触強度を示します。デバイスが接触圧の検出をサポートしていない場合、値は 1.0 です。
relatedObjectイベントに関連する表示オブジェクトへの参照です。
shiftKeyShift キーがアクティブになっている場合は true、非アクティブになっている場合は false です。
sizeX接触領域の幅です。
sizeY接触領域の高さです。
stageXグローバルステージ座標を基準とするイベント発生位置の水平座標です。
stageYグローバルステージ座標を基準とするイベント発生位置の垂直座標です。
targetタッチデバイスの下にある InteractiveObject インスタンスです。target は、必ずしもイベントリスナーを登録した表示リスト内のオブジェクトとは限りません。現在イベントを処理している表示リスト内のオブジェクトにアクセスするには、currentTarget プロパティを使用します。
touchPointIDタッチポイントに割り当てられている一意の識別番号(int 型)です。

関連する API エレメント

TOUCH_OUT

定数 
public static const TOUCH_OUT:String = "touchOut"

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

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

送出された TouchEvent オブジェクトには次のプロパティがあります。

プロパティ
altKeyAlt キーがアクティブになっている場合は true(Windows または Linux)。
bubblestrue
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
commandKeyMacintosh で Command キーがアクティブになっている場合は true、非アクティブになっている場合は false です。 Windows では常に false になります。
controlKeyCtrl キーまたは Control キーがアクティブになっている場合は true、非アクティブになっている場合は false です。
ctrlKeyWindows または Linux では Ctrl キーがアクティブになっている場合は、true です。Macintosh では Ctrl キーまたは Command キーがアクティブになっている場合は、true です。それ以外の場合は false です。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
eventPhaseイベントフローの現在の段階です。
isRelatedObjectInaccessibleセキュリティサンドボックスのルールによって、relatedObject プロパティが null に設定されている場合は true になります。
localXスプライトを基準とするイベント発生位置の水平座標です。
localYスプライトを基準とするイベント発生位置の垂直座標です。
pressure0.01.0 の値で、デバイスに対する接触強度を示します。デバイスが接触圧の検出をサポートしていない場合、値は 1.0 です。
relatedObjectイベントに関連する表示オブジェクトへの参照です。
shiftKeyShift キーがアクティブになっている場合は true、非アクティブになっている場合は false です。
sizeX接触領域の幅です。
sizeY接触領域の高さです。
stageXグローバルステージ座標を基準とするイベント発生位置の水平座標です。
stageYグローバルステージ座標を基準とするイベント発生位置の垂直座標です。
targetタッチデバイスの下にある InteractiveObject インスタンスです。target は、必ずしもイベントリスナーを登録した表示リスト内のオブジェクトとは限りません。現在イベントを処理している表示リスト内のオブジェクトにアクセスするには、currentTarget プロパティを使用します。
touchPointIDタッチポイントに割り当てられている一意の識別番号(int 型)です。

関連する API エレメント

TOUCH_OVER

定数 
public static const TOUCH_OVER:String = "touchOver"

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

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

送出された TouchEvent オブジェクトには次のプロパティがあります。

プロパティ
altKeyAlt キーがアクティブになっている場合は true(Windows または Linux)。
bubblestrue
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
commandKeyMacintosh で Command キーがアクティブになっている場合は true、非アクティブになっている場合は false です。 Windows では常に false になります。
controlKeyCtrl キーまたは Control キーがアクティブになっている場合は true、非アクティブになっている場合は false です。
ctrlKeyWindows または Linux では Ctrl キーがアクティブになっている場合は、true です。Macintosh では Ctrl キーまたは Command キーがアクティブになっている場合は、true です。それ以外の場合は false です。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
eventPhaseイベントフローの現在の段階です。
isRelatedObjectInaccessibleセキュリティサンドボックスのルールによって、relatedObject プロパティが null に設定されている場合は true になります。
localXスプライトを基準とするイベント発生位置の水平座標です。
localYスプライトを基準とするイベント発生位置の垂直座標です。
pressure0.01.0 の値で、デバイスに対する接触強度を示します。デバイスが接触圧の検出をサポートしていない場合、値は 1.0 です。
relatedObjectイベントに関連する表示オブジェクトへの参照です。
shiftKeyShift キーがアクティブになっている場合は true、非アクティブになっている場合は false です。
sizeX接触領域の幅です。
sizeY接触領域の高さです。
stageXグローバルステージ座標を基準とするイベント発生位置の水平座標です。
stageYグローバルステージ座標を基準とするイベント発生位置の垂直座標です。
targetタッチデバイスの下にある InteractiveObject インスタンスです。target は、必ずしもイベントリスナーを登録した表示リスト内のオブジェクトとは限りません。現在イベントを処理している表示リスト内のオブジェクトにアクセスするには、currentTarget プロパティを使用します。
touchPointIDタッチポイントに割り当てられている一意の識別番号(int 型)です。

関連する API エレメント

TOUCH_ROLL_OUT

定数 
public static const TOUCH_ROLL_OUT:String = "touchRollOut"

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

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

送出された TouchEvent オブジェクトには次のプロパティがあります。

プロパティ
altKeyAlt キーがアクティブになっている場合は true(Windows または Linux)。
bubblestrue
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
commandKeyMacintosh で Command キーがアクティブになっている場合は true、非アクティブになっている場合は false です。 Windows では常に false になります。
controlKeyCtrl キーまたは Control キーがアクティブになっている場合は true、非アクティブになっている場合は false です。
ctrlKeyWindows または Linux では Ctrl キーがアクティブになっている場合は、true です。Macintosh では Ctrl キーまたは Command キーがアクティブになっている場合は、true です。それ以外の場合は false です。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
eventPhaseイベントフローの現在の段階です。
isRelatedObjectInaccessibleセキュリティサンドボックスのルールによって、relatedObject プロパティが null に設定されている場合は true になります。
localXスプライトを基準とするイベント発生位置の水平座標です。
localYスプライトを基準とするイベント発生位置の垂直座標です。
pressure0.01.0 の値で、デバイスに対する接触強度を示します。デバイスが接触圧の検出をサポートしていない場合、値は 1.0 です。
relatedObjectイベントに関連する表示オブジェクトへの参照です。
shiftKeyShift キーがアクティブになっている場合は true、非アクティブになっている場合は false です。
sizeX接触領域の幅です。
sizeY接触領域の高さです。
stageXグローバルステージ座標を基準とするイベント発生位置の水平座標です。
stageYグローバルステージ座標を基準とするイベント発生位置の垂直座標です。
targetタッチデバイスの下にある InteractiveObject インスタンスです。target は、必ずしもイベントリスナーを登録した表示リスト内のオブジェクトとは限りません。現在イベントを処理している表示リスト内のオブジェクトにアクセスするには、currentTarget プロパティを使用します。
touchPointIDタッチポイントに割り当てられている一意の識別番号(int 型)です。

関連する API エレメント

TOUCH_ROLL_OVER

定数 
public static const TOUCH_ROLL_OVER:String = "touchRollOver"

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

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

送出された TouchEvent オブジェクトには次のプロパティがあります。

プロパティ
altKeyAlt キーがアクティブになっている場合は true(Windows または Linux)。
bubblestrue
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
commandKeyMacintosh で Command キーがアクティブになっている場合は true、非アクティブになっている場合は false です。 Windows では常に false になります。
controlKeyCtrl キーまたは Control キーがアクティブになっている場合は true、非アクティブになっている場合は false です。
ctrlKeyWindows または Linux では Ctrl キーがアクティブになっている場合は、true です。Macintosh では Ctrl キーまたは Command キーがアクティブになっている場合は、true です。それ以外の場合は false です。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
eventPhaseイベントフローの現在の段階です。
isRelatedObjectInaccessibleセキュリティサンドボックスのルールによって、relatedObject プロパティが null に設定されている場合は true になります。
localXスプライトを基準とするイベント発生位置の水平座標です。
localYスプライトを基準とするイベント発生位置の垂直座標です。
pressure0.01.0 の値で、デバイスに対する接触強度を示します。デバイスが接触圧の検出をサポートしていない場合、値は 1.0 です。
relatedObjectイベントに関連する表示オブジェクトへの参照です。
shiftKeyShift キーがアクティブになっている場合は true、非アクティブになっている場合は false です。
sizeX接触領域の幅です。
sizeY接触領域の高さです。
stageXグローバルステージ座標を基準とするイベント発生位置の水平座標です。
stageYグローバルステージ座標を基準とするイベント発生位置の垂直座標です。
targetタッチデバイスの下にある InteractiveObject インスタンスです。target は、必ずしもイベントリスナーを登録した表示リスト内のオブジェクトとは限りません。現在イベントを処理している表示リスト内のオブジェクトにアクセスするには、currentTarget プロパティを使用します。
touchPointIDタッチポイントに割り当てられている一意の識別番号(int 型)です。

関連する API エレメント

TOUCH_TAP

定数 
public static const TOUCH_TAP:String = "touchTap"

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

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

送出された TouchEvent オブジェクトには次のプロパティがあります。

プロパティ
altKeyAlt キーがアクティブになっている場合は true(Windows または Linux)。
bubblestrue
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
commandKeyMacintosh で Command キーがアクティブになっている場合は true、非アクティブになっている場合は false です。 Windows では常に false になります。
controlKeyCtrl キーまたは Control キーがアクティブになっている場合は true、非アクティブになっている場合は false です。
ctrlKeyWindows または Linux では Ctrl キーがアクティブになっている場合は、true です。Macintosh では Ctrl キーまたは Command キーがアクティブになっている場合は、true です。それ以外の場合は false です。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
eventPhaseイベントフローの現在の段階です。
isRelatedObjectInaccessibleセキュリティサンドボックスのルールによって、relatedObject プロパティが null に設定されている場合は true になります。
localXスプライトを基準とするイベント発生位置の水平座標です。
localYスプライトを基準とするイベント発生位置の垂直座標です。
pressure0.01.0 の値で、デバイスに対する接触強度を示します。デバイスが接触圧の検出をサポートしていない場合、値は 1.0 です。
relatedObjectイベントに関連する表示オブジェクトへの参照です。
shiftKeyShift キーがアクティブになっている場合は true、非アクティブになっている場合は false です。
sizeX接触領域の幅です。
sizeY接触領域の高さです。
stageXグローバルステージ座標を基準とするイベント発生位置の水平座標です。
stageYグローバルステージ座標を基準とするイベント発生位置の垂直座標です。
targetタッチデバイスの下にある InteractiveObject インスタンスです。target は、必ずしもイベントリスナーを登録した表示リスト内のオブジェクトとは限りません。現在イベントを処理している表示リスト内のオブジェクトにアクセスするには、currentTarget プロパティを使用します。
touchPointIDタッチポイントに割り当てられている一意の識別番号(int 型)です。

関連する API エレメント


例  ( この例の使用方法 )

次の例は、タッチスクリーン上で mySprite に描かれた四角形をタップしたときに表示されるメッセージです。
Multitouch.inputMode=MultitouchInputMode.TOUCH_POINT;

var mySprite:Sprite = new Sprite();
var myTextField:TextField = new TextField();

mySprite.graphics.beginFill(0x336699);
mySprite.graphics.drawRect(0,0,40,40);
addChild(mySprite);

mySprite.addEventListener(TouchEvent.TOUCH_TAP, taphandler);

function taphandler(e:TouchEvent): void {
    myTextField.text = "I've been tapped";
    myTextField.y = 50;
    addChild(myTextField);
}
TouchEventExample.as

次の例は、TOUCH_BEGIN イベント、TOUCH_MOVE イベントおよび TOUCH_END イベントのイベント処理を示しています。 接触ポイントを画面上で移動しているときに(onTouchMove)、ステージを基準に X 軸がトレースされて表示されます。 onTouchBegin 関数の Sprite.startTouchDrag パラメーターでは、touchPointID の値は、イベントオブジェクトに割り当てられた値になります。bounds パラメーターは矩形を表し、親の表示オブジェクト(bg は MySprite を含む表示オブジェクト)の境界を定義しています。
Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;

MySprite.addEventListener(TouchEvent.TOUCH_BEGIN, onTouchBegin);
MySprite.addEventListener(TouchEvent.TOUCH_MOVE, onTouchMove);
MySprite.addEventListener(TouchEvent.TOUCH_END, onTouchEnd);

function onTouchBegin(eBegin:TouchEvent) {
     eBegin.target.startTouchDrag(eBegin.touchPointID, false, bg.getRect(this));
     trace("touch begin");
 
 }

function onTouchMove(eMove:TouchEvent) {
    trace(eMove.stageX);
}
 
function onTouchEnd(eEnd:TouchEvent) {
     eEnd.target.stopTouchDrag(eEnd.touchPointID);
     trace("touch end");
}
TouchExample2.as

次の例は、タッチイベントとタッチイベントの各段階を処理する方法と、Multitouch.maxTouchPoints プロパティおよびタッチイベントオブジェクトの touchPointID プロパティを処理する方法を示します。この例は、Christian Cantrell 氏の提供によるものです。詳しい説明については、同氏によるクイックスタート「Multi-touch and gesture support on the Flash Platform」を参照してください。
 package
{
    import flash.display.Sprite;
    import flash.events.TouchEvent;
    import flash.text.AntiAliasType;
    import flash.text.TextField;
    import flash.text.TextFormat;
    import flash.ui.Multitouch;
    import flash.ui.MultitouchInputMode;

    [SWF(width=320, height=460, frameRate=24, backgroundColor=0xEB7F00)]
    public class TouchExample2 extends Sprite
    {
        private var dots:Object;
        private var labels:Object;
        private var labelFormat:TextFormat;
        private var dotCount:uint;
        private var dotsLeft:TextField;
        private static const LABEL_SPACING:uint = 15;
        
        public function TouchExample2()
        {
            super();

            this.labelFormat = new TextFormat();
            labelFormat.color = 0xACF0F2;
            labelFormat.font = "Helvetica";
            labelFormat.size = 11;
            
            this.dotCount = 0;

            this.dotsLeft = new TextField();
            this.dotsLeft.width = 300;
            this.dotsLeft.defaultTextFormat = this.labelFormat;
            this.dotsLeft.x = 3;
            this.dotsLeft.y = 0;
            this.stage.addChild(this.dotsLeft);
            this.updateDotsLeft();

            this.dots = new Object();
            this.labels = new Object();

            Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
            this.stage.addEventListener(TouchEvent.TOUCH_BEGIN, onTouchBegin);
            this.stage.addEventListener(TouchEvent.TOUCH_MOVE, onTouchMove);
            this.stage.addEventListener(TouchEvent.TOUCH_END, onTouchEnd);
        }

        private function onTouchBegin(e:TouchEvent):void
        {
            if (this.dotCount == Multitouch.maxTouchPoints) return;
            var dot:Sprite = this.getCircle();
            dot.x = e.stageX;
            dot.y = e.stageY;
            this.stage.addChild(dot);
            dot.startTouchDrag(e.touchPointID, true);
            this.dots[e.touchPointID] = dot;
            
            ++this.dotCount;

            var label:TextField = this.getLabel(e.stageX + ", " + e.stageY);
            label.x = 3;
            label.y = this.dotCount * LABEL_SPACING;
            this.stage.addChild(label);
            this.labels[e.touchPointID] = label;

            this.updateDotsLeft();
        }
        
        private function onTouchMove(e:TouchEvent):void
        {
            var label:TextField = this.labels[e.touchPointID];
            label.text = (e.stageX + ", " + e.stageY);
        }
        
        private function onTouchEnd(e:TouchEvent):void
        {
            var dot:Sprite = this.dots[e.touchPointID];
            var label:TextField = this.labels[e.touchPointID];
            
            this.stage.removeChild(dot);
            this.stage.removeChild(label);
            
            delete this.dots[e.touchPointID];
            delete this.labels[e.touchPointID];
            
            --this.dotCount;

            this.updateDotsLeft();
        }
        
        private function getCircle(circumference:uint = 40):Sprite
        {
            var circle:Sprite = new Sprite();
            circle.graphics.beginFill(0x1695A3);
            circle.graphics.drawCircle(0, 0, circumference);
            return circle;
        }

        private function getLabel(initialText:String):TextField
        {
            var label:TextField = new TextField();
            label.defaultTextFormat = this.labelFormat;
            label.selectable = false;
            label.antiAliasType = AntiAliasType.ADVANCED;
            label.text = initialText;
            return label;
        }
        
        private function updateDotsLeft():void
        {
            this.dotsLeft.text = "Touches Remaining: " + (Multitouch.maxTouchPoints - this.dotCount);
        }
    }
}




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

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