PageRenderTime 124ms CodeModel.GetById 40ms RepoModel.GetById 1ms app.codeStats 1ms

/frameworks/projects/playerglobal/bundles/ja_JP/docs/flash.display.xml

https://github.com/adufilie/flex-sdk
XML | 2271 lines | 1746 code | 507 blank | 18 comment | 0 complexity | 49940fb4b83ef4612d8bf7191f18a9a7 MD5 | raw file
Possible License(s): Apache-2.0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <apiPackage xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/" id="flash.display" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiPackage/apiPackage "><apiName class="- topic/title reference/title apiRef/apiName ">flash.display</apiName><apiDetail class="- topic/body reference/refbody apiRef/apiDetail "/><apiClassifier languages="" id="flash.display:FrameLabel" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiClassifier/apiClassifier "><apiName class="- topic/title reference/title apiRef/apiName ">FrameLabel</apiName><shortdesc class="- topic/shortdesc ">
  17. FrameLabel オブジェクトにはフレーム番号および対応するラベル名を指定するプロパティがあります</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiClassifierDetail class="- topic/body reference/refbody apiRef/apiDetail apiClassifier/apiClassifierDetail "><apiClassifierDef class="- topic/section reference/section apiRef/apiDef apiClassifier/apiClassifierDef "><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiStatic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiStatic "/><apiFinal class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiFinal "/><apiBaseClassifier class="- topic/xref reference/xref apiRef/apiRelation apiClassifier/apiBaseClassifier ">Object</apiBaseClassifier></apiClassifierDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  18. FrameLabel オブジェクトにはフレーム番号および対応するラベル名を指定するプロパティがありますScene クラスには<codeph class="+ topic/ph pr-d/codeph ">labels</codeph> プロパティがありますこれはシーンの FrameLabel オブジェクトの配列です
  19. </apiDesc></apiClassifierDetail><related-links class="- topic/related-links "><link href="flash.display.xml#Scene/labels" class="- topic/link "><linktext class="- topic/linktext ">Scene.labels</linktext></link><link href="flash.display.xml#MovieClip/currentLabel" class="- topic/link "><linktext class="- topic/linktext ">MovieClip.currentLabel</linktext></link><link href="flash.display.xml#MovieClip/currentScene" class="- topic/link "><linktext class="- topic/linktext ">MovieClip.currentScene</linktext></link><link href="flash.display.xml#MovieClip/scenes" class="- topic/link "><linktext class="- topic/linktext ">MovieClip.scenes</linktext></link><link href="flash.display.xml#MovieClip/gotoAndPlay()" class="- topic/link "><linktext class="- topic/linktext ">MovieClip.gotoAndPlay()</linktext></link><link href="flash.display.xml#MovieClip/gotoAndStop()" class="- topic/link "><linktext class="- topic/linktext ">MovieClip.gotoAndStop()</linktext></link></related-links><apiValue id="flash.display:FrameLabel:frame:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">frame</apiName><shortdesc class="- topic/shortdesc ">
  20. ラベルを含むフレームの番号</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="read" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">int</apiValueClassifier></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  21. ラベルを含むフレームの番号
  22. </apiDesc></apiValueDetail></apiValue><apiValue id="flash.display:FrameLabel:name:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">name</apiName><shortdesc class="- topic/shortdesc ">
  23. ラベルの名前</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="read" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">String</apiValueClassifier></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  24. ラベルの名前
  25. </apiDesc></apiValueDetail></apiValue></apiClassifier><apiClassifier languages="" id="flash.display:InteractiveObject" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiClassifier/apiClassifier "><apiName class="- topic/title reference/title apiRef/apiName ">InteractiveObject</apiName><shortdesc class="- topic/shortdesc ">
  26. InteractiveObject クラスはマウスキーボードまたは他のユーザー入力デバイスを使用してユーザーが操作できるすべての表示オブジェクトの抽象基本クラスです</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiClassifierDetail class="- topic/body reference/refbody apiRef/apiDetail apiClassifier/apiClassifierDetail "><apiClassifierDef class="- topic/section reference/section apiRef/apiDef apiClassifier/apiClassifierDef "><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiStatic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiStatic "/><apiBaseClassifier class="- topic/xref reference/xref apiRef/apiRelation apiClassifier/apiBaseClassifier ">flash.display:DisplayObject</apiBaseClassifier></apiClassifierDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  27. InteractiveObject クラスはマウスキーボードまたは他のユーザー入力デバイスを使用してユーザーが操作できるすべての表示オブジェクトの抽象基本クラスです
  28. <p class="- topic/p ">InteractiveObject クラスを直接インスタンス化することはできません<codeph class="+ topic/ph pr-d/codeph ">new InteractiveObject()</codeph> コンストラクターを呼び出すと<codeph class="+ topic/ph pr-d/codeph ">ArgumentError</codeph> 例外がスローされます</p>
  29. <p class="- topic/p ">InteractiveObject クラス自体はコンテンツを画面上に描画する API を含みませんInteractiveObject クラスのカスタムサブクラスを作成するにはSpriteSimpleButtonTextFieldMovieClip クラスなど画面上にコンテンツを描画する API を持つサブクラスの 1 つを拡張する必要があります</p>
  30. </apiDesc><example conref="examples\InteractiveObjectExample.as" class="- topic/example "> 次の例では<codeph class="+ topic/ph pr-d/codeph ">InteractiveObjectExample</codeph> クラスを使用しますこのクラスは<codeph class="+ topic/ph pr-d/codeph ">ChildSprite</codeph> クラスを使用して矩形を描画しその矩形を様々なマウスイベントに基づいて操作しますこれを行うには以下の手順を実行します
  31. <ol class="- topic/ol "><li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">InteractiveObjectExample</codeph> コンストラクターで呼び出されたタイプ Sprite の新しい ChildSprite オブジェクト <codeph class="+ topic/ph pr-d/codeph ">child</codeph> が作成されますこれはChildSprite コンストラクターメソッドを呼び出してシェイプを描画しそのシェイプにマウスイベントを追加します以下の手順で説明<codeph class="+ topic/ph pr-d/codeph ">child</codeph> オブジェクトは座標 <i class="+ topic/ph hi-d/i ">x = 0y = 0</i> の表示リストの最上部に追加されます </li><li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">ChildSprite</codeph> クラスで<codeph class="+ topic/ph pr-d/codeph ">size</codeph> プロパティおよび <codeph class="+ topic/ph pr-d/codeph ">overSize</codeph> プロパティを宣言しますこれらのプロパティは後で <codeph class="+ topic/ph pr-d/codeph ">draw()</codeph> メソッドおよび MouseEvent メソッドで使用されます</li><li class="- topic/li ">背景色をオレンジ色マウスポインターが上に置かれたときの色を暗い黄色マウスポインターの下の色を明るい青色に設定するプロパティを宣言します</li><li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">ChildSprite</codeph> コンストラクターでGraphic クラスのメソッドと <codeph class="+ topic/ph pr-d/codeph ">draw()</codeph> メソッドを使用してオレンジ色の四角形が描画されます</li><li class="- topic/li ">コンストラクターは以下に示す 4 つの MouseEvent イベントリスナーメソッドを追加します
  32. <ul class="- topic/ul "><li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">mouseOverHandler</codeph>暗い黄色で 60 x 60 ピクセルに大きくした四角形を元の座標に再描画します</li><li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">mouseOutHandler</codeph>四角形のサイズとカラーを元に戻します</li><li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">mouseDownHandler</codeph>明るい青色で 60 x 60 ピクセルに大きくした四角形を元の座標に再描画します</li><li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">mouseUpHandler</codeph><codeph class="+ topic/ph pr-d/codeph ">mouseOverHandler</codeph> と同様です</li></ul>
  33. </li></ol>
  34. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  35. package {
  36. import flash.display.Sprite;
  37. public class InteractiveObjectExample extends Sprite {
  38. public function InteractiveObjectExample() {
  39. var child:Sprite = new ChildSprite();
  40. addChild(child);
  41. }
  42. }
  43. }
  44. import flash.display.Sprite;
  45. import flash.events.MouseEvent;
  46. class ChildSprite extends Sprite {
  47. private var size:uint = 50;
  48. private var overSize:uint = 60;
  49. private var backgroundColor:uint = 0xFFCC00;
  50. private var overColor:uint = 0xCCFF00;
  51. private var downColor:uint = 0x00CCFF;
  52. public function ChildSprite() {
  53. buttonMode = true;
  54. draw(size, size, backgroundColor);
  55. addEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler);
  56. addEventListener(MouseEvent.MOUSE_OUT, mouseOutHandler);
  57. addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
  58. addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
  59. }
  60. private function draw(w:uint, h:uint, bgColor:uint):void {
  61. graphics.clear();
  62. graphics.beginFill(bgColor);
  63. graphics.drawRect(0, 0, w, h);
  64. graphics.endFill();
  65. }
  66. public function mouseOverHandler(event:MouseEvent):void {
  67. trace("mouseOverHandler");
  68. draw(overSize, overSize, overColor);
  69. }
  70. public function mouseOutHandler(event:MouseEvent):void {
  71. trace("mouseOutHandler");
  72. draw(size, size, backgroundColor);
  73. }
  74. public function mouseDownHandler(event:MouseEvent):void {
  75. trace("mouseDownHandler");
  76. draw(overSize, overSize, downColor);
  77. }
  78. public function mouseUpHandler(event:MouseEvent):void {
  79. trace("mouseUpHandler");
  80. draw(overSize, overSize, overColor);
  81. }
  82. }
  83. </codeblock></example></apiClassifierDetail><adobeApiEvent id="flash.display:InteractiveObject_flash.events.SoftKeyboardEvent.SOFT_KEYBOARD_DEACTIVATE_softKeyboardDeactivate" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">softKeyboardDeactivate</apiName><shortdesc class="- topic/shortdesc ">
  84. ソフトキーボードが背後に移動して非表示になった直後に送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10.2" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="2.6" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.SoftKeyboardEvent.SOFT_KEYBOARD_DEACTIVATE</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.SoftKeyboardEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/><apiTipTexts><apiTipText class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiTipText ">ソフトキーボードが背後に移動して非表示になった直後に送出されます
  85. </apiTipText></apiTipTexts></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  86. ソフトキーボードが背後に移動して非表示になった直後に送出されます
  87. </apiDesc></adobeApiEventDetail><related-links class="- topic/related-links "><link href="flash.events.xml#SoftKeyboardEvent" class="- topic/link "><linktext class="- topic/linktext ">flash.events.SoftKeyboardEvent</linktext></link></related-links></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.SoftKeyboardEvent.SOFT_KEYBOARD_ACTIVATE_softKeyboardActivate" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">softKeyboardActivate</apiName><shortdesc class="- topic/shortdesc ">
  88. ソフトキーボードが前面に表示された直後に送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10.2" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="2.6" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.SoftKeyboardEvent.SOFT_KEYBOARD_ACTIVATE</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.SoftKeyboardEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/><apiTipTexts><apiTipText class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiTipText ">ソフトキーボードが前面に表示された直後に送出されます
  89. </apiTipText></apiTipTexts></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  90. ソフトキーボードが前面に表示された直後に送出されます
  91. </apiDesc></adobeApiEventDetail><related-links class="- topic/related-links "><link href="flash.events.xml#SoftKeyboardEvent" class="- topic/link "><linktext class="- topic/linktext ">flash.events.SoftKeyboardEvent</linktext></link></related-links></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.SoftKeyboardEvent.SOFT_KEYBOARD_ACTIVATING_softKeyboardActivating" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">softKeyboardActivating</apiName><shortdesc class="- topic/shortdesc ">
  92. ソフトキーボードが前面に表示される直前に送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10.2" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="2.6" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.SoftKeyboardEvent.SOFT_KEYBOARD_ACTIVATING</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.SoftKeyboardEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/><apiTipTexts><apiTipText class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiTipText ">ソフトキーボードが前面に表示される直前に送出されます
  93. </apiTipText></apiTipTexts></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  94. ソフトキーボードが前面に表示される直前に送出されます
  95. </apiDesc></adobeApiEventDetail><related-links class="- topic/related-links "><link href="flash.events.xml#SoftKeyboardEvent" class="- topic/link "><linktext class="- topic/linktext ">flash.events.SoftKeyboardEvent</linktext></link></related-links></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.TextEvent.TEXT_INPUT_textInput" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">textInput</apiName><shortdesc class="- topic/shortdesc ">
  96. テキストの文字を入力すると送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.TextEvent.TEXT_INPUT</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.TextEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  97. テキストの文字を入力すると送出されます標準キーボードIME入力メソッドエディター音声認識システム書式やスタイルの情報を持たないプレーンテキストのペースト操作など様々なテキスト入力メソッドによってこのイベントが生成されます
  98. </apiDesc><example conref="examples\TextField_textInput.as" class="- topic/example "/></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.IMEEvent_imeStartComposition" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">imeStartComposition</apiName><shortdesc class="- topic/shortdesc ">
  99. このイベントはIME でインライン入力をサポートしているすべてのクライアントアプリケーションに送出されます
  100. </shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.IMEEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  101. このイベントはIME でインライン入力をサポートしているすべてのクライアントアプリケーションに送出されます
  102. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.MouseEvent.CONTEXT_MENU_contextMenu" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">contextMenu</apiName><shortdesc class="- topic/shortdesc ">
  103. AIR アプリケーションでこのインタラクティブオブジェクトに関連付けられているコンテキストメニューをユーザージェスチャがトリガーすると送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="AIR" version="1.0" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.MouseEvent.CONTEXT_MENU</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.MouseEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  104. AIR アプリケーションでこのインタラクティブオブジェクトに関連付けられているコンテキストメニューをユーザージェスチャがトリガーすると送出されます
  105. </apiDesc></adobeApiEventDetail><related-links class="- topic/related-links "><link href="flash.display.xml#InteractiveObject/contextMenu" class="- topic/link "><linktext class="- topic/linktext ">contextMenu</linktext></link></related-links></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.NativeDragEvent.NATIVE_DRAG_COMPLETE_nativeDragComplete" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">nativeDragComplete</apiName><shortdesc class="- topic/shortdesc ">
  106. ユーザーがドラッグジェスチャを止めるとドラッグイニシエータ InteractiveObject から送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="AIR" version="1.0" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.NativeDragEvent.NATIVE_DRAG_COMPLETE</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.NativeDragEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  107. ユーザーがドラッグジェスチャを止めるとドラッグイニシエータ InteractiveObject から送出されます
  108. <p class="- topic/p ">イベントの dropAction プロパティはドラッグのターゲットオブジェクトによって設定されたアクションを示します "none"<codeph class="+ topic/ph pr-d/codeph ">DragActions.NONE</codeph>ドロップ操作がキャンセルされたか受け入れられなかったことを示します</p>
  109. <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">nativeDragComplete</codeph> イベントハンドラーは開始表示オブジェクトの状態を更新する場合に便利です例えばリストからアイテムを削除する場合move のドラッグアクションビジュアルプロパティを変更する場合が該当します</p>
  110. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.NativeDragEvent.NATIVE_DRAG_UPDATE_nativeDragUpdate" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">nativeDragUpdate</apiName><shortdesc class="- topic/shortdesc ">
  111. ドラッグ操作が行われている間にDragManager.doDrag() 呼び出しのドラッグイニシエータとして指定されている InteractiveObject から送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="AIR" version="1.0" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.NativeDragEvent.NATIVE_DRAG_UPDATE</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.NativeDragEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  112. ドラッグ操作が行われている間にDragManager.doDrag() 呼び出しのドラッグイニシエータとして指定されている InteractiveObject から送出されます
  113. <p class="- topic/p ">Linux の場合<codeph class="+ topic/ph pr-d/codeph ">nativeDragUpdate</codeph> イベントは送出されません</p>
  114. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.NativeDragEvent.NATIVE_DRAG_START_nativeDragStart" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">nativeDragStart</apiName><shortdesc class="- topic/shortdesc ">
  115. ドラッグ操作の開始時にDragManager.doDrag() 呼び出しのドラッグイニシエータとして指定されている InteractiveObject から送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="AIR" version="1.0" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.NativeDragEvent.NATIVE_DRAG_START</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.NativeDragEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  116. ドラッグ操作の開始時にDragManager.doDrag() 呼び出しのドラッグイニシエータとして指定されている InteractiveObject から送出されます
  117. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.NativeDragEvent.NATIVE_DRAG_EXIT_nativeDragExit" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">nativeDragExit</apiName><shortdesc class="- topic/shortdesc ">
  118. ドラッグジェスチャが境界を出るとInteractiveObject から送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="AIR" version="1.0" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.NativeDragEvent.NATIVE_DRAG_EXIT</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.NativeDragEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  119. ドラッグジェスチャが境界を出るとInteractiveObject から送出されます
  120. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.NativeDragEvent.NATIVE_DRAG_DROP_nativeDragDrop" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">nativeDragDrop</apiName><shortdesc class="- topic/shortdesc ">
  121. ドラッグされたオブジェクトがターゲットにドロップされそのドロップ操作が DragManager.acceptDragDrop() の呼び出しで受け入れられた場合にターゲットの InteractiveObject から送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="AIR" version="1.0" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.NativeDragEvent.NATIVE_DRAG_DROP</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.NativeDragEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  122. ドラッグされたオブジェクトがターゲットにドロップされそのドロップ操作が DragManager.acceptDragDrop() の呼び出しで受け入れられた場合にターゲットの InteractiveObject から送出されます
  123. <p class="- topic/p ">イベントオブジェクトの <codeph class="+ topic/ph pr-d/codeph ">clipboard</codeph> プロパティを使用してドロップされたデータにアクセスします</p>
  124. <p class="- topic/p ">このイベントのハンドラーでは<codeph class="+ topic/ph pr-d/codeph ">DragManager.dropAction</codeph> プロパティを設定し受け入れられたドラッグアクションについてイニシエータオブジェクトにフィードバックを提供する必要があります 値が設定されていない場合DragManager 許可されているアクションのリストからデフォルト値を選択します</p>
  125. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.NativeDragEvent.NATIVE_DRAG_OVER_nativeDragOver" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">nativeDragOver</apiName><shortdesc class="- topic/shortdesc ">
  126. ドラッグジェスチャが境界の範囲内で行われている間InteractiveObject から継続的に送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="AIR" version="1.0" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.NativeDragEvent.NATIVE_DRAG_OVER</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.NativeDragEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  127. ドラッグジェスチャが境界の範囲内で行われている間InteractiveObject から継続的に送出されます
  128. <p class="- topic/p ">マウスが移動するたびに<codeph class="+ topic/ph pr-d/codeph ">nativeDragOver</codeph> イベントは送出されますWindows および Mac の場合マウスが移動していなくても短いタイマー間隔で送出されます</p>
  129. <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">nativeDragOver</codeph> イベントまたは <codeph class="+ topic/ph pr-d/codeph ">nativeDragEnter</codeph> イベントのいずれかを処理して表示オブジェクトがドロップターゲットになれるようにします</p>
  130. <p class="- topic/p ">送出している表示オブジェクトがドロップを受け入れられるかどうか特定するにはイベントオブジェクトの <codeph class="+ topic/ph pr-d/codeph ">clipboard</codeph> プロパティでデータの適合性をチェックし許容されているドラッグアクションを <codeph class="+ topic/ph pr-d/codeph ">allowedActions</codeph> プロパティでチェックします</p>
  131. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.NativeDragEvent.NATIVE_DRAG_ENTER_nativeDragEnter" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">nativeDragEnter</apiName><shortdesc class="- topic/shortdesc ">
  132. ドラッグジェスチャが境界に入るとInteractiveObject から送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="AIR" version="1.0" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.NativeDragEvent.NATIVE_DRAG_ENTER</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.NativeDragEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  133. ドラッグジェスチャが境界に入るとInteractiveObject から送出されます
  134. <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">nativeDragEnter</codeph> イベントまたは <codeph class="+ topic/ph pr-d/codeph ">nativeDragOver</codeph> イベントのいずれかを処理して表示オブジェクトがドロップターゲットになれるようにします</p>
  135. <p class="- topic/p ">送出している表示オブジェクトがドロップを受け入れられるかどうか特定するにはイベントオブジェクトの <codeph class="+ topic/ph pr-d/codeph ">clipboard</codeph> プロパティでデータの適合性をチェックし許容されているドラッグアクションを <codeph class="+ topic/ph pr-d/codeph ">allowedActions</codeph> プロパティでチェックします</p>
  136. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.Event.TAB_INDEX_CHANGE_tabIndexChange" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">tabIndexChange</apiName><shortdesc class="- topic/shortdesc ">
  137. オブジェクトの tabIndex プロパティの値が変更されたときに送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.Event.TAB_INDEX_CHANGE</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.Event</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  138. オブジェクトの <codeph class="+ topic/ph pr-d/codeph ">tabIndex</codeph> プロパティの値が変更されたときに送出されます
  139. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.Event.TAB_ENABLED_CHANGE_tabEnabledChange" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">tabEnabledChange</apiName><shortdesc class="- topic/shortdesc ">
  140. オブジェクトの tabEnabled フラグが変更されたときに送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.Event.TAB_ENABLED_CHANGE</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.Event</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  141. オブジェクトの <codeph class="+ topic/ph pr-d/codeph ">tabEnabled</codeph> フラグが変更されたときに送出されます
  142. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.Event.TAB_CHILDREN_CHANGE_tabChildrenChange" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">tabChildrenChange</apiName><shortdesc class="- topic/shortdesc ">
  143. オブジェクトの tabChildren フラグの値が変更されたときに送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.Event.TAB_CHILDREN_CHANGE</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.Event</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  144. オブジェクトの <codeph class="+ topic/ph pr-d/codeph ">tabChildren</codeph> フラグの値が変更されたときに送出されます
  145. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.KeyboardEvent.KEY_UP_keyUp" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">keyUp</apiName><shortdesc class="- topic/shortdesc ">
  146. ユーザーがキーを離したときに送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.KeyboardEvent.KEY_UP</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.KeyboardEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  147. ユーザーがキーを離したときに送出されますキーと特殊文字の間のマッピングはデバイスやオペレーティングシステムによって異なりますこのタイプのイベントはマッピングが発生してからIME入力メソッドエディターが処理される前に生成されますIME 標準的な QWERTY キーボードでは十分に対応できない中国語の漢字などの文字を入力するために使用されますこのイベントは <codeph class="+ topic/ph pr-d/codeph ">keyDown</codeph> イベントの後に発生し次のような特性があります
  148. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.KeyboardEvent.KEY_DOWN_keyDown" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">keyDown</apiName><shortdesc class="- topic/shortdesc ">
  149. ユーザーがキーを押したときに送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.KeyboardEvent.KEY_DOWN</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.KeyboardEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  150. ユーザーがキーを押したときに送出されますキーと特殊文字の間のマッピングはデバイスやオペレーティングシステムによって異なりますこのタイプのイベントはマッピングが発生してからIME入力メソッドエディターが処理される前に生成されますIME 標準的な QWERTY キーボードでは十分に対応できない中国語の漢字などの文字を入力するために使用されますこのイベントは<codeph class="+ topic/ph pr-d/codeph ">keyUp</codeph> イベントの前に発生します
  151. <p class="- topic/p ">AIR の場合このイベントをキャンセルするとテキストフィールドに文字が入力されなくなります</p>
  152. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.MouseEvent.RIGHT_MOUSE_UP_rightMouseUp" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">rightMouseUp</apiName><shortdesc class="- topic/shortdesc ">
  153. ユーザーが InteractiveObject インスタンス上でポインティングデバイスのボタンを離したときに送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="AIR" version="1.0" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.MouseEvent.RIGHT_MOUSE_UP</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.MouseEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  154. ユーザーが InteractiveObject インスタンス上でポインティングデバイスのボタンを離したときに送出されます
  155. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.MouseEvent.RIGHT_MOUSE_DOWN_rightMouseDown" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">rightMouseDown</apiName><shortdesc class="- topic/shortdesc ">
  156. ユーザーが InteractiveObject インスタンス上でポインティングデバイスのボタンを押したときに送出されます </shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="AIR" version="1.0" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.MouseEvent.RIGHT_MOUSE_DOWN</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.MouseEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  157. ユーザーが InteractiveObject インスタンス上でポインティングデバイスのボタンを押したときに送出されます
  158. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.MouseEvent.RIGHT_CLICK_rightClick" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">rightClick</apiName><shortdesc class="- topic/shortdesc ">
  159. ユーザーが同じ InteractiveObject 上でポインティングデバイスの右ボタンを押して離すと送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="AIR" version="1.0" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.MouseEvent.RIGHT_CLICK</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.MouseEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  160. ユーザーが同じ InteractiveObject 上でポインティングデバイスの右ボタンを押して離すと送出されます <codeph class="+ topic/ph pr-d/codeph ">rightClick</codeph> イベントが発生するためには<codeph class="+ topic/ph pr-d/codeph ">rightMouseDown</codeph> イベントに続いて <codeph class="+ topic/ph pr-d/codeph ">rightMouseUp</codeph> イベントが発生するという順序でなければなりません ターゲットオブジェクトはこれらのイベントの両方について同じでなければなりません異なる場合<codeph class="+ topic/ph pr-d/codeph ">rightClick</codeph> イベントは発生しません <codeph class="+ topic/ph pr-d/codeph ">rightMouseDown</codeph> イベントまたは <codeph class="+ topic/ph pr-d/codeph ">rightMouseUp</codeph> イベントの間に他の多数のマウスイベントが発生する場合があり<codeph class="+ topic/ph pr-d/codeph ">rightClick</codeph> イベントは引き続き発生します
  161. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.MouseEvent.MIDDLE_MOUSE_UP_middleMouseUp" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">middleMouseUp</apiName><shortdesc class="- topic/shortdesc ">
  162. ユーザーが InteractiveObject インスタンス上でポインティングデバイスのボタンを離したときに送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="AIR" version="1.0" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.MouseEvent.MIDDLE_MOUSE_UP</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.MouseEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  163. ユーザーが InteractiveObject インスタンス上でポインティングデバイスのボタンを離したときに送出されます
  164. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.MouseEvent.MIDDLE_MOUSE_DOWN_middleMouseDown" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">middleMouseDown</apiName><shortdesc class="- topic/shortdesc ">
  165. ユーザーが InteractiveObject インスタンス上でポインティングデバイスの中央ボタンを押したときに送出されます </shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="AIR" version="1.0" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.MouseEvent.MIDDLE_MOUSE_DOWN</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.MouseEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  166. ユーザーが InteractiveObject インスタンス上でポインティングデバイスの中央ボタンを押したときに送出されます
  167. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.MouseEvent.MIDDLE_CLICK_middleClick" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">middleClick</apiName><shortdesc class="- topic/shortdesc ">
  168. ユーザーが同じ InteractiveObject 上でポインティングデバイスの中央ボタンを押して離すと送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="AIR" version="1.0" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.MouseEvent.MIDDLE_CLICK</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.MouseEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  169. ユーザーが同じ InteractiveObject 上でポインティングデバイスの中央ボタンを押して離すと送出されます <codeph class="+ topic/ph pr-d/codeph ">middleClick</codeph> イベントが発生するためには<codeph class="+ topic/ph pr-d/codeph ">middleMouseDown</codeph> イベントに続いて <codeph class="+ topic/ph pr-d/codeph ">middleMouseUp</codeph> イベントが発生するという順序でなければなりません ターゲットオブジェクトはこれらのイベントの両方について同じでなければなりません異なる場合<codeph class="+ topic/ph pr-d/codeph ">middleClick</codeph> イベントは発生しません <codeph class="+ topic/ph pr-d/codeph ">middleMouseDown</codeph> イベントまたは <codeph class="+ topic/ph pr-d/codeph ">middleMouseUp</codeph> イベントの間に他の多数のマウスイベントが発生する場合があり<codeph class="+ topic/ph pr-d/codeph ">middleClick</codeph> イベントは引き続き発生します
  170. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.TransformGestureEvent.GESTURE_SWIPE_gestureSwipe" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">gestureSwipe</apiName><shortdesc class="- topic/shortdesc ">
  171. InteractiveObject インスタンスとの接触位置でユーザーがスワイプジェスチャを実行したときに送出されます例えばタッチスクリーン搭載の携帯電話またはタブレットの画面に 3 本指で触れてから表示オブジェクト上でその 3 本の指をそろえて動かした場合など</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10.1" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="2" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.TransformGestureEvent.GESTURE_SWIPE</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.TransformGestureEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  172. InteractiveObject インスタンスとの接触位置でユーザーがスワイプジェスチャを実行したときに送出されます例えばタッチスクリーン搭載の携帯電話またはタブレットの画面に 3 本指で触れてから表示オブジェクト上でその 3 本の指をそろえて動かした場合など指をそろえて動かす動作は共通のスワイプジェスチャですがスワイプの要件はデバイスやオペレーティングシステムによって異なります一部のデバイスではこの接触を複数のマウスイベントの組み合わせとして解釈する場合もあります
  173. <p class="- topic/p ">具体的にはユーザーが InteractiveObject 上に指を置いてから指を動かした際InteractiveObject インスタンスから <codeph class="+ topic/ph pr-d/codeph ">gestureSwipe</codeph> イベントの他に<codeph class="+ topic/ph pr-d/codeph ">rollOver</codeph> イベントおよび <codeph class="+ topic/ph pr-d/codeph ">rollOut</codeph> イベントを送出する場合がありますまた現在の環境でサポートされていれば対象となるすべてのイベントが送出されることもありますユーザー操作の処理方法を選択してください<codeph class="+ topic/ph pr-d/codeph ">rollOver</codeph> イベントを処理するように選択するとタッチ対応デバイスとマウス対応デバイスの両方で同じイベントハンドラーが実行されますただし<codeph class="+ topic/ph pr-d/codeph ">gestureSwipe</codeph> イベントを処理するように選択するとタッチ対応環境固有の要件に合わせてイベントハンドラーを設計してより優れたタッチ操作のユーザーエクスペリエンスを実現できます両方のイベントを個別に処理することもできますこれによりタッチイベントとマウスイベントにそれぞれ異なる応答を返すことができます</p>
  174. <p class="- topic/p ">イベントオブジェクトのプロパティを処理する際<codeph class="+ topic/ph pr-d/codeph ">localX</codeph> および <codeph class="+ topic/ph pr-d/codeph ">localY</codeph> プロパティは初期接触位置に設定されます<codeph class="+ topic/ph pr-d/codeph ">offsetX</codeph> および <codeph class="+ topic/ph pr-d/codeph ">offsetY</codeph> プロパティはスワイプジェスチャの終点となる接触位置までの距離を表します</p>
  175. <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意</b>Mac OS オペレーティ グシステムを採用しているデバイスの中には 4 本指のスワイプを解釈できるものがありますがこの API でサポートされるのは3 本指のスワイプのみです</p>
  176. </apiDesc><example conref="..\events\examples\TransformGesture_swipe.as" class="- topic/example "> 次の例は<codeph class="+ topic/ph pr-d/codeph ">GESTURE_SWIPE</codeph> イベントのイベント処理を示していますユーザーがタッチ対応デバイスでスワイプジェスチャを実行しているときにmyTextField <codeph class="+ topic/ph pr-d/codeph ">all</codeph> という段階が設定されますスワイプイベントにはこの段階しかありません
  177. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  178. Multitouch.inputMode = MultitouchInputMode.GESTURE;
  179. var mySprite = new Sprite();
  180. mySprite.addEventListener(TransformGestureEvent.GESTURE_SWIPE , onSwipe);
  181. mySprite.graphics.beginFill(0x336699);
  182. mySprite.graphics.drawRect(0, 0, 100, 80);
  183. var myTextField = new TextField();
  184. myTextField.y = 200;
  185. addChild(mySprite);
  186. addChild(myTextField);
  187. function onSwipe(evt:TransformGestureEvent):void {
  188. if (evt.offsetX == 1 ) {
  189. myTextField.text = "right";
  190. }
  191. if (evt.offsetY == -1) {
  192. myTextField.text = "up";
  193. }
  194. myTextField.text = evt.phase;
  195. }
  196. </codeblock></example></adobeApiEventDetail><related-links class="- topic/related-links "><link href="flash.display.xml#InteractiveObject/event:rollOver" class="- topic/link "><linktext class="- topic/linktext ">rollOver イベント</linktext></link><link href="flash.display.xml#InteractiveObject/event:touchOver" class="- topic/link "><linktext class="- topic/linktext ">touchOver イベント</linktext></link><link href="flash.ui.xml#Multitouch" class="- topic/link "><linktext class="- topic/linktext ">flash.ui.Multitouch</linktext></link></related-links></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.TransformGestureEvent.GESTURE_ZOOM_gestureZoom" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">gestureZoom</apiName><shortdesc class="- topic/shortdesc ">
  197. InteractiveObject インスタンスとの接触位置でユーザーがズームジェスチャを実行したときに送出されます例えばタッチスクリーン搭載の携帯電話またはタブレットの画面に 2 本指で触れてから表示オブジェクト上でその 2 本の指をすばやく広げた場合など</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10.1" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="2" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.TransformGestureEvent.GESTURE_ZOOM</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.TransformGestureEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  198. InteractiveObject インスタンスとの接触位置でユーザーがズームジェスチャを実行したときに送出されます例えばタッチスクリーン搭載の携帯電話またはタブレットの画面に 2 本指で触れてから表示オブジェクト上でその 2 本の指をすばやく広げた場合など指を広げる動作は共通のズームジェスチャですがズームを示す要件はデバイスやオペレーティングシステムごとに異なります一部のデバイスではこの接触を複数のマウスイベントの組み合わせとして解釈する場合もあります
  199. <p class="- topic/p ">具体的にはユーザーが InteractiveObject 上に指を動かしてから 2 本の指を広げた際InteractiveObject インスタンスから <codeph class="+ topic/ph pr-d/codeph ">gestureZoom</codeph> イベントの他に<codeph class="+ topic/ph pr-d/codeph ">mouseOver</codeph> イベントおよび <codeph class="+ topic/ph pr-d/codeph ">click</codeph> イベントを送出する場合がありますまた現在の環境でサポートされている場合対象となるすべてのイベントが送出されることもありますユーザー操作の処理方法を選択してくださいタッチイベントの処理を管理するにはflash.ui.Multitouch クラスを使用しますタッチジェスチャのイベント処理や単純なタッチポイントのイベント処理の有効化タッチイベントを無効化してマウスイベントだけが送出されるようにするなどの処理が可能です<codeph class="+ topic/ph pr-d/codeph ">mouseOver</codeph> イベントを処理するように選択するとタッチ対応デバイスとマウス対応デバイスの両方で同じイベントハンドラーが実行されますただし<codeph class="+ topic/ph pr-d/codeph ">gestureZoom</codeph> イベントを処理するように選択するとタッチ対応環境固有の要件に合わせてイベントハンドラーを設計してより優れたタッチ操作のユーザーエクスペリエンスを実現できます両方のイベントを個別に処理することもできますこれによりタッチイベントとマウスイベントにそれぞれ異なる応答を返すことができます</p>
  200. <p class="- topic/p ">イベントオブジェクトのプロパティを処理する際<codeph class="+ topic/ph pr-d/codeph ">localX</codeph> および <codeph class="+ topic/ph pr-d/codeph ">localY</codeph> プロパティは初期接触位置に設定されます<codeph class="+ topic/ph pr-d/codeph ">offsetX</codeph> および <codeph class="+ topic/ph pr-d/codeph ">offsetY</codeph> プロパティはズームジェスチャの終点となる接触位置への距離です</p>
  201. <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意</b>環境互換性情報についてはMultitouch クラスを参照してください</p>
  202. </apiDesc><example conref="..\events\examples\TransformGesture_zoom.as" class="- topic/example "> 次の例は<codeph class="+ topic/ph pr-d/codeph ">GESTURE_ZOOM</codeph> イベントのイベント処理を示していますユーザーがタッチ対応デバイスでズームジェスチャを実行しているときにmyTextField に現在の段階が設定されます
  203. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  204. Multitouch.inputMode = MultitouchInputMode.GESTURE;
  205. var mySprite = new Sprite();
  206. mySprite.addEventListener(TransformGestureEvent.GESTURE_ZOOM , onZoom);
  207. mySprite.graphics.beginFill(0x336699);
  208. mySprite.graphics.drawRect(0, 0, 100, 80);
  209. var myTextField = new TextField();
  210. myTextField.y = 200;
  211. addChild(mySprite);
  212. addChild(myTextField);
  213. function onZoom(evt:TransformGestureEvent):void {
  214. evt.target.scaleX++;
  215. if (evt.phase==GesturePhase.BEGIN) {
  216. myTextField.text = "Begin";
  217. }
  218. if (evt.phase==GesturePhase.UPDATE) {
  219. myTextField.text = "Update";
  220. }
  221. if (evt.phase==GesturePhase.END) {
  222. myTextField.text = "End";
  223. }
  224. }
  225. </codeblock></example></adobeApiEventDetail><related-links class="- topic/related-links "><link href="flash.display.xml#InteractiveObject/event:mouseOver" class="- topic/link "><linktext class="- topic/linktext ">mouseOver イベント</linktext></link><link href="flash.display.xml#InteractiveObject/event:touchOver" class="- topic/link "><linktext class="- topic/linktext ">touchOver イベント</linktext></link><link href="flash.ui.xml#Multitouch" class="- topic/link "><linktext class="- topic/linktext ">flash.ui.Multitouch</linktext></link></related-links></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.TransformGestureEvent.GESTURE_ROTATE_gestureRotate" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">gestureRotate</apiName><shortdesc class="- topic/shortdesc ">
  226. InteractiveObject インスタンスとの接触位置でユーザーが回転ジェスチャを実行したときに送出されます例えばタッチスクリーン搭載の携帯電話またはタブレットの画面に 2 本指で触れその指を表示オブジェクト上で回転させる場合など</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10.1" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="2" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.TransformGestureEvent.GESTURE_ROTATE</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.TransformGestureEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  227. InteractiveObject インスタンスとの接触位置でユーザーが回転ジェスチャを実行したときに送出されます例えばタッチスクリーン搭載の携帯電話またはタブレットの画面に 2 本指で触れその指を表示オブジェクト上で回転させる場合など2 本の指による回転は共通の回転ジェスチャですが回転を示す要件はデバイスやオペレーティングシステムごとに異なります一部のデバイスではこの接触を複数のマウスイベントの組み合わせとして解釈する場合もあります
  228. <p class="- topic/p ">具体的にはユーザーが InteractiveObject 上に指を動かすとInteractiveObject インスタンスから <codeph class="+ topic/ph pr-d/codeph ">gestureRotate</codeph> イベントの他に<codeph class="+ topic/ph pr-d/codeph ">mouseOver</codeph> イベントおよび <codeph class="+ topic/ph pr-d/codeph ">click</codeph> イベントを送出する場合がありますまた現在の環境でサポートされている場合対象となるすべてのイベントが送出されることもありますユーザー操作の処理方法を選択してくださいタッチイベントの処理を管理するにはflash.ui.Multitouch クラスを使用しますタッチジェスチャのイベント処理や単純なタッチポイントのイベント処理の有効化タッチイベントを無効化してマウスイベントだけが送出されるようにするなどの処理が可能です<codeph class="+ topic/ph pr-d/codeph ">mouseOver</codeph> イベントを処理するように選択するとタッチ対応デバイスとマウス対応デバイスの両方で同じイベントハンドラーが実行されますただし<codeph class="+ topic/ph pr-d/codeph ">gestureRotate</codeph> イベントを処理するように選択するとタッチ対応環境固有の要件に合わせてイベントハンドラーを設計してより優れたタッチ操作のユーザーエクスペリエンスを実現できます両方のイベントを個別に処理することもできますこれによりタッチイベントとマウスイベントにそれぞれ異なる応答を返すことができます</p>
  229. <p class="- topic/p ">イベントオブジェクトのプロパティを処理する際<codeph class="+ topic/ph pr-d/codeph ">localX</codeph> および <codeph class="+ topic/ph pr-d/codeph ">localY</codeph> プロパティは初期接触位置に設定されます<codeph class="+ topic/ph pr-d/codeph ">offsetX</codeph> および <codeph class="+ topic/ph pr-d/codeph ">offsetY</codeph> プロパティは回転ジェスチャの終点となる接触位置への距離です</p>
  230. <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意</b>環境互換性情報についてはMultitouch クラスを参照してください</p>
  231. </apiDesc><example conref="..\events\examples\TransformGestureEventExample.as" class="- topic/example "> 次の例は<codeph class="+ topic/ph pr-d/codeph ">GESTURE_ROTATE</codeph> イベントのイベント処理を示していますユーザーがタッチ対応デバイスで回転ジェスチャを実行しているときにmySprite が回転しmyTextField に現在の段階が設定されます
  232. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  233. Multitouch.inputMode = MultitouchInputMode.GESTURE;
  234. var mySprite = new Sprite();
  235. mySprite.addEventListener(TransformGestureEvent.GESTURE_ROTATE , onRotate );
  236. mySprite.graphics.beginFill(0x336699);
  237. mySprite.graphics.drawRect(0, 0, 100, 80);
  238. var myTextField = new TextField();
  239. myTextField.y = 200;
  240. addChild(mySprite);
  241. addChild(myTextField);
  242. function onRotate(evt:TransformGestureEvent):void {
  243. evt.target.rotation -= 45;
  244. if (evt.phase==GesturePhase.BEGIN) {
  245. myTextField.text = "Begin";
  246. }
  247. if (evt.phase==GesturePhase.UPDATE) {
  248. myTextField.text = "Update";
  249. }
  250. if (evt.phase==GesturePhase.END) {
  251. myTextField.text = "End";
  252. }
  253. }
  254. </codeblock></example></adobeApiEventDetail><related-links class="- topic/related-links "><link href="flash.display.xml#InteractiveObject/event:mouseOver" class="- topic/link "><linktext class="- topic/linktext ">mouseOver イベント</linktext></link><link href="flash.display.xml#InteractiveObject/event:touchOver" class="- topic/link "><linktext class="- topic/linktext ">touchOver イベント</linktext></link><link href="flash.ui.xml#Multitouch" class="- topic/link "><linktext class="- topic/linktext ">flash.ui.Multitouch</linktext></link></related-links></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.PressAndTapGestureEvent.GESTURE_PRESS_AND_TAP_gesturePressAndTap" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">gesturePressAndTap</apiName><shortdesc class="- topic/shortdesc ">
  255. タッチ対応デバイス上でユーザーが InteractiveObject インスタンスとの接触位置を形成してからタップしたときに送出されます例えばタッチスクリーン搭載の携帯電話またはタブレットの画面で表示オブジェクト上に複数の指を置いてメニューを開いてから1 本の指でタップしてメニューアイテムを選択する場合など</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10.1" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="2" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.PressAndTapGestureEvent.GESTURE_PRESS_AND_TAP</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.PressAndTapGestureEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  256. タッチ対応デバイス上でユーザーが InteractiveObject インスタンスとの接触位置を形成してからタップしたときに送出されます例えばタッチスクリーン搭載の携帯電話またはタブレットの画面で表示オブジェクト上に複数の指を置いてメニューを開いてから1 本の指でタップしてメニューアイテムを選択する場合など一部のデバイスではこの接触を複数のマウスイベントの組み合わせとして解釈する場合もあります
  257. <p class="- topic/p ">具体的にはユーザーが InteractiveObject 上に指を動かしてからもう一度タップした場合InteractiveObject インスタンスから <codeph class="+ topic/ph pr-d/codeph ">gesturePressAndTap</codeph> イベントの他に<codeph class="+ topic/ph pr-d/codeph ">mouseOver</codeph> イベントおよび <codeph class="+ topic/ph pr-d/codeph ">click</codeph> イベントを送出する場合がありますまた現在の環境でサポートされている場合対象となるすべてのイベントが送出されることもありますユーザー操作の処理方法を選択してくださいタッチイベントの処理を管理するにはflash.ui.Multitouch クラスを使用しますタッチジェスチャのイベント処理や単純なタッチポイントのイベント処理の有効化タッチイベントを無効化してマウスイベントだけが送出されるようにするなどの処理が可能です<codeph class="+ topic/ph pr-d/codeph ">mouseOver</codeph> イベントを処理するように選択するとタッチ対応デバイスとマウス対応デバイスの両方で同じイベントハンドラーが実行されますただし<codeph class="+ topic/ph pr-d/codeph ">gesturePressAndTap</codeph> イベントを処理するように選択するとタッチ対応環境固有の要件に合わせてイベントハンドラーを設計してより優れたタッチ操作のユーザーエクスペリエンスを実現できます両方のイベントを個別に処理することもできますこれによりタッチイベントとマウスイベントにそれぞれ異なる応答を返すことができます</p>
  258. <p class="- topic/p ">イベントオブジェクトのプロパティを処理する際<codeph class="+ topic/ph pr-d/codeph ">localX</codeph> および <codeph class="+ topic/ph pr-d/codeph ">localY</codeph> プロパティは初期接触位置プッシュに設定されます<codeph class="+ topic/ph pr-d/codeph ">offsetX</codeph> および <codeph class="+ topic/ph pr-d/codeph ">offsetY</codeph> プロパティは2 番目の接触位置タップへの距離です</p>
  259. </apiDesc></adobeApiEventDetail><related-links class="- topic/related-links "><link href="flash.display.xml#InteractiveObject/event:mouseOver" class="- topic/link "><linktext class="- topic/linktext ">mouseOver イベント</linktext></link><link href="flash.display.xml#InteractiveObject/event:touchOver" class="- topic/link "><linktext class="- topic/linktext ">touchOver イベント</linktext></link><link href="flash.ui.xml#Multitouch" class="- topic/link "><linktext class="- topic/linktext ">flash.ui.Multitouch</linktext></link></related-links></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.TransformGestureEvent.GESTURE_PAN_gesturePan" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">gesturePan</apiName><shortdesc class="- topic/shortdesc ">
  260. タッチ対応デバイスでユーザーが InteractiveObject インスタンス上の接触位置でタッチポイントを移動したときに送出されます例えばタッチスクリーン搭載の携帯電話やタブレットの表示オブジェクト上で指を左から右に動かす場合など</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10.1" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="2" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.TransformGestureEvent.GESTURE_PAN</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.TransformGestureEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  261. タッチ対応デバイスでユーザーが InteractiveObject インスタンス上の接触位置でタッチポイントを移動したときに送出されます例えばタッチスクリーン搭載の携帯電話やタブレットの表示オブジェクト上で指を左から右に動かす場合など一部のデバイスではこの接触を <codeph class="+ topic/ph pr-d/codeph ">mouseOver</codeph> イベントおよび <codeph class="+ topic/ph pr-d/codeph ">touchOver</codeph> イベントとして解釈する場合もあります
  262. <p class="- topic/p ">具体的にはユーザーが InteractiveObject 上に指を動かすとInteractiveObject インスタンスから <codeph class="+ topic/ph pr-d/codeph ">mouseOver</codeph> イベント<codeph class="+ topic/ph pr-d/codeph ">touchOver</codeph> イベント<codeph class="+ topic/ph pr-d/codeph ">gesturePan</codeph> イベントのいずれかまたは現在の環境でサポートされている場合はすべてのイベントを送出することがありますユーザー操作の処理方法を選択してくださいタッチイベントの処理を管理するにはflash.ui.Multitouch クラスを使用しますタッチジェスチャのイベント処理や単純なタッチポイントのイベント処理の有効化タッチイベントを無効化してマウスイベントだけが送出されるようにするなどの処理が可能です<codeph class="+ topic/ph pr-d/codeph ">mouseOver</codeph> イベントを処理するように選択するとタッチ対応デバイスとマウス対応デバイスの両方で同じイベントハンドラーが実行されますただし<codeph class="+ topic/ph pr-d/codeph ">gesturePan</codeph> イベントを処理するように選択するとタッチ対応環境固有の要件に合わせてイベントハンドラーを設計してより優れたタッチ操作のユーザーエクスペリエンスを実現できます両方のイベントを個別に処理することもできますこれによりタッチイベントとマウスイベントにそれぞれ異なる応答を返すことができます</p>
  263. <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意</b>環境互換性情報についてはMultitouch クラスを参照してください</p>
  264. </apiDesc><example conref="..\events\examples\TransformGesture_pan.as" class="- topic/example "> 次の例は<codeph class="+ topic/ph pr-d/codeph ">GESTURE_PAN</codeph> イベントのイベント処理を示していますユーザーがタッチ対応デバイスでパンジェスチャを実行しているときにmyTextField に現在の段階が設定されます
  265. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  266. Multitouch.inputMode = MultitouchInputMode.GESTURE;
  267. var mySprite = new Sprite();
  268. mySprite.addEventListener(TransformGestureEvent.GESTURE_PAN , onPan);
  269. mySprite.graphics.beginFill(0x336699);
  270. mySprite.graphics.drawRect(0, 0, 100, 80);
  271. var myTextField = new TextField();
  272. myTextField.y = 200;
  273. addChild(mySprite);
  274. addChild(myTextField);
  275. function onPan(evt:TransformGestureEvent):void {
  276. evt.target.localX++;
  277. if (evt.phase==GesturePhase.BEGIN) {
  278. myTextField.text = "Begin";
  279. }
  280. if (evt.phase==GesturePhase.UPDATE) {
  281. myTextField.text = "Update";
  282. }
  283. if (evt.phase==GesturePhase.END) {
  284. myTextField.text = "End";
  285. }
  286. }
  287. </codeblock></example></adobeApiEventDetail><related-links class="- topic/related-links "><link href="flash.display.xml#InteractiveObject/event:mouseOver" class="- topic/link "><linktext class="- topic/linktext ">mouseOver イベント</linktext></link><link href="flash.display.xml#InteractiveObject/event:touchOver" class="- topic/link "><linktext class="- topic/linktext ">touchOver イベント</linktext></link><link href="flash.ui.xml#Multitouch" class="- topic/link "><linktext class="- topic/linktext ">flash.ui.Multitouch</linktext></link></related-links></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.GestureEvent.GESTURE_TWO_FINGER_TAP_gestureTwoFingerTap" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">gestureTwoFingerTap</apiName><shortdesc class="- topic/shortdesc ">
  288. タッチ対応デバイスでユーザーが同じ InteractiveObject インスタンス上の 2 つの接触位置を押したときに送出されます例えばタッチスクリーン搭載の携帯電話またはタブレットの表示オブジェクト上を2 本の指で押したり離したりする場合など</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10.1" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="2" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.GestureEvent.GESTURE_TWO_FINGER_TAP</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.GestureEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  289. タッチ対応デバイスでユーザーが同じ InteractiveObject インスタンス上の 2 つの接触位置を押したときに送出されます例えばタッチスクリーン搭載の携帯電話またはタブレットの表示オブジェクト上を2 本の指で押したり離したりする場合など一部のデバイスではこの接触を <codeph class="+ topic/ph pr-d/codeph ">doubleClick</codeph> イベントとして解釈する場合もあります
  290. <p class="- topic/p ">具体的にはユーザーが InteractiveObject 上を 2 本の指でタップするとInteractiveObject インスタンスから <codeph class="+ topic/ph pr-d/codeph ">doubleClick</codeph> イベントまたは <codeph class="+ topic/ph pr-d/codeph ">gestureTwoFingerTap</codeph> イベントのいずれかまたは現在の環境でサポートされている場合は両方のイベントを送出することがありますユーザー操作の処理方法を選択してくださいタッチイベントの処理を管理するにはflash.ui.Multitouch クラスを使用しますタッチジェスチャのイベント処理や単純なタッチポイントのイベント処理の有効化タッチイベントを無効化してマウスイベントだけが送出されるようにするなどの処理が可能です<codeph class="+ topic/ph pr-d/codeph ">doubleClick</codeph> イベントを処理するように選択するとタッチ対応デバイスとマウス対応デバイスの両方で同じイベントハンドラーが実行されますただし<codeph class="+ topic/ph pr-d/codeph ">gestureTwoFingerTap</codeph> イベントを処理するように選択するとタッチ対応環境固有の要件に合わせてイベントハンドラーを設計してより優れたタッチ操作のユーザーエクスペリエンスを実現できます両方のイベントを個別に処理することもできますこれによりタッチイベントとマウスイベントにそれぞれ異なる応答を返すことができます</p>
  291. <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意</b>環境互換性情報についてはMultitouch クラスを参照してください</p>
  292. </apiDesc></adobeApiEventDetail><related-links class="- topic/related-links "><link href="flash.display.xml#InteractiveObject/event:doubleClick" class="- topic/link "><linktext class="- topic/linktext ">doubleClick event</linktext></link><link href="flash.ui.xml#Multitouch" class="- topic/link "><linktext class="- topic/linktext ">flash.ui.Multitouch</linktext></link></related-links></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.TouchEvent.TOUCH_TAP_touchTap" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">touchTap</apiName><shortdesc class="- topic/shortdesc ">
  293. タッチ対応デバイスでユーザーが接触を開始した InteractiveObject インスタンスの同じ位置から指を離したときに送出されます例えばタッチスクリーン搭載の携帯電話またはタブレットの表示オブジェクト上の 1 点を指で押したり離したりする場合など</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10.1" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="2" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.TouchEvent.TOUCH_TAP</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.TouchEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  294. タッチ対応デバイスでユーザーが接触を開始した InteractiveObject インスタンスの同じ位置から指を離したときに送出されます例えばタッチスクリーン搭載の携帯電話またはタブレットの表示オブジェクト上の 1 点を指で押したり離したりする場合など一部のデバイスではこの接触を <codeph class="+ topic/ph pr-d/codeph ">click</codeph> イベントとして解釈する場合もあります
  295. <p class="- topic/p ">具体的にはユーザーが InteractiveObject 上を指でタップするとInteractiveObject インスタンスから <codeph class="+ topic/ph pr-d/codeph ">click</codeph> イベントまたは <codeph class="+ topic/ph pr-d/codeph ">touchTap</codeph> イベントのいずれかまたは現在の環境でサポートされている場合は両方のイベントを送出することがありますユーザー操作の処理方法を選択してくださいタッチイベントの処理を管理するにはflash.ui.Multitouch クラスを使用しますタッチジェスチャのイベント処理や単純なタッチポイントのイベント処理の有効化タッチイベントを無効化してマウスイベントだけが送出されるようにするなどの処理が可能です<codeph class="+ topic/ph pr-d/codeph ">click</codeph> イベントを処理するように選択するとタッチ対応デバイスとマウス対応デバイスの両方で同じイベントハンドラーが実行されますただし<codeph class="+ topic/ph pr-d/codeph ">touchTap</codeph> イベントを処理するように選択するとタッチ対応環境固有の要件に合わせてイベントハンドラーを設計してより優れたタッチ操作のユーザーエクスペリエンスを実現できます両方のイベントを個別に処理することもできますこれによりタッチイベントとマウスイベントにそれぞれ異なる応答を返すことができます</p>
  296. <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意</b>環境互換性情報についてはMultitouch クラスを参照してください</p>
  297. </apiDesc><example conref="..\ui\examples\Multitouch_inputMode.as" class="- topic/example "> 次の例はタッチスクリーン上で mySprite に描かれた四角形をタップしたときに表示されるメッセージです
  298. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  299. Multitouch.inputMode=MultitouchInputMode.TOUCH_POINT;
  300. var mySprite:Sprite = new Sprite();
  301. var myTextField:TextField = new TextField();
  302. mySprite.graphics.beginFill(0x336699);
  303. mySprite.graphics.drawRect(0,0,40,40);
  304. addChild(mySprite);
  305. mySprite.addEventListener(TouchEvent.TOUCH_TAP, taphandler);
  306. function taphandler(e:TouchEvent): void {
  307. myTextField.text = "I've been tapped";
  308. myTextField.y = 50;
  309. addChild(myTextField);
  310. }
  311. </codeblock></example></adobeApiEventDetail><related-links class="- topic/related-links "><link href="flash.display.xml#InteractiveObject/event:click" class="- topic/link "><linktext class="- topic/linktext ">click イベント</linktext></link><link href="flash.ui.xml#Multitouch" class="- topic/link "><linktext class="- topic/linktext ">flash.ui.Multitouch</linktext></link></related-links></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.TouchEvent.TOUCH_ROLL_OVER_touchRollOver" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">touchRollOver</apiName><shortdesc class="- topic/shortdesc ">
  312. タッチ対応デバイスでユーザーが InteractiveObject インスタンス上で接触位置を移動したときに送出されます例えばタッチスクリーン搭載の携帯電話またはタブレットで表示オブジェクトの外にある位置から表示オブジェクト上に指をドラッグする場合など</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10.1" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="2" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.TouchEvent.TOUCH_ROLL_OVER</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.TouchEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  313. タッチ対応デバイスでユーザーが InteractiveObject インスタンス上で接触位置を移動したときに送出されます例えばタッチスクリーン搭載の携帯電話またはタブレットで表示オブジェクトの外にある位置から表示オブジェクト上に指をドラッグする場合など一部のデバイスではこの接触を <codeph class="+ topic/ph pr-d/codeph ">rollOver</codeph> イベントとして解釈する場合もあります
  314. <p class="- topic/p ">具体的にはユーザーが InteractiveObject 上で指を動かすとInteractiveObject インスタンスから <codeph class="+ topic/ph pr-d/codeph ">rollOver</codeph> イベントまたは <codeph class="+ topic/ph pr-d/codeph ">touchRollOver</codeph> イベントのいずれかまたは現在の環境でサポートされている場合は両方のイベントを送出することがありますユーザー操作の処理方法を選択してくださいタッチイベントの処理を管理するにはflash.ui.Multitouch クラスを使用しますタッチジェスチャのイベント処理や単純なタッチポイントのイベント処理の有効化タッチイベントを無効化してマウスイベントだけが送出されるようにするなどの処理が可能です<codeph class="+ topic/ph pr-d/codeph ">rollOver</codeph> イベントを処理するように選択するとタッチ対応デバイスとマウス対応デバイスの両方で同じイベントハンドラーが実行されますただし<codeph class="+ topic/ph pr-d/codeph ">touchRollOver</codeph> イベントを処理するように選択するとタッチ対応環境固有の要件に合わせてイベントハンドラーを設計してより優れたタッチ操作のユーザーエクスペリエンスを実現できます両方のイベントを個別に処理することもできますこれによりタッチイベントとマウスイベントにそれぞれ異なる応答を返すことができます</p>
  315. <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意</b>環境互換性情報についてはMultitouch クラスを参照してください</p>
  316. </apiDesc></adobeApiEventDetail><related-links class="- topic/related-links "><link href="flash.display.xml#InteractiveObject/event:rollOver" class="- topic/link "><linktext class="- topic/linktext ">rollOver イベント</linktext></link><link href="flash.ui.xml#Multitouch" class="- topic/link "><linktext class="- topic/linktext ">flash.ui.Multitouch</linktext></link></related-links></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.TouchEvent.TOUCH_ROLL_OUT_touchRollOut" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">touchRollOut</apiName><shortdesc class="- topic/shortdesc ">
  317. ユーザーがタッチ対応デバイスの InteractiveObject インスタンス外に接触点を動かしたとき例えばタッチスクリーンを備えた携帯電話やタブレットで表示オブジェクトから表示オブジェクト外に指をドラッグしたときに送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10.1" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="2" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.TouchEvent.TOUCH_ROLL_OUT</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.TouchEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  318. ユーザーがタッチ対応デバイスの InteractiveObject インスタンス外に接触点を動かしたとき例えばタッチスクリーンを備えた携帯電話やタブレットで表示オブジェクトから表示オブジェクト外に指をドラッグしたときに送出されます一部のデバイスではこの接触を <codeph class="+ topic/ph pr-d/codeph ">rollOut</codeph> イベントとして解釈する場合もあります
  319. <p class="- topic/p ">具体的にはユーザーが InteractiveObject 上で指を動かすとInteractiveObject インスタンスから <codeph class="+ topic/ph pr-d/codeph ">rollOut</codeph> イベントまたは <codeph class="+ topic/ph pr-d/codeph ">touchRollOut</codeph> イベントのいずれかまたは現在の環境でサポートされている場合は両方のイベントを送出することがありますユーザー操作の処理方法を選択してくださいタッチイベントの処理を管理するにはflash.ui.Multitouch クラスを使用しますタッチジェスチャのイベント処理や単純なタッチポイントのイベント処理の有効化タッチイベントを無効化してマウスイベントだけが送出されるようにするなどの処理が可能です<codeph class="+ topic/ph pr-d/codeph ">rollOut</codeph> イベントを処理するように選択するとタッチ対応デバイスとマウス対応デバイスの両方で同じイベントハンドラーが実行されますただし<codeph class="+ topic/ph pr-d/codeph ">touchRollOut</codeph> イベントを処理するように選択するとタッチ対応環境固有の要件に合わせてイベントハンドラーを設計してより優れたタッチ操作のユーザーエクスペリエンスを実現できます両方のイベントを個別に処理することもできますこれによりタッチイベントとマウスイベントにそれぞれ異なる応答を返すことができます</p>
  320. <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意</b>環境互換性情報についてはMultitouch クラスを参照してください</p>
  321. </apiDesc></adobeApiEventDetail><related-links class="- topic/related-links "><link href="flash.display.xml#InteractiveObject/event:rollOut" class="- topic/link "><linktext class="- topic/linktext ">rollOut イベント</linktext></link><link href="flash.ui.xml#Multitouch" class="- topic/link "><linktext class="- topic/linktext ">flash.ui.Multitouch</linktext></link></related-links></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.TouchEvent.TOUCH_OVER_touchOver" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">touchOver</apiName><shortdesc class="- topic/shortdesc ">
  322. タッチ対応デバイスでユーザーが InteractiveObject インスタンス上で接触位置を移動したときに送出されます例えばタッチスクリーン搭載の携帯電話またはタブレットで表示オブジェクトの外にある位置から表示オブジェクト上に指をドラッグする場合など</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10.1" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="2" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.TouchEvent.TOUCH_OVER</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.TouchEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  323. タッチ対応デバイスでユーザーが InteractiveObject インスタンス上で接触位置を移動したときに送出されます例えばタッチスクリーン搭載の携帯電話またはタブレットで表示オブジェクトの外にある位置から表示オブジェクト上に指をドラッグする場合など一部のデバイスではこの接触を <codeph class="+ topic/ph pr-d/codeph ">mouseOver</codeph> イベントとして解釈する場合もあります
  324. <p class="- topic/p ">具体的にはユーザーが InteractiveObject 上で指を動かすとInteractiveObject インスタンスから <codeph class="+ topic/ph pr-d/codeph ">mouseOver</codeph> イベントまたは <codeph class="+ topic/ph pr-d/codeph ">touchOver</codeph> イベントのいずれかまたは現在の環境でサポートされている場合は両方のイベントを送出することがありますユーザー操作の処理方法を選択してくださいタッチイベントの処理を管理するにはflash.ui.Multitouch クラスを使用しますタッチジェスチャのイベント処理や単純なタッチポイントのイベント処理の有効化タッチイベントを無効化してマウスイベントだけが送出されるようにするなどの処理が可能です<codeph class="+ topic/ph pr-d/codeph ">mouseOver</codeph> イベントを処理するように選択するとタッチ対応デバイスとマウス対応デバイスの両方で同じイベントハンドラーが実行されますただし<codeph class="+ topic/ph pr-d/codeph ">touchOver</codeph> イベントを処理するように選択するとタッチ対応環境固有の要件に合わせてイベントハンドラーを設計してより優れたタッチ操作のユーザーエクスペリエンスを実現できます両方のイベントを個別に処理することもできますこれによりタッチイベントとマウスイベントにそれぞれ異なる応答を返すことができます</p>
  325. <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意</b>環境互換性情報についてはMultitouch クラスを参照してください</p>
  326. </apiDesc></adobeApiEventDetail><related-links class="- topic/related-links "><link href="flash.display.xml#InteractiveObject/event:mouseOver" class="- topic/link "><linktext class="- topic/linktext ">mouseOver イベント</linktext></link><link href="flash.ui.xml#Multitouch" class="- topic/link "><linktext class="- topic/linktext ">flash.ui.Multitouch</linktext></link></related-links></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.TouchEvent.TOUCH_OUT_touchOut" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">touchOut</apiName><shortdesc class="- topic/shortdesc ">
  327. タッチ対応デバイスでユーザーが接触位置を InteractiveObject インスタンスの外に移動したときに送出されます例えばタッチスクリーン搭載の携帯電話またはタブレットで1 つの表示オブジェクトから別の表示オブジェクトに指をドラッグする場合など</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10.1" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="2" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.TouchEvent.TOUCH_OUT</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.TouchEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  328. タッチ対応デバイスでユーザーが接触位置を InteractiveObject インスタンスの外に移動したときに送出されます例えばタッチスクリーン搭載の携帯電話またはタブレットで1 つの表示オブジェクトから別の表示オブジェクトに指をドラッグする場合など一部のデバイスではこの接触を <codeph class="+ topic/ph pr-d/codeph ">mouseOut</codeph> イベントとして解釈する場合もあります
  329. <p class="- topic/p ">具体的にはユーザーがタッチスクリーン上で指を動かすとInteractiveObject インスタンスから <codeph class="+ topic/ph pr-d/codeph ">mouseOut</codeph> イベントまたは <codeph class="+ topic/ph pr-d/codeph ">touchOut</codeph> イベントのいずれかまたは現在の環境でサポートされている場合は両方のイベントを送出することがありますユーザー操作の処理方法を選択してくださいタッチイベントの処理を管理するにはflash.ui.Multitouch クラスを使用しますタッチジェスチャのイベント処理や単純なタッチポイントのイベント処理の有効化タッチイベントを無効化してマウスイベントだけが送出されるようにするなどの処理が可能です<codeph class="+ topic/ph pr-d/codeph ">mouseOut</codeph> イベントを処理するように選択するとタッチ対応デバイスとマウス対応デバイスの両方で同じイベントハンドラーが実行されますただし<codeph class="+ topic/ph pr-d/codeph ">touchOut</codeph> イベントを処理するように選択するとタッチ対応環境固有の要件に合わせてイベントハンドラーを設計してより優れたタッチ操作のユーザーエクスペリエンスを実現できます両方のイベントを個別に処理することもできますこれによりタッチイベントとマウスイベントにそれぞれ異なる応答を返すことができます</p>
  330. <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意</b>環境互換性情報についてはMultitouch クラスを参照してください</p>
  331. </apiDesc></adobeApiEventDetail><related-links class="- topic/related-links "><link href="flash.display.xml#InteractiveObject/event:mouseOut" class="- topic/link "><linktext class="- topic/linktext ">mouseOut イベント</linktext></link><link href="flash.ui.xml#Multitouch" class="- topic/link "><linktext class="- topic/linktext ">flash.ui.Multitouch</linktext></link></related-links></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.TouchEvent.TOUCH_MOVE_touchMove" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">touchMove</apiName><shortdesc class="- topic/shortdesc ">
  332. タッチ対応デバイスでユーザーが接触位置を移動したときに送出されます例えばタッチスクリーン搭載の携帯電話またはタブレット上を指でドラッグする場合など</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10.1" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="2" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.TouchEvent.TOUCH_MOVE</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.TouchEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  333. タッチ対応デバイスでユーザーが接触位置を移動したときに送出されます例えばタッチスクリーン搭載の携帯電話またはタブレット上を指でドラッグする場合など一部のデバイスではこの接触を <codeph class="+ topic/ph pr-d/codeph ">mouseMove</codeph> イベントとして解釈する場合もあります
  334. <p class="- topic/p ">具体的にはユーザーがタッチスクリーン上で指を動かすとInteractiveObject インスタンスから <codeph class="+ topic/ph pr-d/codeph ">mouseMove</codeph> イベントまたは <codeph class="+ topic/ph pr-d/codeph ">touchMove</codeph> イベントのいずれかまたは現在の環境でサポートされている場合は両方のイベントを送出することがありますユーザー操作の処理方法を選択してくださいタッチイベントの処理を管理するにはflash.ui.Multitouch クラスを使用しますタッチジェスチャのイベント処理や単純なタッチポイントのイベント処理の有効化タッチイベントを無効化してマウスイベントだけが送出されるようにするなどの処理が可能です<codeph class="+ topic/ph pr-d/codeph ">mouseMove</codeph> イベントを処理するように選択するとタッチ対応デバイスとマウス対応デバイスの両方で同じイベントハンドラーが実行されますただし<codeph class="+ topic/ph pr-d/codeph ">touchMove</codeph> イベントを処理するように選択するとタッチ対応環境固有の要件に合わせてイベントハンドラーを設計してより優れたタッチ操作のユーザーエクスペリエンスを実現できます両方のイベントを個別に処理することもできますこれによりタッチイベントとマウスイベントにそれぞれ異なる応答を返すことができます</p>
  335. <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意</b>環境互換性情報についてはMultitouch クラスを参照してください</p>
  336. </apiDesc><example conref="..\events\examples\TouchEventExample.as" class="- topic/example "> 次の例は<codeph class="+ topic/ph pr-d/codeph ">TOUCH_BEGIN</codeph> イベント<codeph class="+ topic/ph pr-d/codeph ">TOUCH_MOVE</codeph> イベントおよび <codeph class="+ topic/ph pr-d/codeph ">TOUCH_END</codeph> イベントのイベント処理を示しています 接触ポイントを画面上で移動しているときに<codeph class="+ topic/ph pr-d/codeph ">onTouchMove</codeph>ステージを基準に X 軸がトレースされて表示されます <codeph class="+ topic/ph pr-d/codeph ">onTouchBegin</codeph> 関数の <codeph class="+ topic/ph pr-d/codeph ">Sprite.startTouchDrag</codeph> パラメーターではtouchPointID の値はイベントオブジェクトに割り当てられた値になりますbounds パラメーターは矩形を表し親の表示オブジェクトbg MySprite を含む表示オブジェクトの境界を定義しています
  337. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  338. Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
  339. MySprite.addEventListener(TouchEvent.TOUCH_BEGIN, onTouchBegin);
  340. MySprite.addEventListener(TouchEvent.TOUCH_MOVE, onTouchMove);
  341. MySprite.addEventListener(TouchEvent.TOUCH_END, onTouchEnd);
  342. function onTouchBegin(eBegin:TouchEvent) {
  343. eBegin.target.startTouchDrag(eBegin.touchPointID, false, bg.getRect(this));
  344. trace("touch begin");
  345. }
  346. function onTouchMove(eMove:TouchEvent) {
  347. trace(eMove.stageX);
  348. }
  349. function onTouchEnd(eEnd:TouchEvent) {
  350. eEnd.target.stopTouchDrag(eEnd.touchPointID);
  351. trace("touch end");
  352. }
  353. </codeblock></example></adobeApiEventDetail><related-links class="- topic/related-links "><link href="flash.display.xml#InteractiveObject/event:mouseMove" class="- topic/link "><linktext class="- topic/linktext ">mouseMove イベント</linktext></link><link href="flash.ui.xml#Multitouch" class="- topic/link "><linktext class="- topic/linktext ">flash.ui.Multitouch</linktext></link></related-links></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.TouchEvent.TOUCH_END_touchEnd" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">touchEnd</apiName><shortdesc class="- topic/shortdesc ">
  354. タッチ対応デバイスでユーザーが接触を解除したときに送出されます例えばタッチスクリーン搭載の携帯電話またはタブレットの画面から指を離す場合など</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10.1" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="2" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.TouchEvent.TOUCH_END</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.TouchEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  355. タッチ対応デバイスでユーザーが接触を解除したときに送出されます例えばタッチスクリーン搭載の携帯電話またはタブレットの画面から指を離す場合など一部のデバイスではこの接触を <codeph class="+ topic/ph pr-d/codeph ">mouseUp</codeph> イベントとして解釈する場合もあります
  356. <p class="- topic/p ">具体的にはユーザーがタッチスクリーンから指を離すとInteractiveObject インスタンスから <codeph class="+ topic/ph pr-d/codeph ">mouseUp</codeph> イベントまたは <codeph class="+ topic/ph pr-d/codeph ">touchEnd</codeph> イベントのいずれかまたは現在の環境でサポートされている場合は両方のイベントを送出することがありますユーザー操作の処理方法を選択してくださいタッチイベントの処理を管理するにはflash.ui.Multitouch クラスを使用しますタッチジェスチャのイベント処理や単純なタッチポイントのイベント処理の有効化タッチイベントを無効化してマウスイベントだけが送出されるようにするなどの処理が可能です<codeph class="+ topic/ph pr-d/codeph ">mouseUp</codeph> イベントを処理するように選択するとタッチ対応デバイスとマウス対応デバイスの両方で同じイベントハンドラーが実行されますただし<codeph class="+ topic/ph pr-d/codeph ">touchEnd</codeph> イベントを処理するように選択するとタッチ対応環境固有の要件に合わせてイベントハンドラーを設計してより優れたタッチ操作のユーザーエクスペリエンスを実現できます両方のイベントを個別に処理することもできますこれによりタッチイベントとマウスイベントにそれぞれ異なる応答を返すことができます</p>
  357. <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意</b>環境互換性情報についてはMultitouch クラスを参照してください</p>
  358. </apiDesc><example conref="..\events\examples\TouchEventExample.as" class="- topic/example "> 次の例は<codeph class="+ topic/ph pr-d/codeph ">TOUCH_BEGIN</codeph> イベント<codeph class="+ topic/ph pr-d/codeph ">TOUCH_MOVE</codeph> イベントおよび <codeph class="+ topic/ph pr-d/codeph ">TOUCH_END</codeph> イベントのイベント処理を示しています 接触ポイントを画面上で移動しているときに<codeph class="+ topic/ph pr-d/codeph ">onTouchMove</codeph>ステージを基準に X 軸がトレースされて表示されます <codeph class="+ topic/ph pr-d/codeph ">onTouchBegin</codeph> 関数の <codeph class="+ topic/ph pr-d/codeph ">Sprite.startTouchDrag</codeph> パラメーターではtouchPointID の値はイベントオブジェクトに割り当てられた値になりますbounds パラメーターは矩形を表し親の表示オブジェクトbg MySprite を含む表示オブジェクトの境界を定義しています
  359. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  360. Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
  361. MySprite.addEventListener(TouchEvent.TOUCH_BEGIN, onTouchBegin);
  362. MySprite.addEventListener(TouchEvent.TOUCH_MOVE, onTouchMove);
  363. MySprite.addEventListener(TouchEvent.TOUCH_END, onTouchEnd);
  364. function onTouchBegin(eBegin:TouchEvent) {
  365. eBegin.target.startTouchDrag(eBegin.touchPointID, false, bg.getRect(this));
  366. trace("touch begin");
  367. }
  368. function onTouchMove(eMove:TouchEvent) {
  369. trace(eMove.stageX);
  370. }
  371. function onTouchEnd(eEnd:TouchEvent) {
  372. eEnd.target.stopTouchDrag(eEnd.touchPointID);
  373. trace("touch end");
  374. }
  375. </codeblock></example></adobeApiEventDetail><related-links class="- topic/related-links "><link href="flash.display.xml#InteractiveObject/event:mouseUp" class="- topic/link "><linktext class="- topic/linktext ">mouseUp イベント</linktext></link><link href="flash.ui.xml#Multitouch" class="- topic/link "><linktext class="- topic/linktext ">flash.ui.Multitouch</linktext></link></related-links></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.TouchEvent.TOUCH_BEGIN_touchBegin" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">touchBegin</apiName><shortdesc class="- topic/shortdesc ">
  376. タッチ対応デバイスにユーザーが初めて接触したときに送出されます例えばタッチスクリーン搭載の携帯電話またはタブレットの画面に指で触れる場合など</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10.1" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="2" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.TouchEvent.TOUCH_BEGIN</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.TouchEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  377. タッチ対応デバイスにユーザーが初めて接触したときに送出されます例えばタッチスクリーン搭載の携帯電話またはタブレットの画面に指で触れる場合など一部のデバイスではこの接触を <codeph class="+ topic/ph pr-d/codeph ">mouseDown</codeph> イベントとして解釈する場合もあります
  378. <p class="- topic/p ">具体的にはユーザーがタッチスクリーンに指で触れるとInteractiveObject インスタンスから <codeph class="+ topic/ph pr-d/codeph ">mouseDown</codeph> イベントまたは <codeph class="+ topic/ph pr-d/codeph ">touchBegin</codeph> イベントのいずれかまたは現在の環境でサポートされている場合は両方のイベントを送出することがありますユーザー操作の処理方法を選択してくださいタッチイベントの処理を管理するにはflash.ui.Multitouch クラスを使用しますタッチジェスチャのイベント処理や単純なタッチポイントのイベント処理の有効化タッチイベントを無効化してマウスイベントだけが送出されるようにするなどの処理が可能です<codeph class="+ topic/ph pr-d/codeph ">mouseDown</codeph> イベントを処理するように選択するとタッチ対応デバイスとマウス対応デバイスの両方で同じイベントハンドラーが実行されますただし<codeph class="+ topic/ph pr-d/codeph ">touchBegin</codeph> イベントを処理するように選択するとタッチ対応環境固有の要件に合わせてイベントハンドラーを設計してより優れたタッチ操作のユーザーエクスペリエンスを実現できます両方のイベントを個別に処理することもできますこれによりタッチイベントとマウスイベントにそれぞれ異なる応答を返すことができます</p>
  379. <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意</b>環境互換性情報についてはMultitouch クラスを参照してください</p>
  380. </apiDesc><example conref="..\events\examples\TouchEventExample.as" class="- topic/example "> 次の例は<codeph class="+ topic/ph pr-d/codeph ">TOUCH_BEGIN</codeph> イベント<codeph class="+ topic/ph pr-d/codeph ">TOUCH_MOVE</codeph> イベントおよび <codeph class="+ topic/ph pr-d/codeph ">TOUCH_END</codeph> イベントのイベント処理を示しています 接触ポイントを画面上で移動しているときに<codeph class="+ topic/ph pr-d/codeph ">onTouchMove</codeph>ステージを基準に X 軸がトレースされて表示されます <codeph class="+ topic/ph pr-d/codeph ">onTouchBegin</codeph> 関数の <codeph class="+ topic/ph pr-d/codeph ">Sprite.startTouchDrag</codeph> パラメーターではtouchPointID の値はイベントオブジェクトに割り当てられた値になりますbounds パラメーターは矩形を表し親の表示オブジェクトbg MySprite を含む表示オブジェクトの境界を定義しています
  381. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  382. Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
  383. MySprite.addEventListener(TouchEvent.TOUCH_BEGIN, onTouchBegin);
  384. MySprite.addEventListener(TouchEvent.TOUCH_MOVE, onTouchMove);
  385. MySprite.addEventListener(TouchEvent.TOUCH_END, onTouchEnd);
  386. function onTouchBegin(eBegin:TouchEvent) {
  387. eBegin.target.startTouchDrag(eBegin.touchPointID, false, bg.getRect(this));
  388. trace("touch begin");
  389. }
  390. function onTouchMove(eMove:TouchEvent) {
  391. trace(eMove.stageX);
  392. }
  393. function onTouchEnd(eEnd:TouchEvent) {
  394. eEnd.target.stopTouchDrag(eEnd.touchPointID);
  395. trace("touch end");
  396. }
  397. </codeblock></example></adobeApiEventDetail><related-links class="- topic/related-links "><link href="flash.display.xml#InteractiveObject/event:mouseDown" class="- topic/link "><linktext class="- topic/linktext ">mouseDown イベント</linktext></link><link href="flash.ui.xml#Multitouch" class="- topic/link "><linktext class="- topic/linktext ">flash.ui.Multitouch</linktext></link></related-links></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.MouseEvent.ROLL_OVER_rollOver" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">rollOver</apiName><shortdesc class="- topic/shortdesc ">
  398. ユーザーが InteractiveObject インスタンスにポインティングデバイスを合わせたときに送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.MouseEvent.ROLL_OVER</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.MouseEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  399. ユーザーが InteractiveObject インスタンスにポインティングデバイスを合わせたときに送出されますイベントターゲットはポインティングデバイスの下に置かれていたオブジェクトかそのオブジェクトの親です<codeph class="+ topic/ph pr-d/codeph ">relatedObject</codeph> 直前にポインティングデバイスの下に置かれていたオブジェクトです<codeph class="+ topic/ph pr-d/codeph ">rollOver</codeph> イベントはそのオブジェクトの親チェーンを <codeph class="+ topic/ph pr-d/codeph ">relatedObject</codeph> のルートでも祖先でもない最高位の親から始めて下方向にたどっていきそのオブジェクトに至るまで連続して送出されます
  400. <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">rollOver</codeph> イベントは子を持つ表示オブジェクトコンテナのロールアウト動作のコーディングを単純化するためのものです表示オブジェクトの子ではないオブジェクトから表示オブジェクトの領域かその子の領域にマウスが入るとき表示オブジェクトは <codeph class="+ topic/ph pr-d/codeph ">rollOver</codeph> イベントを送出しますこれは <codeph class="+ topic/ph pr-d/codeph ">mouseOver</codeph> イベントとは異なりますmouseOver イベントはマウスが表示オブジェクトコンテナの子オブジェクトの領域に入る際にはそのマウスが表示オブジェクトコンテナの別の子オブジェクト上に既に置かれていた場合でも毎回送出されます </p>
  401. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.MouseEvent.ROLL_OUT_rollOut" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">rollOut</apiName><shortdesc class="- topic/shortdesc ">
  402. ユーザーが InteractiveObject インスタンスからポインティングデバイスを離したときに送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.MouseEvent.ROLL_OUT</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.MouseEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  403. ユーザーが InteractiveObject インスタンスからポインティングデバイスを離したときに送出されますイベントターゲットは直前にポインティングデバイスの下に置かれていたオブジェクトかそのオブジェクトの親です<codeph class="+ topic/ph pr-d/codeph ">relatedObject</codeph> はポインティングデバイスの移動先のオブジェクトです<codeph class="+ topic/ph pr-d/codeph ">rollOut</codeph> イベントはそのオブジェクトの親チェーンをそのオブジェクトから始めて上方向にたどっていき<codeph class="+ topic/ph pr-d/codeph ">relatedObject</codeph> のルートでも祖先でもない最高位の親に至るまで連続して送出されます
  404. <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">rollOut</codeph> イベントは子を持つ表示オブジェクトコンテナのロールオーバー動作のコーディングを単純化するためのものですマウスが表示オブジェクトの領域かその子の領域から出てその子の一部ではないオブジェクトに進む場合表示オブジェクトは <codeph class="+ topic/ph pr-d/codeph ">rollOut</codeph> イベントを送出しますこれは <codeph class="+ topic/ph pr-d/codeph ">mouseOut</codeph> イベントとは異なりますmouseOut イベントはマウスが表示オブジェクトコンテナの子オブジェクトの領域から出る際にはそのマウスが表示オブジェクトコンテナの別の子オブジェクト上にある場合でも毎回送出されます</p>
  405. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.MouseEvent.MOUSE_WHEEL_mouseWheel" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">mouseWheel</apiName><shortdesc class="- topic/shortdesc ">
  406. マウスホイールが InteractiveObject インスタンス上を回転するときに送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.MouseEvent.MOUSE_WHEEL</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.MouseEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  407. マウスホイールが InteractiveObject インスタンス上を回転するときに送出されます ターゲットがテキストフィールドである場合デフォルトの動作ではテキストはスクロールしますMicrosoft Windows オペレーティングシステムでのみ使用できます
  408. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.MouseEvent.MOUSE_UP_mouseUp" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">mouseUp</apiName><shortdesc class="- topic/shortdesc ">
  409. ユーザーが InteractiveObject インスタンス上でポインティングデバイスのボタンを離したときに送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.MouseEvent.MOUSE_UP</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.MouseEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  410. ユーザーが InteractiveObject インスタンス上でポインティングデバイスのボタンを離したときに送出されます ターゲットが SimpleButton インスタンスである場合オブジェクトは <codeph class="+ topic/ph pr-d/codeph ">upState</codeph> 表示オブジェクトを表示しますターゲットが選択可能なテキストフィールドである場合デフォルトの動作ではテキストフィールドの選択が終了します
  411. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.MouseEvent.MOUSE_OVER_mouseOver" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">mouseOver</apiName><shortdesc class="- topic/shortdesc ">
  412. ユーザーが InteractiveObject インスタンスにポインティングデバイスを合わせたときに送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.MouseEvent.MOUSE_OVER</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.MouseEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  413. ユーザーが InteractiveObject インスタンスにポインティングデバイスを合わせたときに送出されます<codeph class="+ topic/ph pr-d/codeph ">relatedObject</codeph> 直前にポインティングデバイスの下に置かれていたオブジェクトですターゲットが SimpleButton インスタンスである場合オブジェクトはデフォルトの動作としてマウスボタンが押されているかどうかに応じてオブジェクトは <codeph class="+ topic/ph pr-d/codeph ">overState</codeph> または <codeph class="+ topic/ph pr-d/codeph ">upState</codeph> 表示オブジェクトを表示します
  414. <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">mouseOver</codeph> イベントは表示オブジェクトコンテナの別の子オブジェクト上に既にマウスがあった場合でも表示オブジェクトコンテナの子オブジェクトの領域にマウスが入るたびに送出されますこれは<codeph class="+ topic/ph pr-d/codeph ">rollOver</codeph> イベントの目的の動作とは異なりますこの動作は子を持つ表示オブジェクトコンテナのロールアウト動作のコーディングを単純化するためのものです表示オブジェクトの子ではないオブジェクトから表示オブジェクトの領域かその子の領域にマウスが入るとき表示オブジェクトは <codeph class="+ topic/ph pr-d/codeph ">rollOver</codeph> イベントを送出します<codeph class="+ topic/ph pr-d/codeph ">rollOver</codeph> イベントはそのオブジェクトの親チェーンを <codeph class="+ topic/ph pr-d/codeph ">relatedObject</codeph> のルートでも祖先でもない最高位の親から始めて下方向にたどっていきそのオブジェクトに至るまで連続して送出されます</p>
  415. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.MouseEvent.MOUSE_OUT_mouseOut" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">mouseOut</apiName><shortdesc class="- topic/shortdesc ">
  416. ユーザーが InteractiveObject インスタンスからポインティングデバイスを離したときに送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.MouseEvent.MOUSE_OUT</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.MouseEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  417. ユーザーが InteractiveObject インスタンスからポインティングデバイスを離したときに送出されますイベントターゲットは直前にポインティングデバイスの下に置かれていたオブジェクトです<codeph class="+ topic/ph pr-d/codeph ">relatedObject</codeph> はポインティングデバイスの移動先のオブジェクトですターゲットが SimpleButton インスタンスである場合デフォルトの動作ではボタンは <codeph class="+ topic/ph pr-d/codeph ">upState</codeph> 表示オブジェクトを表示します
  418. <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">mouseOut</codeph> イベントは表示オブジェクトコンテナの別の子オブジェクト上にマウスが残る場合でも表示オブジェクトコンテナの子オブジェクトの領域からマウスが出るたびに送出されますこれは<codeph class="+ topic/ph pr-d/codeph ">rollOut</codeph> イベントの目的の動作とは異なりますこの動作は子を持つ表示オブジェクトコンテナのロールオーバー動作のコーディングを単純化するためのものです表示オブジェクトの領域かその子の領域からマウスが出てその表示オブジェクトの子ではないオブジェクトに進む場合表示オブジェクトは <codeph class="+ topic/ph pr-d/codeph ">rollOut</codeph> イベントを送出します<codeph class="+ topic/ph pr-d/codeph ">rollOut</codeph> イベントはそのオブジェクトの親チェーンを上方向にたどり連続して送出されますチェーンの開始はそのオブジェクトで終わりは <codeph class="+ topic/ph pr-d/codeph ">relatedObject</codeph> のルートでも祖先でもない最高位の親です</p>
  419. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.MouseEvent.MOUSE_MOVE_mouseMove" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">mouseMove</apiName><shortdesc class="- topic/shortdesc ">
  420. InteractiveObject の上でユーザーがポインティングデバイスを移動させたときに送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.MouseEvent.MOUSE_MOVE</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.MouseEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  421. InteractiveObject の上でユーザーがポインティングデバイスを移動させたときに送出されますターゲットがユーザーの選択するテキストフィールドである場合選択はデフォルトの動作で更新されます
  422. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.MouseEvent.MOUSE_DOWN_mouseDown" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">mouseDown</apiName><shortdesc class="- topic/shortdesc ">
  423. ユーザーが InteractiveObject インスタンス上でポインティングデバイスのボタンを押したときに送出されます </shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.MouseEvent.MOUSE_DOWN</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.MouseEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  424. ユーザーが InteractiveObject インスタンス上でポインティングデバイスのボタンを押したときに送出されます ターゲットが SimpleButton インスタンスである場合デフォルトの動作では SimpleButton インスタンスは <codeph class="+ topic/ph pr-d/codeph ">downState</codeph> 表示オブジェクトを表示しますターゲットが選択可能なテキストフィールドである場合デフォルトの動作ではテキストフィールドの選択が開始されます
  425. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.MouseEvent.DOUBLE_CLICK_doubleClick" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">doubleClick</apiName><shortdesc class="- topic/shortdesc ">
  426. オブジェクトの doubleClickEnabled フラグが true に設定されている場合にユーザーが InteractiveObject をポインティングデバイスのメインボタンで 2 回続けてすばやくクリックすると送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.MouseEvent.DOUBLE_CLICK</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.MouseEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  427. オブジェクトの <codeph class="+ topic/ph pr-d/codeph ">doubleClickEnabled</codeph> フラグが <codeph class="+ topic/ph pr-d/codeph ">true</codeph> に設定されている場合にはユーザーが同じ InteractiveObject 上でポインティングデバイスのメインボタンを 2 回続けてすばやく押して離すと送出されます<codeph class="+ topic/ph pr-d/codeph ">doubleClick</codeph> イベントが発生するためには<codeph class="+ topic/ph pr-d/codeph ">mouseDown</codeph><codeph class="+ topic/ph pr-d/codeph ">mouseUp</codeph><codeph class="+ topic/ph pr-d/codeph ">click</codeph><codeph class="+ topic/ph pr-d/codeph ">mouseDown</codeph><codeph class="+ topic/ph pr-d/codeph ">mouseUp</codeph> の一連のイベントの直後でなければなりませんこれらのすべてのイベントは<codeph class="+ topic/ph pr-d/codeph ">doubleClick</codeph> イベントと同じターゲットを共有している必要があります2 回目の <codeph class="+ topic/ph pr-d/codeph ">mouseDown</codeph> イベントと <codeph class="+ topic/ph pr-d/codeph ">mouseUp</codeph> イベントによって表される 2 回目のクリックは<codeph class="+ topic/ph pr-d/codeph ">click</codeph> イベント後の特定の期間内に発生する必要がありますこの期間の設定可能な長さはオペレーティングシステムによって異なりほとんどの場合ユーザーが設定できますターゲットが選択可能なテキストフィールドである場合デフォルトの動作ではポインターの下の語が選択されますターゲットの InteractiveObject <codeph class="+ topic/ph pr-d/codeph ">doubleClickEnabled</codeph> フラグが <codeph class="+ topic/ph pr-d/codeph ">true</codeph> に設定されていない場合2 つの <codeph class="+ topic/ph pr-d/codeph ">click</codeph> イベントを受け取ります
  428. <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">doubleClickEnabled</codeph> プロパティのデフォルト値は <codeph class="+ topic/ph pr-d/codeph ">false</codeph> です </p>
  429. <p class="- topic/p ">TextField オブジェクトのダブルクリックによるテキスト選択の動作は<codeph class="+ topic/ph pr-d/codeph ">doubleClick</codeph> イベントとは無関係です<codeph class="+ topic/ph pr-d/codeph ">TextField.doubleClickEnabled</codeph> を使用して TextField の選択を制御します</p>
  430. </apiDesc></adobeApiEventDetail><related-links class="- topic/related-links "><link href="flash.display.xml#InteractiveObject/doubleClickEnabled" class="- topic/link "><linktext class="- topic/linktext ">doubleClickEnabled</linktext></link></related-links></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.MouseEvent.CLICK_click" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">click</apiName><shortdesc class="- topic/shortdesc ">
  431. ユーザーが同じ InteractiveObject 上でポインティングデバイスのメインボタンを押して離すと送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.MouseEvent.CLICK</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.MouseEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  432. ユーザーが同じ InteractiveObject 上でポインティングデバイスのメインボタンを押して離すと送出されますクリックイベントが発生するためにはmouseDown イベントに続いて mouseUp イベントが発生するという順序でなければなりませんターゲットオブジェクトはこれらのイベントの両方について同じでなければなりません異なる場合<codeph class="+ topic/ph pr-d/codeph ">click</codeph> イベントは発生しません<codeph class="+ topic/ph pr-d/codeph ">mouseDown</codeph> イベントまたは <codeph class="+ topic/ph pr-d/codeph ">mouseUp</codeph> イベントの間に他の多数のマウスイベントが発生する場合があり<codeph class="+ topic/ph pr-d/codeph ">click</codeph> イベントは引き続き発生します
  433. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.FocusEvent.MOUSE_FOCUS_CHANGE_mouseFocusChange" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">mouseFocusChange</apiName><shortdesc class="- topic/shortdesc ">
  434. ユーザーがポインティングデバイスでフォーカスを変更しようとすると送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.FocusEvent.MOUSE_FOCUS_CHANGE</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.FocusEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  435. ユーザーがポインティングデバイスでフォーカスを変更しようとすると送出されますこのイベントのデフォルトの動作ではフォーカスを変更して対応する <codeph class="+ topic/ph pr-d/codeph ">focusIn</codeph> イベントと <codeph class="+ topic/ph pr-d/codeph ">focusOut</codeph> イベントを送出します
  436. <p class="- topic/p ">このイベントは現在フォーカスを持っているオブジェクトに送出されますこのイベントの関連オブジェクトはデフォルトの動作を変更していない場合はフォーカスを受け取る InteractiveObject インスタンスですターゲットオブジェクトに正しく登録されているイベントリスナーで <codeph class="+ topic/ph pr-d/codeph ">preventDefault()</codeph> を呼び出すことによってフォーカスを変更できないようにすることができます<codeph class="+ topic/ph pr-d/codeph ">shiftKey</codeph> プロパティは使用されませんフォーカスが変更されデフォルトでは <codeph class="+ topic/ph pr-d/codeph ">focusIn</codeph> および <codeph class="+ topic/ph pr-d/codeph ">focusOut</codeph> イベントが送出されます</p>
  437. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.FocusEvent.KEY_FOCUS_CHANGE_keyFocusChange" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">keyFocusChange</apiName><shortdesc class="- topic/shortdesc ">
  438. ユーザーがキーボード操作によってフォーカスを変更しようとすると送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.FocusEvent.KEY_FOCUS_CHANGE</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.FocusEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  439. ユーザーがキーボード操作によってフォーカスを変更しようとすると送出されますこのイベントのデフォルトの動作ではフォーカスを変更して対応する <codeph class="+ topic/ph pr-d/codeph ">focusIn</codeph> イベントと <codeph class="+ topic/ph pr-d/codeph ">focusOut</codeph> イベントを送出します
  440. <p class="- topic/p ">このイベントは現在フォーカスを持っているオブジェクトに送出されますこのイベントの関連オブジェクトはデフォルトの動作を変更していない場合はフォーカスを受け取る InteractiveObject インスタンスですターゲットオブジェクトに正しく登録されているイベントリスナーで <codeph class="+ topic/ph pr-d/codeph ">preventDefault()</codeph> メソッドを呼び出すことによってフォーカスを変更不可にできますフォーカスが変更されデフォルトでは <codeph class="+ topic/ph pr-d/codeph ">focusIn</codeph> および <codeph class="+ topic/ph pr-d/codeph ">focusOut</codeph> イベントが送出されます</p>
  441. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.FocusEvent.FOCUS_OUT_focusOut" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">focusOut</apiName><shortdesc class="- topic/shortdesc ">
  442. 表示オブジェクトがフォーカスを失った後に送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.FocusEvent.FOCUS_OUT</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.FocusEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  443. 表示オブジェクトがフォーカスを失った<i class="+ topic/ph hi-d/i ">後に</i>送出されますこれはポインティングデバイスまたはキーボードによる操作で別のオブジェクトをハイライトするときに生じますフォーカスを失うオブジェクトはこのイベントのターゲットオブジェクトと呼ばれフォーカスを受け取る対応する InteractiveObject インスタンスは関連オブジェクトと呼ばれます関連オブジェクトへの参照はターゲットオブジェクトの <codeph class="+ topic/ph pr-d/codeph ">relatedObject</codeph> プロパティに格納されます<codeph class="+ topic/ph pr-d/codeph ">shiftKey</codeph> プロパティは使用されませんこのイベントは関連オブジェクトから <codeph class="+ topic/ph pr-d/codeph ">focusIn</codeph> イベントが送出される前に発生します
  444. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.FocusEvent.FOCUS_IN_focusIn" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">focusIn</apiName><shortdesc class="- topic/shortdesc ">
  445. 表示オブジェクトがフォーカスを取得した後に送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.FocusEvent.FOCUS_IN</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.FocusEvent</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  446. 表示オブジェクトがフォーカスを取得した<i class="+ topic/ph hi-d/i ">後に</i>送出されますこの状況はポインティングデバイスまたはキーボードによる操作でオブジェクトをハイライトするときに生じますそのようなフォーカスの受け取り側はこのイベントのターゲットオブジェクトと呼ばれこの変更によってフォーカスを失う対応する InteractiveObject インスタンスは関連オブジェクトと呼ばれます関連オブジェクトへの参照は受信側オブジェクトの <codeph class="+ topic/ph pr-d/codeph ">relatedObject</codeph> プロパティに格納されます<codeph class="+ topic/ph pr-d/codeph ">shiftKey</codeph> プロパティは使用されませんこのイベントは前のオブジェクトの <codeph class="+ topic/ph pr-d/codeph ">focusOut</codeph> イベントが送出された後に発生します
  447. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.Event.SELECT_ALL_selectAll" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">selectAll</apiName><shortdesc class="- topic/shortdesc ">
  448. ユーザーがすべて選択操作のためにプラットフォーム固有のアクセラレーターキーの組み合わせをアクティブ化したときまたはコンテキストメニューからすべて選択を選択した場合に送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="1.5" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.Event.SELECT_ALL</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.Event</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  449. ユーザーがすべて選択操作のためにプラットフォーム固有のアクセラレーターキーの組み合わせをアクティブ化したときまたはコンテキストメニューからすべて選択を選択した場合に送出されますこのイベントは現在フォーカスを持っているオブジェクトに送出されます現在フォーカスを持っているオブジェクトが TextField である場合このイベントのデフォルトの動作ではテキストフィールドのすべてのコンテンツが選択されます
  450. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.Event.PASTE_paste" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">paste</apiName><shortdesc class="- topic/shortdesc ">
  451. ユーザーがペースト操作のためにプラットフォーム固有のアクセラレーターキーの組み合わせをアクティブ化したときまたはコンテキストメニューからペーストを選択した場合に送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="1.5" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.Event.PASTE</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.Event</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  452. ユーザーがペースト操作のためにプラットフォーム固有のアクセラレーターキーの組み合わせをアクティブ化したときまたはコンテキストメニューからペーストを選択した場合に送出されますこのイベントは現在フォーカスを持っているオブジェクトに送出されます現在フォーカスを持っているオブジェクトが TextField である場合このイベントのデフォルトの動作ではクリップボードのコンテンツが現在の挿入ポイントのテキストフィールドにペーストされそのテキストフィールドで現在選択されているテキストが置き換えられます
  453. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.Event.CUT_cut" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">cut</apiName><shortdesc class="- topic/shortdesc ">
  454. ユーザーがカット操作のためにプラットフォーム固有のアクセラレーターキーの組み合わせをアクティブ化したときまたはコンテキストメニューからカットを選択した場合に送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="1.5" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.Event.CUT</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.Event</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  455. ユーザーがカット操作のためにプラットフォーム固有のアクセラレーターキーの組み合わせをアクティブ化したときまたはコンテキストメニューからカットを選択した場合に送出されますこのイベントは現在フォーカスを持っているオブジェクトに送出されます現在フォーカスを持っているオブジェクトが TextField である場合このイベントのデフォルトの動作ではそのテキストフィールド内で現在選択されているテキストがクリップボードにカットされます
  456. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.Event.COPY_copy" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">copy</apiName><shortdesc class="- topic/shortdesc ">
  457. ユーザーがコピー操作のためにプラットフォーム固有のアクセラレーターキーの組み合わせをアクティブ化したときまたはコンテキストメニューからコピーを選択した場合に送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="1.5" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.Event.COPY</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.Event</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  458. ユーザーがコピー操作のためにプラットフォーム固有のアクセラレーターキーの組み合わせをアクティブ化したときまたはコンテキストメニューからコピーを選択した場合に送出されますこのイベントは現在フォーカスを持っているオブジェクトに送出されます現在フォーカスを持っているオブジェクトが TextField である場合このイベントのデフォルトの動作ではそのテキストフィールド内で現在選択されているテキストがクリップボードにコピーされます
  459. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:InteractiveObject_flash.events.Event.CLEAR_clear" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">clear</apiName><shortdesc class="- topic/shortdesc ">
  460. ユーザーがコンテキストメニューから削除を選択した場合に送信されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="1.5" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.Event.CLEAR</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.Event</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  461. ユーザーがコンテキストメニューから削除を選択した場合に送信されますこのイベントは現在フォーカスを持っているオブジェクトに送出されます現在フォーカスを持っているオブジェクトが TextField である場合このイベントのデフォルトの動作ではそのテキストフィールド内で現在選択されているテキストが削除されます
  462. </apiDesc></adobeApiEventDetail></adobeApiEvent><apiConstructor id="flash.display:InteractiveObject:InteractiveObject" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiOperation/apiOperation apiOperation/apiConstructor"><apiName class="- topic/title reference/title apiRef/apiName ">InteractiveObject</apiName><shortdesc class="- topic/shortdesc ">
  463. 新しい InteractiveObject() コンストラクターを呼び出すとArgumentError 例外がスローされます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiConstructorDetail class="- topic/body reference/refbody apiRef/apiDetail apiOperation/apiOperationDetail apiOperation/apiConstructorDetail"><apiConstructorDef class="- topic/section reference/section apiRef/apiDef apiOperation/apiConstructorDef "><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/></apiConstructorDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  464. <codeph class="+ topic/ph pr-d/codeph ">new InteractiveObject()</codeph> コンストラクターを呼び出すと<codeph class="+ topic/ph pr-d/codeph ">ArgumentError</codeph> 例外がスローされますしかしInteractiveObject の以下に示すサブクラスのコンストラクターを呼び出すことができます
  465. <ul class="- topic/ul "><li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">new SimpleButton()</codeph></li><li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">new TextField()</codeph></li><li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">new Loader()</codeph></li><li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">new Sprite()</codeph></li><li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">new MovieClip()</codeph></li></ul>
  466. </apiDesc></apiConstructorDetail></apiConstructor><apiOperation id="flash.display:InteractiveObject:requestSoftKeyboard" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiOperation/apiOperation "><apiName class="- topic/title reference/title apiRef/apiName ">requestSoftKeyboard</apiName><shortdesc class="- topic/shortdesc ">
  467. 仮想キーボードを前面に表示します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10.2" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="2.6" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiOperationDetail class="- topic/body reference/refbody apiRef/apiDetail apiOperation/apiOperationDetail "><apiOperationDef class="- topic/section reference/section apiRef/apiDef apiOperation/apiOperationDef "><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiReturn class="- topic/ph reference/ph apiRef/apiDefItem apiOperation/apiReturn "><apiDesc class="- topic/section reference/section apiRef/apiDesc "> <codeph class="+ topic/ph pr-d/codeph ">true</codeph> はソフトキーボードの要求が許可されたことを <codeph class="+ topic/ph pr-d/codeph ">false</codeph> はソフトキーボードが前面に表示されなかったことをそれぞれ意味します
  468. </apiDesc><apiOperationClassifier class="- topic/xref reference/xref apiRef/apiRelation apiOperation/apiOperationClassifier ">Boolean</apiOperationClassifier></apiReturn><apiTipTexts><apiTipText class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiTipText ">現在のコンテンツでサポートされている場合にキーボードを表示します
  469. </apiTipText></apiTipTexts></apiOperationDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  470. 仮想キーボードを前面に表示します
  471. <p class="- topic/p ">このメソッドを呼び出すとInteractiveObject インスタンスがフォーカスされ必要に応じてソフトキーボードが前面に表示されます<codeph class="+ topic/ph pr-d/codeph ">needsSoftKeyboard</codeph> <codeph class="+ topic/ph pr-d/codeph ">true</codeph> であることも必要ですハードウェアキーボードが使用できる場合またはクライアントシステムが仮想キーボードをサポートしていない場合はキーボードが前面に表示されることはありません</p>
  472. <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意</b>このメソッドはiOS 上の AIR アプリケーションではサポートされていません</p>
  473. </apiDesc></apiOperationDetail><related-links class="- topic/related-links "><link href="flash.display.xml#InteractiveObject/needsSoftKeyboard" class="- topic/link "><linktext class="- topic/linktext ">needsSoftKeyboard</linktext></link></related-links></apiOperation><apiValue id="flash.display:InteractiveObject:accessibilityImplementation:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">accessibilityImplementation</apiName><shortdesc class="- topic/shortdesc ">
  474. この InteractiveObject インスタンスの現在のアクセシビリティの実装AccessibilityImplementationです</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="readwrite" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">flash.accessibility:AccessibilityImplementation</apiValueClassifier></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  475. この InteractiveObject インスタンスの現在のアクセシビリティの実装AccessibilityImplementationです
  476. </apiDesc></apiValueDetail><related-links class="- topic/related-links "><link href="flash.accessibility.xml#AccessibilityImplementation" class="- topic/link "><linktext class="- topic/linktext ">flash.accessibility.AccessibilityImplementation</linktext></link></related-links></apiValue><apiValue id="flash.display:InteractiveObject:contextMenu:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">contextMenu</apiName><shortdesc class="- topic/shortdesc ">
  477. このオブジェクトに関連付けられたコンテキストメニューを指定します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="readwrite" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">flash.display:NativeMenu</apiValueClassifier><apiTipTexts><apiTipText class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiTipText ">このオブジェクトに関連付けられたコンテキストメニュー
  478. </apiTipText></apiTipTexts></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  479. このオブジェクトに関連付けられたコンテキストメニューを指定します
  480. <p class="- topic/p ">Flash Player で実行されているコンテンツではこのプロパティは ContextMenu オブジェクトです AIR ランタイムではContextMenu クラスは NativeMenu クラスを拡張しますただしFlash Player ではContextMenu クラスのみサポートしておりNativeMenu クラスはサポートしていません
  481. </p>
  482. <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意</b>TextField オブジェクトのコンテキストメニューにはクリップボードメニューが常に含まれますクリップボードメニューにはカットコピーペーストクリアおよびすべて選択コマンドがありますこれらのコマンドを TextField オブジェクトのコンテキストメニューから削除することはできませんTextField オブジェクトでこれらのコマンドを選択または相当するキーボード操作を実行する際<codeph class="+ topic/ph pr-d/codeph ">clear</codeph><codeph class="+ topic/ph pr-d/codeph ">copy</codeph><codeph class="+ topic/ph pr-d/codeph ">cut</codeph><codeph class="+ topic/ph pr-d/codeph ">paste</codeph> および <codeph class="+ topic/ph pr-d/codeph ">selectAll</codeph> 各イベントは生成されません</p>
  483. </apiDesc><example conref="examples\ContextMenu_custom.as" class="- topic/example "> 次の例ではSprite contextMenu プロパティを ContextMenu オブジェクトに設定してSprite オブジェクトにカスタムコンテキストメニューアイテムを追加する方法を示しますこの例は <xref href="http://actionscriptexamples.com/2009/03/05/creating-a-custom-context-menu-item-in-flash-using-actionscript-30/" scope="_mmexternal" class="- topic/xref ">ActionScriptExamples.com</xref> で提供されています
  484. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  485. var red_cmi:ContextMenuItem = new ContextMenuItem("red");
  486. red_cmi.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, cmi_menuItemSelect);
  487. var cm:ContextMenu = new ContextMenu();
  488. cm.customItems.push(red_cmi);
  489. cm.hideBuiltInItems();
  490. var spr:Sprite = new Sprite();
  491. spr.contextMenu = cm;
  492. spr.graphics.beginFill(0x000000);
  493. spr.graphics.drawRect(0, 0, 120, 90);
  494. spr.graphics.endFill();
  495. spr.x = 10;
  496. spr.y = 10;
  497. addChild(spr);
  498. function cmi_menuItemSelect(evt:ContextMenuEvent):void {
  499. spr.graphics.clear();
  500. spr.graphics.beginFill(0xFF0000);
  501. spr.graphics.drawRect(0, 0, 120, 90);
  502. spr.graphics.endFill();
  503. }
  504. </codeblock></example></apiValueDetail></apiValue><apiValue id="flash.display:InteractiveObject:doubleClickEnabled:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">doubleClickEnabled</apiName><shortdesc class="- topic/shortdesc ">
  505. オブジェクトが doubleClick イベントを受け取るかどうかを指定します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="readwrite" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">Boolean</apiValueClassifier><apiTipTexts><apiTipText class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiTipText ">このオブジェクトがダブルクリックメッセージを受け取るかどうかを指定します
  506. </apiTipText></apiTipTexts></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  507. オブジェクトが <codeph class="+ topic/ph pr-d/codeph ">doubleClick</codeph> イベントを受け取るかどうかを指定しますデフォルト値は <codeph class="+ topic/ph pr-d/codeph ">false</codeph> ですこれはInteractiveObject インスタンスがデフォルトでは <codeph class="+ topic/ph pr-d/codeph ">doubleClick</codeph> イベントを受け取らないことを意味します<codeph class="+ topic/ph pr-d/codeph ">doubleClickEnabled</codeph> プロパティが<codeph class="+ topic/ph pr-d/codeph ">true</codeph> に設定される場合インスタンスはその境界内で <codeph class="+ topic/ph pr-d/codeph ">doubleClick</codeph> イベントを受け取りますInteractiveObject インスタンスの <codeph class="+ topic/ph pr-d/codeph ">mouseEnabled</codeph> プロパティも<codeph class="+ topic/ph pr-d/codeph ">true</codeph> に設定する必要がありますこの設定はオブジェクトが <codeph class="+ topic/ph pr-d/codeph ">doubleClick</codeph> イベントを受け取るようにするには必須です
  508. <p class="- topic/p ">このプロパティを設定してもイベントは送出されません<codeph class="+ topic/ph pr-d/codeph ">addEventListener()</codeph> メソッドの使用は<codeph class="+ topic/ph pr-d/codeph ">doubleClick</codeph> イベントのイベントリスナーを追加する場合に必須です</p>
  509. </apiDesc></apiValueDetail><related-links class="- topic/related-links "><link href="flash.display.xml#InteractiveObject/event:doubleClick" class="- topic/link "><linktext class="- topic/linktext ">doubleClick</linktext></link><link href="flash.display.xml#InteractiveObject/mouseEnabled" class="- topic/link "><linktext class="- topic/linktext ">mouseEnabled</linktext></link><link href="flash.display.xml#DisplayObjectContainer/mouseChildren" class="- topic/link "><linktext class="- topic/linktext ">flash.display.DisplayObjectContainer.mouseChildren</linktext></link></related-links></apiValue><apiValue id="flash.display:InteractiveObject:focusRect:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">focusRect</apiName><shortdesc class="- topic/shortdesc ">
  510. このオブジェクトがフォーカス矩形を表示するかどうかを指定します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata><asCustoms class="+ topic/metadata adobe-api-d/asCustoms "><internal>FP IMD: See the AS2 MovieClip._focusRect, Button._focusRect, and
  511. _focusRect (global property) topics for information to migrate to the ASDoc description of this
  512. AS3 property.
  513. </internal></asCustoms></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="readwrite" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">Object</apiValueClassifier></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  514. このオブジェクトがフォーカス矩形を表示するかどうかを指定します<codeph class="+ topic/ph pr-d/codeph ">true</codeph><codeph class="+ topic/ph pr-d/codeph ">false</codeph> または <codeph class="+ topic/ph pr-d/codeph ">null</codeph> 3 つの値のいずれかを指定できます<codeph class="+ topic/ph pr-d/codeph ">true</codeph> および <codeph class="+ topic/ph pr-d/codeph ">false</codeph> の値は予想されるとおりフォーカス矩形を表示するかどうかが指定されます<codeph class="+ topic/ph pr-d/codeph ">null</codeph> 値はこのオブジェクトが Stage <codeph class="+ topic/ph pr-d/codeph ">stageFocusRect</codeph> プロパティに従うことを示します
  515. </apiDesc></apiValueDetail></apiValue><apiValue id="flash.display:InteractiveObject:mouseEnabled:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">mouseEnabled</apiName><shortdesc class="- topic/shortdesc ">
  516. このオブジェクトでマウスまたはその他のユーザー入力メッセージを受け取るかどうかを指定します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="readwrite" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">Boolean</apiValueClassifier></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  517. このオブジェクトでマウスまたはその他のユーザー入力メッセージを受け取るかどうかを指定しますデフォルト値は <codeph class="+ topic/ph pr-d/codeph ">true</codeph> でありこれは表示リスト上の InteractiveObject インスタンスがデフォルトでマウスイベントまたはその他のユーザー入力イベントを受け取ることを意味します<codeph class="+ topic/ph pr-d/codeph ">mouseEnabled</codeph> <codeph class="+ topic/ph pr-d/codeph ">false</codeph> に設定するとインスタンスではマウスイベントまたはキーボードイベントなどその他のユーザー入力イベントを一切受け取りません表示リスト上のこのインスタンスの子は影響を受けません表示リスト上のオブジェクトのすべての子に関する <codeph class="+ topic/ph pr-d/codeph ">mouseEnabled</codeph> 動作を変更するには<codeph class="+ topic/ph pr-d/codeph ">flash.display.DisplayObjectContainer.mouseChildren</codeph> を使用します
  518. <p class="- topic/p "> このプロパティを設定してもイベントは送出されませんインタラクティブな機能を作成するには<codeph class="+ topic/ph pr-d/codeph ">addEventListener()</codeph> メソッドを使用する必要があります</p>
  519. </apiDesc></apiValueDetail><related-links class="- topic/related-links "><link href="flash.display.xml#DisplayObjectContainer/mouseChildren" class="- topic/link "><linktext class="- topic/linktext ">flash.display.DisplayObjectContainer.mouseChildren</linktext></link></related-links></apiValue><apiValue id="flash.display:InteractiveObject:needsSoftKeyboard:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">needsSoftKeyboard</apiName><shortdesc class="- topic/shortdesc ">
  520. この InteractiveObject インスタンスがフォーカスを受け取ったときに仮想キーボード画面上のソフトキーボードを表示するかどうかを指定します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10.2" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="2.6" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="readwrite" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">Boolean</apiValueClassifier></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  521. この InteractiveObject インスタンスがフォーカスを受け取ったときに仮想キーボード画面上のソフトキーボードを表示するかどうかを指定します
  522. <p class="- topic/p ">デフォルトではこの値は <codeph class="+ topic/ph pr-d/codeph ">false</codeph> フォーカスを受け取った InteractiveObject インスタンスはソフトキーボードを前面に表示しません<codeph class="+ topic/ph pr-d/codeph ">needsSoftKeyboard</codeph> プロパティが <codeph class="+ topic/ph pr-d/codeph ">true</codeph> に設定されるとInteractiveObject インスタンスがユーザー入力を受け付けられる状態になったときにランタイムによってソフトキーボードが前面に表示されますInteractiveObject インスタンスはステージの <codeph class="+ topic/ph pr-d/codeph ">focus</codeph> プロパティを設定するプログラムの呼び出しまたはタップなどのユーザーの操作の後でユーザー入力を受け付けられる状態になりますクライアントシステムに使用できるハードウェアキーボードがない場合またはクライアントシステムが仮想キーボードをサポートしていない場合はソフトキーボードは前面に表示されません</p>
  523. <p class="- topic/p ">ソフトキーボードが前面に表示されたときおよび背後に移動したときInteractiveObject インスタンスは <codeph class="+ topic/ph pr-d/codeph ">softKeyboardActivating</codeph><codeph class="+ topic/ph pr-d/codeph ">softKeyboardActivate</codeph> および <codeph class="+ topic/ph pr-d/codeph ">softKeyboardDeactivate</codeph> イベントを送出します</p>
  524. <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意</b>このプロパティはiOS 上の AIR アプリケーションではサポートされていません</p>
  525. </apiDesc></apiValueDetail><related-links class="- topic/related-links "><link href="flash.display.xml#InteractiveObject/event:softKeyboardActivating" class="- topic/link "><linktext class="- topic/linktext ">softKeyboardActivating</linktext></link><link href="flash.display.xml#InteractiveObject/event:softKeyboardActivate" class="- topic/link "><linktext class="- topic/linktext ">softKeyboardActivate</linktext></link><link href="flash.display.xml#InteractiveObject/event:softKeyboardDeactivate" class="- topic/link "><linktext class="- topic/linktext ">softKeyboardDeactivate</linktext></link></related-links></apiValue><apiValue id="flash.display:InteractiveObject:softKeyboardInputAreaOfInterest:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">softKeyboardInputAreaOfInterest</apiName><shortdesc class="- topic/shortdesc ">
  526. ソフトキーボードが表示されたときに画面に表示したままにする領域を定義します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10.2" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="2.6" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="readwrite" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">flash.geom:Rectangle</apiValueClassifier><apiTipTexts><apiTipText class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiTipText ">ソフトキーボードが開かれたときに画面に表示する領域を設定します
  527. </apiTipText></apiTipTexts></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  528. ソフトキーボードが表示されたときに画面に表示したままにする領域を定義します
  529. <p class="- topic/p ">この InteractiveObject <codeph class="+ topic/ph pr-d/codeph ">needsSoftKeyboard</codeph> プロパティを <codeph class="+ topic/ph pr-d/codeph ">true</codeph> に設定するとランタイムによってユーザーの入力中にオブジェクトを表示したままにするために必要な調整が行われます通常ランタイムでは<codeph class="+ topic/ph pr-d/codeph ">DisplayObject.getBounds()</codeph> メソッドから取得したオブジェクトの境界を使用しますこの <codeph class="+ topic/ph pr-d/codeph ">softKeyboardInputAreaOfInterest</codeph> プロパティを使用すると異なる領域を指定することができます</p>
  530. <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">softKeyboardInputAreaOfInterest</codeph> をステージ座標で指定します</p>
  531. <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意</b>Android では<codeph class="+ topic/ph pr-d/codeph ">softKeyboardInputAreaOfInterest</codeph> は横置きについては考慮されていません</p>
  532. </apiDesc></apiValueDetail><related-links class="- topic/related-links "><link href="flash.display.xml#DisplayObject/getBounds()" class="- topic/link "><linktext class="- topic/linktext ">flash.display.DisplayObject.getBounds()</linktext></link></related-links></apiValue><apiValue id="flash.display:InteractiveObject:tabEnabled:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">tabEnabled</apiName><shortdesc class="- topic/shortdesc ">
  533. このオブジェクトがタブ順序に含まれるかどうかを指定します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata><asCustoms class="+ topic/metadata adobe-api-d/asCustoms "><internal>FP IMD: See the AS2 MovieClip.tabEnabled, Button.tabEnabled, and
  534. TextField.tabEnabled topics for information to migrate to the ASDoc description of this
  535. AS3 property.
  536. </internal></asCustoms></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="readwrite" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">Boolean</apiValueClassifier><apiTipTexts><apiTipText class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiTipText ">このオブジェクトがタブ順序に含まれるかどうかを指定します
  537. </apiTipText></apiTipTexts></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  538. このオブジェクトがタブ順序に含まれるかどうかを指定しますこのオブジェクトがタブ順序に含まれる場合値は <codeph class="+ topic/ph pr-d/codeph ">true</codeph> です含まれない場合値は <codeph class="+ topic/ph pr-d/codeph ">false</codeph> ですデフォルトでは次の例外を除き値は <codeph class="+ topic/ph pr-d/codeph ">false</codeph> です
  539. <ul class="- topic/ul "><li class="- topic/li ">SimpleButton オブジェクトの場合この値は <codeph class="+ topic/ph pr-d/codeph ">true</codeph> です</li><li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">type = "input"</codeph> を持つ TextField オブジェクトの場合値は <codeph class="+ topic/ph pr-d/codeph ">true</codeph> です</li><li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">buttonMode = true</codeph> を持つ Sprite オブジェクトまたは MovieClip オブジェクトの場合値は <codeph class="+ topic/ph pr-d/codeph ">true</codeph> です</li></ul>
  540. </apiDesc></apiValueDetail></apiValue><apiValue id="flash.display:InteractiveObject:tabIndex:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">tabIndex</apiName><shortdesc class="- topic/shortdesc ">
  541. SWF ファイル内のオブジェクトのタブ順序を指定します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="readwrite" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">int</apiValueClassifier><apiTipTexts><apiTipText class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiTipText ">このオブジェクトのタブインデックス
  542. </apiTipText></apiTipTexts></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  543. SWF ファイル内のオブジェクトのタブ順序を指定しますデフォルトでは <codeph class="+ topic/ph pr-d/codeph ">tabIndex</codeph> プロパティは -1 でありこれはそのオブジェクトにタブインデックスが設定されないことを意味します
  544. <p class="- topic/p ">SWF ファイルに現在表示されているオブジェクトに <codeph class="+ topic/ph pr-d/codeph ">tabIndex</codeph> プロパティがある場合は自動タブ順序が無効になりSWF ファイルのオブジェクトの <codeph class="+ topic/ph pr-d/codeph ">tabIndex</codeph> プロパティからタブ順序が計算されますカスタムタブ順序には<codeph class="+ topic/ph pr-d/codeph ">tabIndex</codeph> プロパティを持つオブジェクトのみが含まれます</p>
  545. <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">tabIndex</codeph> プロパティは通常負以外の整数ですオブジェクトのタブ順序はその <codeph class="+ topic/ph pr-d/codeph ">tabIndex</codeph> プロパティに従って昇順に決定されます<codeph class="+ topic/ph pr-d/codeph ">tabIndex</codeph> の値が 1 であるオブジェクトは<codeph class="+ topic/ph pr-d/codeph ">tabIndex</codeph> の値が 2 であるオブジェクトの前になります複数のオブジェクトの <codeph class="+ topic/ph pr-d/codeph ">tabIndex</codeph> に同じ値を使用しないでください</p>
  546. <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">tabIndex</codeph>プロパティで定義されるカスタムタブ順序は <i class="+ topic/ph hi-d/i ">flat</i> ですつまりSWF ファイル内のオブジェクトの階層関係は無視されますSWF ファイルで <codeph class="+ topic/ph pr-d/codeph ">tabIndex</codeph> プロパティを持つすべてのオブジェクトはタブ順序に従って配置されますタブ順序は <codeph class="+ topic/ph pr-d/codeph ">tabIndex</codeph> の値の順番に従います </p>
  547. <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意</b>TLFTextField インスタンスのタブ順序を設定するにはTLFTextField の表示オブジェクトの子を InteractiveObject としてキャストしてから<codeph class="+ topic/ph pr-d/codeph ">tabIndex</codeph> プロパティを設定します次に実際の使用例を示します
  548. <pre xml:space="preserve" class="- topic/pre ">
  549. InteractiveObject(tlfInstance.getChildAt(1)).tabIndex = 3;
  550. </pre>
  551. TLFTextField オブジェクトの 3 つのインスタンス<codeph class="+ topic/ph pr-d/codeph ">tlfInstance1</codeph><codeph class="+ topic/ph pr-d/codeph ">tlfInstance2</codeph> および <codeph class="+ topic/ph pr-d/codeph ">tlfInstance3</codeph>についてデフォルト設定のタブ順序を逆にするには次のようにします
  552. <pre xml:space="preserve" class="- topic/pre ">
  553. InteractiveObject(tlfInstance1.getChildAt(1)).tabIndex = 3;
  554. InteractiveObject(tlfInstance2.getChildAt(1)).tabIndex = 2;
  555. InteractiveObject(tlfInstance3.getChildAt(1)).tabIndex = 1;
  556. </pre>
  557. </p>
  558. </apiDesc></apiValueDetail></apiValue></apiClassifier><apiClassifier languages="" id="flash.display:GraphicsTrianglePath" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiClassifier/apiClassifier "><apiName class="- topic/title reference/title apiRef/apiName ">GraphicsTrianglePath</apiName><shortdesc class="- topic/shortdesc ">
  559. u,v塗り座標または通常の塗りのいずれかを使用してレンダリングが可能な順序付けられた 1 セットの三角形を定義します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="1.5" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiClassifierDetail class="- topic/body reference/refbody apiRef/apiDetail apiClassifier/apiClassifierDetail "><apiClassifierDef class="- topic/section reference/section apiRef/apiDef apiClassifier/apiClassifierDef "><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiStatic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiStatic "/><apiFinal class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiFinal "/><apiBaseInterface>flash.display:IGraphicsPath</apiBaseInterface><apiBaseInterface>flash.display:IGraphicsData</apiBaseInterface><apiBaseClassifier class="- topic/xref reference/xref apiRef/apiRelation apiClassifier/apiBaseClassifier ">Object</apiBaseClassifier></apiClassifierDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  560. u,v塗り座標または通常の塗りのいずれかを使用してレンダリングが可能な順序付けられた 1 セットの三角形を定義しますパス内にある各三角形は 3 セットのx, y座標で表されそれぞれが三角形の 1 点となります
  561. <p class="- topic/p ">
  562. 三角形の頂点には z 座標は含まれず必ずしも 3D 面を表すとは限りませんしかし三角形パスを使用して2D 空間での 3D ジオメトリのレンダリングをサポートすることは可能です
  563. </p>
  564. </apiDesc></apiClassifierDetail><related-links class="- topic/related-links "><link href="flash.display.xml#Graphics/drawTriangles()" class="- topic/link "><linktext class="- topic/linktext ">flash.display.Graphics.drawTriangles()</linktext></link></related-links><apiConstructor id="flash.display:GraphicsTrianglePath:GraphicsTrianglePath" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiOperation/apiOperation apiOperation/apiConstructor"><apiName class="- topic/title reference/title apiRef/apiName ">GraphicsTrianglePath</apiName><shortdesc class="- topic/shortdesc ">
  565. 新しい GraphicsTrianglePath オブジェクトを作成します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="1.5" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiConstructorDetail class="- topic/body reference/refbody apiRef/apiDetail apiOperation/apiOperationDetail apiOperation/apiConstructorDetail"><apiConstructorDef class="- topic/section reference/section apiRef/apiDef apiOperation/apiConstructorDef "><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiParam class="- topic/ph reference/ph apiRef/apiDefItem apiOperation/apiParam "><apiItemName class="- topic/keyword reference/keyword apiRef/apiItemName ">vertices</apiItemName><apiType value="Vector$Number" name="type" class="- topic/state reference/state apiRef/apiType "/><apiData class="- topic/ph reference/ph apiRef/apiData ">null</apiData><apiDesc class="- topic/section reference/section apiRef/apiDesc ">Number Vector 数値の各ペアはポイントx y のペアとして扱われます必須です
  566. </apiDesc></apiParam><apiParam class="- topic/ph reference/ph apiRef/apiDefItem apiOperation/apiParam "><apiItemName class="- topic/keyword reference/keyword apiRef/apiItemName ">indices</apiItemName><apiType value="Vector$int" name="type" class="- topic/state reference/state apiRef/apiType "/><apiData class="- topic/ph reference/ph apiRef/apiData ">null</apiData><apiDesc class="- topic/section reference/section apiRef/apiDesc ">整数またはインデックスの Vector です3 つのインデックスごとに三角形が定義されます
  567. </apiDesc></apiParam><apiParam class="- topic/ph reference/ph apiRef/apiDefItem apiOperation/apiParam "><apiItemName class="- topic/keyword reference/keyword apiRef/apiItemName ">uvtData</apiItemName><apiType value="Vector$Number" name="type" class="- topic/state reference/state apiRef/apiType "/><apiData class="- topic/ph reference/ph apiRef/apiData ">null</apiData><apiDesc class="- topic/section reference/section apiRef/apiDesc ">テクスチャマッピングを適用するために使用される正規化座標の Vector です
  568. </apiDesc></apiParam><apiParam class="- topic/ph reference/ph apiRef/apiDefItem apiOperation/apiParam "><apiItemName class="- topic/keyword reference/keyword apiRef/apiItemName ">culling</apiItemName><apiOperationClassifier class="- topic/xref reference/xref apiRef/apiRelation apiOperation/apiOperationClassifier ">String</apiOperationClassifier><apiData class="- topic/ph reference/ph apiRef/apiData ">none</apiData><apiDesc class="- topic/section reference/section apiRef/apiDesc ">特定の方向に面する三角形をレンダリングするかどうかを指定します現在のビューで見えない三角形のレンダリングを避けるのに使用しますTriangleCulling クラスで定義された任意の値に設定できます
  569. </apiDesc></apiParam></apiConstructorDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  570. 新しい GraphicsTrianglePath オブジェクトを作成します
  571. </apiDesc></apiConstructorDetail><related-links class="- topic/related-links "><link href="flash.display.xml#GraphicsTrianglePath/culling" class="- topic/link "><linktext class="- topic/linktext ">culling</linktext></link><link href="flash.display.xml#TriangleCulling" class="- topic/link "><linktext class="- topic/linktext ">flash.display.TriangleCulling</linktext></link></related-links></apiConstructor><apiValue id="flash.display:GraphicsTrianglePath:indices" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">indices</apiName><shortdesc class="- topic/shortdesc ">
  572. 整数またはインデックスの Vector です3 つのインデックスごとに三角形が定義されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="1.5" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiType value="Vector$int" name="type" class="- topic/state reference/state apiRef/apiType "/></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  573. 整数またはインデックスの Vector です3 つのインデックスごとに三角形が定義されますindexes パラメーターが null の場合3 つの頂点vertices Vector 内の 6 つの xy ペアごとに三角形が定義されますnull でない場合各インデックスは頂点vertices Vector 内の数値のペアを参照します 例えば<codeph class="+ topic/ph pr-d/codeph ">indexes[1]</codeph> <codeph class="+ topic/ph pr-d/codeph ">vertices[2]</codeph>, <codeph class="+ topic/ph pr-d/codeph ">vertices[3]</codeph>を参照します
  574. </apiDesc></apiValueDetail></apiValue><apiValue id="flash.display:GraphicsTrianglePath:uvtData" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">uvtData</apiName><shortdesc class="- topic/shortdesc ">
  575. テクスチャマッピングを適用するために使用される正規化座標の Vector です</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="1.5" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiType value="Vector$Number" name="type" class="- topic/state reference/state apiRef/apiType "/></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  576. テクスチャマッピングを適用するために使用される正規化座標の Vector です各座標は塗りに使用されるビットマップ上のポイントを参照します頂点ごとに 1 つの UV 座標または 1 つの UVT 座標が必要です
  577. <p class="- topic/p ">
  578. UV 座標では0,0はビットマップの左上隅で1,1はビットマップの右下隅です
  579. </p>
  580. <p class="- topic/p ">
  581. このベクターの長さが <codeph class="+ topic/ph pr-d/codeph ">vertices</codeph> ベクターの 2 倍である場合外見上の修正を行うことなく正規化座標が使用されます
  582. </p>
  583. <p class="- topic/p ">
  584. このベクターの長さが <codeph class="+ topic/ph pr-d/codeph ">vertices</codeph> ベクターの 3 倍である場合3 番目の座標はt視点空間における視点からテクスチャまでの距離として解釈されますこれにより3D でテクスチャをマッピングする場合にレンダリングエンジンが外観を正しく適用できるようになります
  585. </p>
  586. </apiDesc></apiValueDetail></apiValue><apiValue id="flash.display:GraphicsTrianglePath:vertices" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">vertices</apiName><shortdesc class="- topic/shortdesc ">
  587. Number Vector 数値の各ペアはポイントx y のペアとして扱われます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="1.5" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiType value="Vector$Number" name="type" class="- topic/state reference/state apiRef/apiType "/></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  588. Number Vector 数値の各ペアはポイントx y のペアとして扱われます
  589. </apiDesc></apiValueDetail></apiValue><apiValue id="flash.display:GraphicsTrianglePath:culling:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">culling</apiName><shortdesc class="- topic/shortdesc ">
  590. 特定の方向に面する三角形をレンダリングするかどうかを指定します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="1.5" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="readwrite" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">String</apiValueClassifier></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  591. 特定の方向に面する三角形をレンダリングするかどうかを指定します現在のビューで見えない三角形のレンダリングを避けるのに使用します
  592. <p class="- topic/p ">
  593. TriangleCulling クラスで定義された任意の値に設定できます
  594. </p>
  595. </apiDesc></apiValueDetail><related-links class="- topic/related-links "><link href="flash.display.xml#TriangleCulling" class="- topic/link "><linktext class="- topic/linktext ">flash.display.TriangleCulling</linktext></link></related-links></apiValue></apiClassifier><apiClassifier languages="" id="flash.display:DisplayObject" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiClassifier/apiClassifier "><apiName class="- topic/title reference/title apiRef/apiName ">DisplayObject</apiName><shortdesc class="- topic/shortdesc ">
  596. DisplayObject クラスは表示リストに含めることのできるすべてのオブジェクトに関する基本クラスです</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiClassifierDetail class="- topic/body reference/refbody apiRef/apiDetail apiClassifier/apiClassifierDetail "><apiClassifierDef class="- topic/section reference/section apiRef/apiDef apiClassifier/apiClassifierDef "><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiStatic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiStatic "/><apiBaseInterface>flash.display:IBitmapDrawable</apiBaseInterface><apiBaseClassifier class="- topic/xref reference/xref apiRef/apiRelation apiClassifier/apiBaseClassifier ">flash.events:EventDispatcher</apiBaseClassifier></apiClassifierDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  597. DisplayObject クラスは表示リストに含めることのできるすべてのオブジェクトに関する基本クラスです表示リストではFlash ランタイムに表示されるすべてのオブジェクトを管理しますDisplayObjectContainer クラスは表示リスト内で表示オブジェクトを配置するために使用しますDisplayObjectContainer オブジェクトは子表示オブジェクトを持つことができますこれに対して他の表示オブジェクト例えば ShapeTextField オブジェクトリーフノードですつまり親と兄弟だけを持ち子はありません
  598. <p class="- topic/p ">DisplayObject クラスは基本機能例えばオブジェクトの <i class="+ topic/ph hi-d/i ">x</i> 方向および <i class="+ topic/ph hi-d/i ">y</i> 方向の位置に加えてオブジェクトの拡張プロパティ例えば変換マトリックスをサポートします
  599. </p>
  600. <p class="- topic/p ">DisplayObject は抽象基本クラスであるためDisplayObject を直接呼び出すことはできません<codeph class="+ topic/ph pr-d/codeph ">new DisplayObject()</codeph> を呼び出すと <codeph class="+ topic/ph pr-d/codeph ">ArgumentError</codeph> 例外がスローされます </p>
  601. <p class="- topic/p ">すべての表示オブジェクトは DisplayObject クラスから継承します</p>
  602. <p class="- topic/p ">DisplayObject クラス自体は画面上でのコンテンツの描画のための API を含みませんそのためDisplayObject クラスのカスタムサブクラスを作成する場合はShapeSpriteBitmapSimpleButtonTextField または MovieClip など画面上にコンテンツを描画する API を持つサブクラスの 1 つを拡張する必要があります</p>
  603. <p class="- topic/p ">DisplayObject クラスには複数のブロードキャストイベントが含まれます通常個々のイベントのターゲットは特定の DisplayObject インスタンスです例えば<codeph class="+ topic/ph pr-d/codeph ">added</codeph> イベントのターゲットは表示リストに追加された特定の DisplayObject インスタンスです単一のターゲットを持つことによりイベントリスナーの配置がそのターゲットおよび場合によっては表示リスト上のターゲットの祖先に制限されますただしブロードキャストイベントの場合はターゲットが特定の DisplayObject インスタンスではなく表示リストに含まれていない DisplayObject インスタンスを含むすべての DisplayObject インスタンスになりますこれは任意の DisplayObject インスタンスにリスナーを追加してブロードキャストイベントを監視できることを意味しますDisplayObject クラスはDisplayObject クラスの Events テーブルにリストされたブロードキャストイベントだけでなくEventDispatcher クラスのブロードキャストイベントである <codeph class="+ topic/ph pr-d/codeph ">activate</codeph> <codeph class="+ topic/ph pr-d/codeph ">deactivate</codeph> も継承します</p>
  604. <p class="- topic/p ">ActionScript 1.0 および 2.0 MovieClipTextFieldおよび Button クラスで使用されていたいくつかのプロパティ例えば <codeph class="+ topic/ph pr-d/codeph ">_alpha</codeph><codeph class="+ topic/ph pr-d/codeph ">_height</codeph><codeph class="+ topic/ph pr-d/codeph ">_name</codeph><codeph class="+ topic/ph pr-d/codeph ">_width</codeph><codeph class="+ topic/ph pr-d/codeph ">_x</codeph><codeph class="+ topic/ph pr-d/codeph ">_y</codeph> などと同等のプロパティがActionScript 3.0 DisplayObject クラスに存在しますこれらの名前は変更されアンダースコア_文字では始まりません</p>
  605. <p class="- topic/p ">詳しくはActionScript 3.0 開発ガイド<i class="+ topic/ph hi-d/i "/>表示のプログラミングの章を参照してください</p>
  606. </apiDesc><example conref="examples\DisplayObjectExample.as" class="- topic/example "> <codeph class="+ topic/ph pr-d/codeph ">DisplayObjectExample</codeph> クラスを使用してオレンジ色の四角形をステージの隅に描画した後各イベントに関するテキスト情報を表示することによってイベントに応答しますこれを行うには以下の手順を実行します
  607. <ol class="- topic/ol "><li class="- topic/li ">四角形の色とサイズに関するクラスプロパティが宣言されます</li><li class="- topic/li ">コンストラクターは <codeph class="+ topic/ph pr-d/codeph ">draw()</codeph> メソッドを呼び出しますこのメソッドではオレンジ色の四角形がステージのデフォルト座標 <i class="+ topic/ph hi-d/i ">x = 0, y = 0</i> に描画されます</li><li class="- topic/li ">四角形には次のようなイベントリスナーメソッドがあります
  608. <ul class="- topic/ul "><li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">addedHandler()</codeph> <codeph class="+ topic/ph pr-d/codeph ">added</codeph> イベントをリッスンしますこのイベントは四角形が表示リストに追加されたときに送出されます</li><li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">enterFrameHandler()</codeph> <codeph class="+ topic/ph pr-d/codeph ">enterFrame</codeph> イベントをリッスンしますこのイベントはこの例では特に意味はありません</li><li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">removedHandler()</codeph> <codeph class="+ topic/ph pr-d/codeph ">removed</codeph> イベントをリッスンしますこのイベントは(四角形がクリックされて) 四角形が表示リストから除去されたときに送出されます</li><li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">clickHandler()</codeph> <codeph class="+ topic/ph pr-d/codeph ">click</codeph> イベントをリッスンしますこのイベントはオレンジ色の四角形がクリックされると送出されます</li><li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">renderHandler()</codeph> 表示リストの更新後に <codeph class="+ topic/ph pr-d/codeph ">render</codeph> イベントをリッスンします</li></ul></li></ol>
  609. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  610. package {
  611. import flash.display.Sprite;
  612. public class DisplayObjectExample extends Sprite {
  613. public function DisplayObjectExample() {
  614. var child:CustomDisplayObject = new CustomDisplayObject();
  615. addChild(child);
  616. }
  617. }
  618. }
  619. import flash.display.DisplayObject;
  620. import flash.display.Sprite;
  621. import flash.display.Stage;
  622. import flash.display.StageAlign;
  623. import flash.display.StageScaleMode;
  624. import flash.events.*;
  625. class CustomDisplayObject extends Sprite {
  626. private var bgColor:uint = 0xFFCC00;
  627. private var size:uint = 80;
  628. public function CustomDisplayObject() {
  629. draw();
  630. addEventListener(Event.ADDED, addedHandler);
  631. addEventListener(Event.ENTER_FRAME, enterFrameHandler);
  632. addEventListener(Event.REMOVED, removedHandler);
  633. addEventListener(MouseEvent.CLICK, clickHandler);
  634. addEventListener(Event.RENDER, renderHandler);
  635. }
  636. private function draw():void {
  637. graphics.beginFill(bgColor);
  638. graphics.drawRect(0, 0, size, size);
  639. graphics.endFill();
  640. }
  641. private function clickHandler(event:MouseEvent):void {
  642. trace("clickHandler: " + event);
  643. parent.removeChild(this);
  644. }
  645. private function addedHandler(event:Event):void {
  646. trace("addedHandler: " + event);
  647. stage.scaleMode = StageScaleMode.NO_SCALE;
  648. stage.align = StageAlign.TOP_LEFT;
  649. stage.addEventListener("resize", resizeHandler);
  650. }
  651. private function enterFrameHandler(event:Event):void {
  652. trace("enterFrameHandler: " + event);
  653. removeEventListener("enterFrame", enterFrameHandler);
  654. }
  655. private function removedHandler(event:Event):void {
  656. trace("removedHandler: " + event);
  657. stage.removeEventListener("resize", resizeHandler);
  658. }
  659. private function renderHandler(event:Event):void {
  660. trace("renderHandler: " + event);
  661. }
  662. private function resizeHandler(event:Event):void {
  663. trace("resizeHandler: " + event);
  664. }
  665. }
  666. </codeblock></example></apiClassifierDetail><related-links class="- topic/related-links "><link href="flash.display.xml#DisplayObjectContainer" class="- topic/link "><linktext class="- topic/linktext ">flash.display.DisplayObjectContainer</linktext></link></related-links><adobeApiEvent id="flash.display:DisplayObject_flash.events.Event.RENDER_render" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">render</apiName><shortdesc class="- topic/shortdesc ">
  667. [ブロードキャストイベント] 表示リストが更新およびレンダリングされようとしているときに送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.Event.RENDER</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.Event</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  668. [ブロードキャストイベント] 表示リストが更新およびレンダリングされようとしているときに送出されますこのイベントは表示リストのレンダリング前にこのイベントをリッスンしているオブジェクトが変更を行う最後の機会を提供しますStage オブジェクトの <codeph class="+ topic/ph pr-d/codeph ">invalidate()</codeph> メソッドは<codeph class="+ topic/ph pr-d/codeph ">render</codeph> イベントを送出させるたびに呼び出す必要があります <codeph class="+ topic/ph pr-d/codeph ">Render</codeph> イベントは<codeph class="+ topic/ph pr-d/codeph ">Stage.invalidate()</codeph> を呼び出したオブジェクトとの間に相互の信頼関係があるオブジェクトにしか送出されませんこのイベントはブロードキャストイベントであるためこのイベントに登録されているリスナーを持つすべての表示イベントによって送出されます
  669. <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意</b>表示がレンダリングされない場合このイベントは送出されません これが該当するのはコンテンツが最小化または非表示になっている場合です </p>
  670. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:DisplayObject_flash.events.Event.REMOVED_FROM_STAGE_removedFromStage" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">removedFromStage</apiName><shortdesc class="- topic/shortdesc ">
  671. 表示オブジェクトが直接または表示オブジェクトを含むサブツリーの削除により表示リストから削除されようとしているときに送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9.0.28.0" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.Event.REMOVED_FROM_STAGE</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.Event</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  672. 表示オブジェクトが直接または表示オブジェクトを含むサブツリーの削除により表示リストから削除されようとしているときに送出されますこのイベントを生成する DisplayObjectContainer クラスの 2 つのメソッドは<codeph class="+ topic/ph pr-d/codeph ">removeChild()</codeph> および <codeph class="+ topic/ph pr-d/codeph ">removeChildAt()</codeph> 2 つのエディションがあります
  673. <p class="- topic/p ">さらに新しいオブジェクトの領域を確保するためにオブジェクトを削除する必要がある場合にはDisplayObjectContainer オブジェクトの <codeph class="+ topic/ph pr-d/codeph ">addChild()</codeph><codeph class="+ topic/ph pr-d/codeph ">addChildAt()</codeph>および <codeph class="+ topic/ph pr-d/codeph ">setChildIndex()</codeph> もまたこのイベントを生成します </p>
  674. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:DisplayObject_flash.events.Event.REMOVED_removed" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">removed</apiName><shortdesc class="- topic/shortdesc ">
  675. 表示オブジェクトが表示リストから削除されようとしているときに送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.Event.REMOVED</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.Event</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  676. 表示オブジェクトが表示リストから削除されようとしているときに送出されますこのイベントを生成する DisplayObjectContainer クラスの 2 つのメソッドは<codeph class="+ topic/ph pr-d/codeph ">removeChild()</codeph> および <codeph class="+ topic/ph pr-d/codeph ">removeChildAt()</codeph> 2 つのエディションがあります
  677. <p class="- topic/p ">さらに新しいオブジェクトの領域を確保するためにオブジェクトを削除する必要がある場合にはDisplayObjectContainer オブジェクトの <codeph class="+ topic/ph pr-d/codeph ">addChild()</codeph><codeph class="+ topic/ph pr-d/codeph ">addChildAt()</codeph>および <codeph class="+ topic/ph pr-d/codeph ">setChildIndex()</codeph> もまたこのイベントを生成します </p>
  678. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:DisplayObject_flash.events.Event.EXIT_FRAME_exitFrame" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">exitFrame</apiName><shortdesc class="- topic/shortdesc ">
  679. [ブロードキャストイベント] 再生ヘッドが現在のフレームを終了するときに送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="2" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.Event.EXIT_FRAME</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.Event</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  680. [ブロードキャストイベント] 再生ヘッドが現在のフレームを終了するときに送出されますすべてのフレームスクリプトが実行されています再生ヘッドが移動しない場合またはフレームが 1 つしか存在しない場合このイベントはフレームレートに合わせて継続的に送出されますこのイベントはブロードキャストイベントであるためこのイベントに登録されているリスナーを持つすべての表示イベントによって送出されます
  681. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:DisplayObject_flash.events.Event.FRAME_CONSTRUCTED_frameConstructed" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">frameConstructed</apiName><shortdesc class="- topic/shortdesc ">
  682. [ブロードキャストイベント] フレーム表示オブジェクトのコンストラクターが実行した後でかつフレームスクリプトが実行される前に送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="2" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.Event.FRAME_CONSTRUCTED</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.Event</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  683. [ブロードキャストイベント] フレーム表示オブジェクトのコンストラクターが実行した後でかつフレームスクリプトが実行される前に送出されます再生ヘッドが移動しない場合またはフレームが 1 つしか存在しない場合このイベントはフレームレートに合わせて継続的に送出されますこのイベントはブロードキャストイベントであるためこのイベントに登録されているリスナーを持つすべての表示イベントによって送出されます
  684. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:DisplayObject_flash.events.Event.ENTER_FRAME_enterFrame" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">enterFrame</apiName><shortdesc class="- topic/shortdesc ">
  685. [ブロードキャストイベント] 再生ヘッドが新しいフレームに入るときに送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.Event.ENTER_FRAME</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.Event</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  686. [ブロードキャストイベント] 再生ヘッドが新しいフレームに入るときに送出されます再生ヘッドが移動しない場合またはフレームが 1 つしか存在しない場合このイベントはフレームレートに合わせて継続的に送出されますこのイベントはブロードキャストイベントであるためこのイベントに登録されているリスナーを持つすべての表示イベントによって送出されます
  687. </apiDesc></adobeApiEventDetail></adobeApiEvent><adobeApiEvent id="flash.display:DisplayObject_flash.events.Event.ADDED_TO_STAGE_addedToStage" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">addedToStage</apiName><shortdesc class="- topic/shortdesc ">
  688. 表示オブジェクトが直接または表示オブジェクトを含むサブツリーの追加によりステージ上の表示リストに追加されたときに送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9.0.28.0" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.Event.ADDED_TO_STAGE</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.Event</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  689. 表示オブジェクトが直接または表示オブジェクトを含むサブツリーの追加によりステージ上の表示リストに追加されたときに送出されます<codeph class="+ topic/ph pr-d/codeph ">DisplayObjectContainer.addChild()</codeph> メソッドおよび <codeph class="+ topic/ph pr-d/codeph ">DisplayObjectContainer.addChildAt()</codeph> メソッドがこのイベントをトリガーします
  690. </apiDesc></adobeApiEventDetail><related-links class="- topic/related-links "><link href="flash.display.xml#DisplayObjectContainer/addChild()" class="- topic/link "><linktext class="- topic/linktext ">flash.display.DisplayObjectContainer.addChild()</linktext></link><link href="flash.display.xml#DisplayObjectContainer/addChildAt()" class="- topic/link "><linktext class="- topic/linktext ">flash.display.DisplayObjectContainer.addChildAt()</linktext></link></related-links></adobeApiEvent><adobeApiEvent id="flash.display:DisplayObject_flash.events.Event.ADDED_added" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef adobeApiEvent/adobeApiEvent "><apiName class="- topic/title reference/title apiRef/apiName ">added</apiName><shortdesc class="- topic/shortdesc ">
  691. 表示オブジェクトが表示リストに追加されたときに送出されます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><adobeApiEventDetail class="- topic/body reference/refbody apiRef/apiDetail adobeApiEvent/adobeApiEventDetail "><adobeApiEventDef class="- topic/section reference/section apiRef/apiDef adobeApiEvent/adobeApiEventDef "><apiEventType class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiEventType ">flash.events.Event.ADDED</apiEventType><adobeApiEventClassifier class="- topic/xref reference/xref apiRef/apiRelation adobeApiEvent/adobeApiEventClassifier ">flash.events.Event</adobeApiEventClassifier><apiGeneratedEvent class="- topic/state reference/state apiRef/apiQualifier adobeApiEvent/apiGeneratedEvent "/></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  692. 表示オブジェクトが表示リストに追加されたときに送出されます<codeph class="+ topic/ph pr-d/codeph ">DisplayObjectContainer.addChild()</codeph> メソッドおよび <codeph class="+ topic/ph pr-d/codeph ">DisplayObjectContainer.addChildAt()</codeph> メソッドがこのイベントをトリガーします
  693. </apiDesc></adobeApiEventDetail><related-links class="- topic/related-links "><link href="flash.display.xml#DisplayObjectContainer/addChild()" class="- topic/link "><linktext class="- topic/linktext ">flash.display.DisplayObjectContainer.addChild()</linktext></link><link href="flash.display.xml#DisplayObjectContainer/addChildAt()" class="- topic/link "><linktext class="- topic/linktext ">flash.display.DisplayObjectContainer.addChildAt()</linktext></link></related-links></adobeApiEvent><apiOperation id="flash.display:DisplayObject:getBounds" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiOperation/apiOperation "><apiName class="- topic/title reference/title apiRef/apiName ">getBounds</apiName><shortdesc class="- topic/shortdesc ">
  694. targetCoordinateSpace オブジェクトの座標系を基準にして表示オブジェクトの領域を定義する矩形を返します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiOperationDetail class="- topic/body reference/refbody apiRef/apiDetail apiOperation/apiOperationDetail "><apiOperationDef class="- topic/section reference/section apiRef/apiDef apiOperation/apiOperationDef "><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiReturn class="- topic/ph reference/ph apiRef/apiDefItem apiOperation/apiReturn "><apiDesc class="- topic/section reference/section apiRef/apiDesc "><codeph class="+ topic/ph pr-d/codeph ">targetCoordinateSpace</codeph> オブジェクトの座標系を基準とする表示オブジェクトの領域を定義する矩形です
  695. </apiDesc><apiOperationClassifier class="- topic/xref reference/xref apiRef/apiRelation apiOperation/apiOperationClassifier ">flash.geom:Rectangle</apiOperationClassifier></apiReturn><apiParam class="- topic/ph reference/ph apiRef/apiDefItem apiOperation/apiParam "><apiItemName class="- topic/keyword reference/keyword apiRef/apiItemName ">targetCoordinateSpace</apiItemName><apiOperationClassifier class="- topic/xref reference/xref apiRef/apiRelation apiOperation/apiOperationClassifier ">flash.display:DisplayObject</apiOperationClassifier><apiDesc class="- topic/section reference/section apiRef/apiDesc ">使用する座標系を定義する表示オブジェクトです
  696. </apiDesc></apiParam></apiOperationDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  697. <codeph class="+ topic/ph pr-d/codeph ">targetCoordinateSpace</codeph> オブジェクトの座標系を基準にして表示オブジェクトの領域を定義する矩形を返します以下のコードはどんな <codeph class="+ topic/ph pr-d/codeph ">targetCoordinateSpace</codeph> パラメーターをメソッドに渡すかに応じて様々な矩形が返されることを示しています
  698. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  699. var container:Sprite = new Sprite();
  700. container.x = 100;
  701. container.y = 100;
  702. this.addChild(container);
  703. var contents:Shape = new Shape();
  704. contents.graphics.drawCircle(0,0,100);
  705. container.addChild(contents);
  706. trace(contents.getBounds(container));
  707. // (x=-100, y=-100, w=200, h=200)
  708. trace(contents.getBounds(this));
  709. // (x=0, y=0, w=200, h=200)
  710. </codeblock>
  711. <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意</b>表示オブジェクトのローカル座標を表示座標にまたは表示座標をローカル座標に変換するにはそれぞれ <codeph class="+ topic/ph pr-d/codeph ">localToGlobal()</codeph> および <codeph class="+ topic/ph pr-d/codeph ">globalToLocal()</codeph> メソッドを使用します</p>
  712. <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">getBounds()</codeph> メソッドは <codeph class="+ topic/ph pr-d/codeph ">getRect()</codeph> メソッドに似ていますが<codeph class="+ topic/ph pr-d/codeph ">getBounds()</codeph> メソッドから返される矩形にはシェイプの線が含まれるのに対し<codeph class="+ topic/ph pr-d/codeph ">getRect()</codeph> メソッドから返される矩形には含まれません例については<codeph class="+ topic/ph pr-d/codeph ">getRect()</codeph> メソッドに関する説明を参照してください</p>
  713. </apiDesc></apiOperationDetail><related-links class="- topic/related-links "><link href="flash.display.xml#DisplayObject/getRect()" class="- topic/link "><linktext class="- topic/linktext ">getRect()</linktext></link><link href="flash.display.xml#DisplayObject/globalToLocal()" class="- topic/link "><linktext class="- topic/linktext ">globalToLocal()</linktext></link><link href="flash.display.xml#DisplayObject/localToGlobal()" class="- topic/link "><linktext class="- topic/linktext ">localToGlobal()</linktext></link></related-links></apiOperation><apiOperation id="flash.display:DisplayObject:getRect" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiOperation/apiOperation "><apiName class="- topic/title reference/title apiRef/apiName ">getRect</apiName><shortdesc class="- topic/shortdesc ">
  714. シェイプ上の線を除きtargetCoordinateSpace パラメーターによって定義された座標系に基づいて表示オブジェクトの境界を定義する矩形を返します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiOperationDetail class="- topic/body reference/refbody apiRef/apiDetail apiOperation/apiOperationDetail "><apiOperationDef class="- topic/section reference/section apiRef/apiDef apiOperation/apiOperationDef "><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiReturn class="- topic/ph reference/ph apiRef/apiDefItem apiOperation/apiReturn "><apiDesc class="- topic/section reference/section apiRef/apiDesc "><codeph class="+ topic/ph pr-d/codeph ">targetCoordinateSpace</codeph> オブジェクトの座標系を基準とする表示オブジェクトの領域を定義する矩形です
  715. </apiDesc><apiOperationClassifier class="- topic/xref reference/xref apiRef/apiRelation apiOperation/apiOperationClassifier ">flash.geom:Rectangle</apiOperationClassifier></apiReturn><apiParam class="- topic/ph reference/ph apiRef/apiDefItem apiOperation/apiParam "><apiItemName class="- topic/keyword reference/keyword apiRef/apiItemName ">targetCoordinateSpace</apiItemName><apiOperationClassifier class="- topic/xref reference/xref apiRef/apiRelation apiOperation/apiOperationClassifier ">flash.display:DisplayObject</apiOperationClassifier><apiDesc class="- topic/section reference/section apiRef/apiDesc ">使用する座標系を定義する表示オブジェクトです
  716. </apiDesc></apiParam></apiOperationDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  717. シェイプ上の線を除き<codeph class="+ topic/ph pr-d/codeph ">targetCoordinateSpace</codeph> パラメーターによって定義された座標系に基づいて表示オブジェクトの境界を定義する矩形を返します<codeph class="+ topic/ph pr-d/codeph ">getRect()</codeph> メソッドから返される値は<codeph class="+ topic/ph pr-d/codeph ">getBounds()</codeph> メソッドから返される値と同じかそれより小さくなります
  718. <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意</b> 表示オブジェクトのローカル座標をステージ座標にまたはステージ座標をローカル座標に変換するにはそれぞれ <codeph class="+ topic/ph pr-d/codeph ">localToGlobal()</codeph> および <codeph class="+ topic/ph pr-d/codeph ">globalToLocal()</codeph> メソッドを使用します</p>
  719. </apiDesc><example conref="examples\DisplayObject.getRect.1.as" class="- topic/example "> 次の例では<codeph class="+ topic/ph pr-d/codeph ">getBounds()</codeph> メソッドが<codeph class="+ topic/ph pr-d/codeph ">getRect()</codeph> メソッドを使用したときよりも大きい矩形が返される場合があることを示していますそうなる理由は追加的な領域が線に必要となるためですこの場合<codeph class="+ topic/ph pr-d/codeph ">triangle</codeph> スプライトには余分な線が含まれますこれは<codeph class="+ topic/ph pr-d/codeph ">width</codeph> パラメーターおよび <codeph class="+ topic/ph pr-d/codeph ">jointStyle</codeph> パラメーター<codeph class="+ topic/ph pr-d/codeph ">lineStyle()</codeph> メソッドのパラメーターがあるためです<codeph class="+ topic/ph pr-d/codeph ">trace()</codeph> の出力最後の 2 <codeph class="+ topic/ph pr-d/codeph ">getRect()</codeph> 矩形と <codeph class="+ topic/ph pr-d/codeph ">getBounds()</codeph> 矩形の違いを示しています
  720. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  721. import flash.display.CapsStyle;
  722. import flash.display.JointStyle;
  723. import flash.display.LineScaleMode;
  724. import flash.display.Sprite;
  725. import flash.geom.Rectangle;
  726. var triangle:Sprite = new Sprite();
  727. var color:uint = 0xFF0044;
  728. var width:Number = 20;
  729. var alpha:Number = 1.0;
  730. var pixelHinting:Boolean = true;
  731. var scaleMode:String = LineScaleMode.NORMAL;
  732. var caps:String = CapsStyle.SQUARE;
  733. var joints:String = JointStyle.MITER;
  734. triangle.graphics.lineStyle(width, color, alpha, pixelHinting, scaleMode, caps, joints);
  735. var triangleSide:Number = 100;
  736. triangle.graphics.moveTo(0, 0);
  737. triangle.graphics.lineTo(0, triangleSide);
  738. triangle.graphics.lineTo(triangleSide, triangleSide);
  739. triangle.graphics.lineTo(0, 0);
  740. addChild(triangle);
  741. trace(triangle.getBounds(this)); // (x=-10, y=-24.1, w=134.10000000000002, h=134.1)
  742. trace(triangle.getRect(this)); // (x=0, y=0, w=100, h=100)
  743. </codeblock></example></apiOperationDetail><related-links class="- topic/related-links "><link href="flash.display.xml#DisplayObject/getBounds()" class="- topic/link "><linktext class="- topic/linktext ">getBounds()</linktext></link></related-links></apiOperation><apiOperation id="flash.display:DisplayObject:globalToLocal3D" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiOperation/apiOperation "><apiName class="- topic/title reference/title apiRef/apiName ">globalToLocal3D</apiName><shortdesc class="- topic/shortdesc ">
  744. ステージグローバル座標の 2 次元のポイントを 3 次元の表示オブジェクトのローカル座標に変換します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="1.5" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiOperationDetail class="- topic/body reference/refbody apiRef/apiDetail apiOperation/apiOperationDetail "><apiOperationDef class="- topic/section reference/section apiRef/apiDef apiOperation/apiOperationDef "><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiReturn class="- topic/ph reference/ph apiRef/apiDefItem apiOperation/apiReturn "><apiDesc class="- topic/section reference/section apiRef/apiDesc ">3 次元の表示オブジェクトを基準とした座標を持つ Vector3D オブジェクトです
  745. </apiDesc><apiOperationClassifier class="- topic/xref reference/xref apiRef/apiRelation apiOperation/apiOperationClassifier ">flash.geom:Vector3D</apiOperationClassifier></apiReturn><apiParam class="- topic/ph reference/ph apiRef/apiDefItem apiOperation/apiParam "><apiItemName class="- topic/keyword reference/keyword apiRef/apiItemName ">point</apiItemName><apiOperationClassifier class="- topic/xref reference/xref apiRef/apiRelation apiOperation/apiOperationClassifier ">flash.geom:Point</apiOperationClassifier><apiDesc class="- topic/section reference/section apiRef/apiDesc ">グローバル座標の x 座標と y 座標を表す 2 次元の Point オブジェクトです
  746. </apiDesc></apiParam></apiOperationDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  747. ステージグローバル座標の 2 次元のポイントを 3 次元の表示オブジェクトのローカル座標に変換します
  748. <p class="- topic/p ">このメソッドを使用するにはまず Point クラスのインスタンスを作成してくださいPoint オブジェクトに割り当てられる x 値と y 値はメイン表示領域の起点 (0,0) からの相対値であるためこれらの値はグローバル座標を表します次にPoint オブジェクトを <codeph class="+ topic/ph pr-d/codeph ">globalToLocal3D()</codeph> メソッドの <codeph class="+ topic/ph pr-d/codeph ">point</codeph> パラメーターとして渡しますこのメソッドは3 次元の表示オブジェクトの基点を基準とした <codeph class="+ topic/ph pr-d/codeph ">x</codeph> <codeph class="+ topic/ph pr-d/codeph ">y</codeph> および <codeph class="+ topic/ph pr-d/codeph ">z</codeph> 値を含む Vector3D オブジェクトとして 3 次元座標を返します</p>
  749. </apiDesc></apiOperationDetail></apiOperation><apiOperation id="flash.display:DisplayObject:globalToLocal" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiOperation/apiOperation "><apiName class="- topic/title reference/title apiRef/apiName ">globalToLocal</apiName><shortdesc class="- topic/shortdesc ">
  750. point オブジェクトをステージグローバル座標から表示オブジェクトのローカル座標に変換します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiOperationDetail class="- topic/body reference/refbody apiRef/apiDetail apiOperation/apiOperationDetail "><apiOperationDef class="- topic/section reference/section apiRef/apiDef apiOperation/apiOperationDef "><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiReturn class="- topic/ph reference/ph apiRef/apiDefItem apiOperation/apiReturn "><apiDesc class="- topic/section reference/section apiRef/apiDesc ">表示オブジェクトからの相対座標を持つ Point オブジェクトです
  751. </apiDesc><apiOperationClassifier class="- topic/xref reference/xref apiRef/apiRelation apiOperation/apiOperationClassifier ">flash.geom:Point</apiOperationClassifier></apiReturn><apiParam class="- topic/ph reference/ph apiRef/apiDefItem apiOperation/apiParam "><apiItemName class="- topic/keyword reference/keyword apiRef/apiItemName ">point</apiItemName><apiOperationClassifier class="- topic/xref reference/xref apiRef/apiRelation apiOperation/apiOperationClassifier ">flash.geom:Point</apiOperationClassifier><apiDesc class="- topic/section reference/section apiRef/apiDesc ">Point クラスを使って作成されるオブジェクトですPoint オブジェクトは<i class="+ topic/ph hi-d/i ">x</i> および <i class="+ topic/ph hi-d/i ">y</i> 座標をプロパティとして指定します
  752. </apiDesc></apiParam><apiTipTexts><apiTipText class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiTipText "><codeph class="+ topic/ph pr-d/codeph ">point</codeph> オブジェクトをステージグローバル座標から表示オブジェクトのローカル座標に変換します
  753. </apiTipText></apiTipTexts></apiOperationDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  754. <codeph class="+ topic/ph pr-d/codeph ">point</codeph> オブジェクトをステージグローバル座標から表示オブジェクトのローカル座標に変換します
  755. <p class="- topic/p ">このメソッドを使用するにはまず Point クラスのインスタンスを作成してください割り当てられる <i class="+ topic/ph hi-d/i ">x</i> 値と <i class="+ topic/ph hi-d/i ">y</i> 値はメイン表示領域の起点 (0,0) からの相対値であるためこれらの値はグローバル座標を表します次にPoint インスタンスを <codeph class="+ topic/ph pr-d/codeph ">globalToLocal()</codeph> メソッドにパラメーターとして渡しますこのメソッドはStage の起点ではなく表示オブジェクトの起点からの相対値である <i class="+ topic/ph hi-d/i ">x</i> 値と <i class="+ topic/ph hi-d/i ">y</i> 値を持つ新しい Point オブジェクトを返します</p>
  756. </apiDesc><example conref="examples\DisplayObject.hitTestPoint.1.as" class="- topic/example "> 次のコードではShape オブジェクトを作成しパラメーターとして異なるポイントを使用して<codeph class="+ topic/ph pr-d/codeph ">hitTestPoint()</codeph> メソッドの呼び出し結果を表示します<codeph class="+ topic/ph pr-d/codeph ">globalToLocal()</codeph> メソッドはポイントをステージ座標からシェイプの座標空間に変換します
  757. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  758. import flash.display.Shape;
  759. import flash.geom.Point;
  760. var circle:Shape = new Shape();
  761. circle.graphics.beginFill(0x0000FF);
  762. circle.graphics.drawCircle(40, 40, 40);
  763. circle.x = 10;
  764. addChild(circle);
  765. var point1:Point = new Point(0, 0);
  766. trace(circle.hitTestPoint(point1.x, point1.y, true)); // false
  767. trace(circle.hitTestPoint(point1.x, point1.y, false)); // false
  768. trace(circle.globalToLocal(point1)); // [x=-10, y=0]
  769. var point2:Point = new Point(10, 1);
  770. trace(circle.hitTestPoint(point2.x, point2.y, true)); // false
  771. trace(circle.hitTestPoint(point2.x, point2.y, false)); // true
  772. trace(circle.globalToLocal(point2)); // [x=0, y=1]
  773. var point3:Point = new Point(30, 20);
  774. trace(circle.hitTestPoint(point3.x, point3.y, true)); // true
  775. trace(circle.hitTestPoint(point3.x, point3.y, false)); // true
  776. trace(circle.globalToLocal(point3)); // [x=20, y=20]
  777. </codeblock></example></apiOperationDetail><related-links class="- topic/related-links "><link href="flash.display.xml#DisplayObject/localToGlobal()" class="- topic/link "><linktext class="- topic/linktext ">localToGlobal()</linktext></link><link href="flash.geom.xml#Point" class="- topic/link "><linktext class="- topic/linktext ">flash.geom.Point クラス</linktext></link></related-links></apiOperation><apiOperation id="flash.display:DisplayObject:hitTestObject" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiOperation/apiOperation "><apiName class="- topic/title reference/title apiRef/apiName ">hitTestObject</apiName><shortdesc class="- topic/shortdesc ">
  778. 表示オブジェクトの境界ボックスを評価してobj 表示オブジェクトの境界ボックスと重複または交差するかどうかを調べます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiOperationDetail class="- topic/body reference/refbody apiRef/apiDetail apiOperation/apiOperationDetail "><apiOperationDef class="- topic/section reference/section apiRef/apiDef apiOperation/apiOperationDef "><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiReturn class="- topic/ph reference/ph apiRef/apiDefItem apiOperation/apiReturn "><apiDesc class="- topic/section reference/section apiRef/apiDesc ">表示オブジェクトの境界ボックスが交差する場合は <codeph class="+ topic/ph pr-d/codeph ">true</codeph> を返します交差しない場合は <codeph class="+ topic/ph pr-d/codeph ">false</codeph> を返します
  779. </apiDesc><apiOperationClassifier class="- topic/xref reference/xref apiRef/apiRelation apiOperation/apiOperationClassifier ">Boolean</apiOperationClassifier></apiReturn><apiParam class="- topic/ph reference/ph apiRef/apiDefItem apiOperation/apiParam "><apiItemName class="- topic/keyword reference/keyword apiRef/apiItemName ">obj</apiItemName><apiOperationClassifier class="- topic/xref reference/xref apiRef/apiRelation apiOperation/apiOperationClassifier ">flash.display:DisplayObject</apiOperationClassifier><apiDesc class="- topic/section reference/section apiRef/apiDesc ">検査の対象となる表示オブジェクトです
  780. </apiDesc></apiParam><apiTipTexts><apiTipText class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiTipText ">表示オブジェクトの境界ボックスを評価してパラメーターとして渡された表示オブジェクトの境界ボックスと重複または交差するかどうかを調べます
  781. </apiTipText></apiTipTexts></apiOperationDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  782. 表示オブジェクトの境界ボックスを評価して<codeph class="+ topic/ph pr-d/codeph ">obj</codeph> 表示オブジェクトの境界ボックスと重複または交差するかどうかを調べます
  783. </apiDesc><example conref="examples\DisplayObject.hitTestObject.1.as" class="- topic/example "> 次のコードでは3 つの Shape オブジェクトを作成し<codeph class="+ topic/ph pr-d/codeph ">hitTestObject()</codeph> メソッドの呼び出し結果を示しますcircle2 circle3 は重複しませんが境界ボックスは重複しますそのためcircle2 circle3 のヒットテストでは <codeph class="+ topic/ph pr-d/codeph ">true</codeph> が返されます
  784. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  785. import flash.display.Shape;
  786. var circle1:Shape = new Shape();
  787. circle1.graphics.beginFill(0x0000FF);
  788. circle1.graphics.drawCircle(40, 40, 40);
  789. addChild(circle1);
  790. var circle2:Shape = new Shape();
  791. circle2.graphics.beginFill(0x00FF00);
  792. circle2.graphics.drawCircle(40, 40, 40);
  793. circle2.x = 50;
  794. addChild(circle2);
  795. var circle3:Shape = new Shape();
  796. circle3.graphics.beginFill(0xFF0000);
  797. circle3.graphics.drawCircle(40, 40, 40);
  798. circle3.x = 100;
  799. circle3.y = 67;
  800. addChild(circle3);
  801. trace(circle1.hitTestObject(circle2)); // true
  802. trace(circle1.hitTestObject(circle3)); // false
  803. trace(circle2.hitTestObject(circle3)); // true
  804. </codeblock></example></apiOperationDetail></apiOperation><apiOperation id="flash.display:DisplayObject:hitTestPoint" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiOperation/apiOperation "><apiName class="- topic/title reference/title apiRef/apiName ">hitTestPoint</apiName><shortdesc class="- topic/shortdesc ">
  805. 表示オブジェクトを評価してx および y パラメーターで指定されたポイントと重複または交差するかどうかを調べます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiOperationDetail class="- topic/body reference/refbody apiRef/apiDetail apiOperation/apiOperationDetail "><apiOperationDef class="- topic/section reference/section apiRef/apiDef apiOperation/apiOperationDef "><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiReturn class="- topic/ph reference/ph apiRef/apiDefItem apiOperation/apiReturn "><apiDesc class="- topic/section reference/section apiRef/apiDesc ">指定されたポイントと表示オブジェクトが重複または交差する場合は <codeph class="+ topic/ph pr-d/codeph ">true</codeph>そうでなければ <codeph class="+ topic/ph pr-d/codeph ">false</codeph> です
  806. </apiDesc><apiOperationClassifier class="- topic/xref reference/xref apiRef/apiRelation apiOperation/apiOperationClassifier ">Boolean</apiOperationClassifier></apiReturn><apiParam class="- topic/ph reference/ph apiRef/apiDefItem apiOperation/apiParam "><apiItemName class="- topic/keyword reference/keyword apiRef/apiItemName ">x</apiItemName><apiOperationClassifier class="- topic/xref reference/xref apiRef/apiRelation apiOperation/apiOperationClassifier ">Number</apiOperationClassifier><apiDesc class="- topic/section reference/section apiRef/apiDesc ">このオブジェクトの検査の基準となる <i class="+ topic/ph hi-d/i ">x</i> 座標です
  807. </apiDesc></apiParam><apiParam class="- topic/ph reference/ph apiRef/apiDefItem apiOperation/apiParam "><apiItemName class="- topic/keyword reference/keyword apiRef/apiItemName ">y</apiItemName><apiOperationClassifier class="- topic/xref reference/xref apiRef/apiRelation apiOperation/apiOperationClassifier ">Number</apiOperationClassifier><apiDesc class="- topic/section reference/section apiRef/apiDesc ">このオブジェクトの検査の基準となる <i class="+ topic/ph hi-d/i ">y</i> 座標です
  808. </apiDesc></apiParam><apiParam class="- topic/ph reference/ph apiRef/apiDefItem apiOperation/apiParam "><apiItemName class="- topic/keyword reference/keyword apiRef/apiItemName ">shapeFlag</apiItemName><apiOperationClassifier class="- topic/xref reference/xref apiRef/apiRelation apiOperation/apiOperationClassifier ">Boolean</apiOperationClassifier><apiData class="- topic/ph reference/ph apiRef/apiData ">false</apiData><apiDesc class="- topic/section reference/section apiRef/apiDesc ">オブジェクトの実際のピクセルと比較して検査する場合は <codeph class="+ topic/ph pr-d/codeph ">true</codeph>境界ボックスと比較して検査する場合は <codeph class="+ topic/ph pr-d/codeph ">false</codeph> です
  809. </apiDesc></apiParam><apiTipTexts><apiTipText class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiTipText ">表示オブジェクトを評価してx および y によって指定されるポイントと重複または交差するかどうかを調べます
  810. </apiTipText></apiTipTexts></apiOperationDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  811. 表示オブジェクトを評価して<codeph class="+ topic/ph pr-d/codeph ">x</codeph> および <codeph class="+ topic/ph pr-d/codeph ">y</codeph> パラメーターで指定されたポイントと重複または交差するかどうかを調べます<codeph class="+ topic/ph pr-d/codeph ">x</codeph> および <codeph class="+ topic/ph pr-d/codeph ">y</codeph> パラメーターは表示オブジェクトが含まれる表示オブジェクトコンテナではなく Stage の座標空間内のポイントを指定しますその表示オブジェクトコンテナが Stage の場合を除く
  812. </apiDesc><example conref="examples\DisplayObject.hitTestPoint.1.as" class="- topic/example "> 次のコードではShape オブジェクトを作成しパラメーターとして異なるポイントを使用して<codeph class="+ topic/ph pr-d/codeph ">hitTestPoint()</codeph> メソッドの呼び出し結果を表示します<codeph class="+ topic/ph pr-d/codeph ">globalToLocal()</codeph> メソッドはポイントをステージ座標からシェイプの座標空間に変換します
  813. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  814. import flash.display.Shape;
  815. import flash.geom.Point;
  816. var circle:Shape = new Shape();
  817. circle.graphics.beginFill(0x0000FF);
  818. circle.graphics.drawCircle(40, 40, 40);
  819. circle.x = 10;
  820. addChild(circle);
  821. var point1:Point = new Point(0, 0);
  822. trace(circle.hitTestPoint(point1.x, point1.y, true)); // false
  823. trace(circle.hitTestPoint(point1.x, point1.y, false)); // false
  824. trace(circle.globalToLocal(point1)); // [x=-10, y=0]
  825. var point2:Point = new Point(10, 1);
  826. trace(circle.hitTestPoint(point2.x, point2.y, true)); // false
  827. trace(circle.hitTestPoint(point2.x, point2.y, false)); // true
  828. trace(circle.globalToLocal(point2)); // [x=0, y=1]
  829. var point3:Point = new Point(30, 20);
  830. trace(circle.hitTestPoint(point3.x, point3.y, true)); // true
  831. trace(circle.hitTestPoint(point3.x, point3.y, false)); // true
  832. trace(circle.globalToLocal(point3)); // [x=20, y=20]
  833. </codeblock></example></apiOperationDetail><related-links class="- topic/related-links "><link href="flash.display.xml#DisplayObject/opaqueBackground" class="- topic/link "><linktext class="- topic/linktext ">opaqueBackground</linktext></link></related-links></apiOperation><apiOperation id="flash.display:DisplayObject:local3DToGlobal" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiOperation/apiOperation "><apiName class="- topic/title reference/title apiRef/apiName ">local3DToGlobal</apiName><shortdesc class="- topic/shortdesc ">
  834. 3 次元の表示オブジェクトのローカル座標の 3 次元のポイントをステージグローバル座標の 2 次元のポイントに変換します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="1.5" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiOperationDetail class="- topic/body reference/refbody apiRef/apiDetail apiOperation/apiOperationDetail "><apiOperationDef class="- topic/section reference/section apiRef/apiDef apiOperation/apiOperationDef "><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiReturn class="- topic/ph reference/ph apiRef/apiDefItem apiOperation/apiReturn "><apiDesc class="- topic/section reference/section apiRef/apiDesc ">3 次元のポイントを 2 次元空間で表す 2 次元のポイント
  835. </apiDesc><apiOperationClassifier class="- topic/xref reference/xref apiRef/apiRelation apiOperation/apiOperationClassifier ">flash.geom:Point</apiOperationClassifier></apiReturn><apiParam class="- topic/ph reference/ph apiRef/apiDefItem apiOperation/apiParam "><apiItemName class="- topic/keyword reference/keyword apiRef/apiItemName ">point3d</apiItemName><apiOperationClassifier class="- topic/xref reference/xref apiRef/apiRelation apiOperation/apiOperationClassifier ">flash.geom:Vector3D</apiOperationClassifier><apiDesc class="- topic/section reference/section apiRef/apiDesc ">3 次元の表示オブジェクトの 3 次元のポイントまたは座標を含む Vector3D オブジェクト
  836. </apiDesc></apiParam></apiOperationDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  837. 3 次元の表示オブジェクトのローカル座標の 3 次元のポイントをステージグローバル座標の 2 次元のポイントに変換します
  838. <p class="- topic/p ">例えば<codeph class="+ topic/ph pr-d/codeph ">display.Graphics</codeph> のメソッドを使用して描画する場合は2 次元座標x,yのみを使用できます3 次元のオブジェクトを描画するには表示オブジェクトの 3 次元座標を 2 次元座標にマッピングする必要がありますまず3 次元の表示オブジェクトの x 座標y 座標および z 座標を保持する Vector3D クラスのインスタンスを作成します次にVector3D オブジェクトを <codeph class="+ topic/ph pr-d/codeph ">local3DToGlobal()</codeph> メソッドの <codeph class="+ topic/ph pr-d/codeph ">point3d</codeph> パラメーターとして渡しますこのメソッドからは 2 次元の Point オブジェクトが返されますこれを Graphics API で使用すると3 次元のオブジェクトを描画できます</p>
  839. </apiDesc><example conref="examples\Local3DToGlobalExample.as" class="- topic/example "> この例では<codeph class="+ topic/ph pr-d/codeph ">display.Graphics</codeph> のメソッドを使用して2 次元空間に簡単な 3 次元の立方体を描画します<codeph class="+ topic/ph pr-d/codeph ">this</codeph> 表示オブジェクトの位置はオフセットされるため立方体の基準点はその中心になりますVector3D オブジェクトのベクターには立方体の 3 次元座標が保持されます最初に立方体の上部が描画され次に下部が描画され最後に上部の四隅と下部の四隅が接続されます<codeph class="+ topic/ph pr-d/codeph ">local3DToGlobal()</codeph> メソッドを使用するには立方体を表示オブジェクトのコンテナに追加してから立方体を描画する必要があります
  840. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  841. package {
  842. import flash.display.MovieClip;
  843. import flash.display.Sprite;
  844. import flash.display.Graphics;
  845. import flash.geom.*;
  846. public class Local3DToGlobalExample extends MovieClip {
  847. private var myCube:Sprite = new Sprite();
  848. private var v8:Vector.&lt;Vector3D> = new Vector.&lt;Vector3D>(8);
  849. public function Local3DToGlobalExample():void {
  850. this.x = -(this.stage.stageWidth / 2);
  851. this.y = -(this.stage.stageWidth / 2);
  852. v8[0] = new Vector3D(-40,-40,-40);
  853. v8[1] = new Vector3D(40,-40,-40);
  854. v8[2] = new Vector3D(40,-40,40);
  855. v8[3] = new Vector3D(-40,-40,40);
  856. v8[4] = new Vector3D(-40,100,-40);
  857. v8[5] = new Vector3D(40,100,-40);
  858. v8[6] = new Vector3D(40,100,40);
  859. v8[7] = new Vector3D(-40,100,40);
  860. myCube.x = (this.stage.stageWidth / 2);
  861. myCube.y = (this.stage.stageWidth / 2);
  862. myCube.z = 1;
  863. addChild(myCube);
  864. Cube();
  865. }
  866. private function Cube():void {
  867. var ps:Point = new Point(0,0);
  868. myCube.graphics.lineStyle(2,0xFF0000);
  869. ps = myCube.local3DToGlobal(v8[0]);
  870. myCube.graphics.moveTo(ps.x, ps.y);
  871. ps = myCube.local3DToGlobal(v8[1]);
  872. myCube.graphics.lineTo(ps.x, ps.y);
  873. ps = myCube.local3DToGlobal(v8[2]);
  874. myCube.graphics.lineTo(ps.x, ps.y);
  875. ps = myCube.local3DToGlobal(v8[3]);
  876. myCube.graphics.lineTo(ps.x, ps.y);
  877. ps = myCube.local3DToGlobal(v8[0]);
  878. myCube.graphics.lineTo(ps.x, ps.y);
  879. ps = myCube.local3DToGlobal(v8[4]);
  880. myCube.graphics.moveTo(ps.x, ps.y);
  881. ps = myCube.local3DToGlobal(v8[5]);
  882. myCube.graphics.lineTo(ps.x, ps.y);
  883. ps = myCube.local3DToGlobal(v8[6]);
  884. myCube.graphics.lineTo(ps.x, ps.y);
  885. ps = myCube.local3DToGlobal(v8[7]);
  886. myCube.graphics.lineTo(ps.x, ps.y);
  887. ps = myCube.local3DToGlobal(v8[4]);
  888. myCube.graphics.lineTo(ps.x, ps.y);
  889. ps = myCube.local3DToGlobal(v8[0]);
  890. myCube.graphics.moveTo(ps.x, ps.y);
  891. ps = myCube.local3DToGlobal(v8[4]);
  892. myCube.graphics.lineTo(ps.x, ps.y);
  893. ps = myCube.local3DToGlobal(v8[1]);
  894. myCube.graphics.moveTo(ps.x, ps.y);
  895. ps = myCube.local3DToGlobal(v8[5]);
  896. myCube.graphics.lineTo(ps.x, ps.y);
  897. ps = myCube.local3DToGlobal(v8[2]);
  898. myCube.graphics.moveTo(ps.x, ps.y);
  899. ps = myCube.local3DToGlobal(v8[6]);
  900. myCube.graphics.lineTo(ps.x, ps.y);
  901. ps = myCube.local3DToGlobal(v8[3]);
  902. myCube.graphics.moveTo(ps.x, ps.y);
  903. ps = myCube.local3DToGlobal(v8[7]);
  904. myCube.graphics.lineTo(ps.x, ps.y);
  905. }
  906. }
  907. }
  908. </codeblock></example></apiOperationDetail></apiOperation><apiOperation id="flash.display:DisplayObject:localToGlobal" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiOperation/apiOperation "><apiName class="- topic/title reference/title apiRef/apiName ">localToGlobal</apiName><shortdesc class="- topic/shortdesc ">
  909. point オブジェクトを表示オブジェクトのローカル座標からステージグローバル座標に変換します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiOperationDetail class="- topic/body reference/refbody apiRef/apiDetail apiOperation/apiOperationDetail "><apiOperationDef class="- topic/section reference/section apiRef/apiDef apiOperation/apiOperationDef "><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiReturn class="- topic/ph reference/ph apiRef/apiDefItem apiOperation/apiReturn "><apiDesc class="- topic/section reference/section apiRef/apiDesc ">ステージからの相対座標を持つ Point オブジェクトです
  910. </apiDesc><apiOperationClassifier class="- topic/xref reference/xref apiRef/apiRelation apiOperation/apiOperationClassifier ">flash.geom:Point</apiOperationClassifier></apiReturn><apiParam class="- topic/ph reference/ph apiRef/apiDefItem apiOperation/apiParam "><apiItemName class="- topic/keyword reference/keyword apiRef/apiItemName ">point</apiItemName><apiOperationClassifier class="- topic/xref reference/xref apiRef/apiRelation apiOperation/apiOperationClassifier ">flash.geom:Point</apiOperationClassifier><apiDesc class="- topic/section reference/section apiRef/apiDesc ">Point クラスを使用し<i class="+ topic/ph hi-d/i ">x</i> および <i class="+ topic/ph hi-d/i ">y</i> 座標をプロパティとして指定して作成されるポイントの名前または識別子です
  911. </apiDesc></apiParam></apiOperationDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  912. <codeph class="+ topic/ph pr-d/codeph ">point</codeph> オブジェクトを表示オブジェクトのローカル座標からステージグローバル座標に変換します
  913. <p class="- topic/p ">このメソッドを使用すれば特定の表示オブジェクトの起点 (0,0) との相対値ローカル座標からステージの起点との相対値グローバル座標任意の <i class="+ topic/ph hi-d/i ">x</i> および <i class="+ topic/ph hi-d/i ">y</i> 座標を変換できます</p>
  914. <p class="- topic/p ">このメソッドを使用するにはまず Point クラスのインスタンスを作成してください割り当てられる <i class="+ topic/ph hi-d/i ">x</i> 値と <i class="+ topic/ph hi-d/i ">y</i> 値は表示オブジェクトの起点からの相対値であるためこれらの値はローカル座標を表します</p>
  915. <p class="- topic/p ">次に作成した Point インスタンスを <codeph class="+ topic/ph pr-d/codeph ">localToGlobal()</codeph> メソッドにパラメーターとして渡しますこのメソッドは表示オブジェクトの起点ではなくStage の起点からの相対値である <i class="+ topic/ph hi-d/i ">x</i> 値と <i class="+ topic/ph hi-d/i ">y</i> 値を持つ新しい Point オブジェクトを返します</p>
  916. </apiDesc><example conref="examples\DisplayObject.localToGlobal.1.as" class="- topic/example "> 次のコードではSprite オブジェクトを作成しますスプライトの <codeph class="+ topic/ph pr-d/codeph ">mouseX</codeph> プロパティおよび <codeph class="+ topic/ph pr-d/codeph ">mouseY</codeph> プロパティは表示オブジェクトの座標空間内にありますこのコードは<codeph class="+ topic/ph pr-d/codeph ">localToGlobal()</codeph> メソッドを使用してこれらのプロパティをグローバルステージ座標に変換します
  917. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  918. import flash.display.Sprite;
  919. import flash.events.MouseEvent;
  920. import flash.geom.Point;
  921. var square:Sprite = new Sprite();
  922. square.graphics.beginFill(0xFFCC00);
  923. square.graphics.drawRect(0, 0, 100, 100);
  924. square.x = 100;
  925. square.y = 200;
  926. addChild(square);
  927. square.addEventListener(MouseEvent.CLICK, traceCoordinates)
  928. function traceCoordinates(event:MouseEvent):void {
  929. var clickPoint:Point = new Point(square.mouseX, square.mouseY);
  930. trace("display object coordinates:", clickPoint);
  931. trace("stage coordinates:", square.localToGlobal(clickPoint));
  932. }
  933. </codeblock></example></apiOperationDetail><related-links class="- topic/related-links "><link href="flash.display.xml#DisplayObject/globalToLocal()" class="- topic/link "><linktext class="- topic/linktext ">globalToLocal()</linktext></link><link href="flash.geom.xml#Point" class="- topic/link "><linktext class="- topic/linktext ">flash.geom.Point クラス</linktext></link></related-links></apiOperation><apiValue id="flash.display:DisplayObject:accessibilityProperties:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">accessibilityProperties</apiName><shortdesc class="- topic/shortdesc ">
  934. この表示オブジェクトの現在のアクセシビリティオプションです</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="readwrite" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">flash.accessibility:AccessibilityProperties</apiValueClassifier></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  935. この表示オブジェクトの現在のアクセシビリティオプションです<codeph class="+ topic/ph pr-d/codeph ">accessibilityProperties</codeph> プロパティまたは <codeph class="+ topic/ph pr-d/codeph ">accessibilityProperties</codeph> 内のいずれかのフィールドを変更した場合変更内容を有効にするには<codeph class="+ topic/ph pr-d/codeph ">Accessibility.updateProperties()</codeph> メソッドを呼び出す必要があります
  936. <p class="flashonly"><b class="+ topic/ph hi-d/b ">注意</b>Flash オーサリング環境で作成されたオブジェクトの場合そのオブジェクトのアクセシビリティパネルに入力した情報が <codeph class="+ topic/ph pr-d/codeph ">accessibilityProperties</codeph> の値に再設定されます</p>
  937. </apiDesc><example conref="examples\DisplayObject.accessibilityProperties.1.as" class="- topic/example "> 次の例では単純な AccessibilityProperties オブジェクトを TextField インスタンスに割り当てる方法を示します
  938. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  939. import flash.text.TextField;
  940. import flash.accessibility.AccessibilityProperties;
  941. import flash.accessibility.Accessibility;
  942. import flash.system.Capabilities;
  943. var tf:TextField = new TextField();
  944. tf.text = "hello";
  945. var accessProps:AccessibilityProperties = new AccessibilityProperties();
  946. accessProps.name = "Greeting";
  947. tf.accessibilityProperties = accessProps;
  948. if (Capabilities.hasAccessibility) {
  949. Accessibility.updateProperties();
  950. }
  951. trace(tf.accessibilityProperties.name); // Greeting
  952. </codeblock></example></apiValueDetail><related-links class="- topic/related-links "><link href="flash.accessibility.xml#Accessibility/updateProperties()" class="- topic/link "><linktext class="- topic/linktext ">flash.accessibility.Accessibility.updateProperties()</linktext></link><link href="flash.accessibility.xml#AccessibilityProperties" class="- topic/link "><linktext class="- topic/linktext ">flash.accessibility.AccessibilityProperties</linktext></link></related-links></apiValue><apiValue id="flash.display:DisplayObject:alpha:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">alpha</apiName><shortdesc class="- topic/shortdesc ">
  953. 指定されたオブジェクトのアルファ透明度値を示します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="readwrite" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">Number</apiValueClassifier></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  954. 指定されたオブジェクトのアルファ透明度値を示します有効な値は 0完全な透明 1完全な不透明ですデフォルト値は 1 です<codeph class="+ topic/ph pr-d/codeph ">alpha</codeph> 0 に設定されている表示オブジェクト<i class="+ topic/ph hi-d/i "></i>表示されない場合でもアクティブです
  955. </apiDesc><example conref="examples\DisplayObject.alpha.1.as" class="- topic/example "> 次のコードではスプライト上にマウスが移動したときにスプライトの <codeph class="+ topic/ph pr-d/codeph ">alpha</codeph> プロパティを 50% に設定します
  956. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  957. import flash.display.Sprite;
  958. import flash.events.MouseEvent;
  959. var circle:Sprite = new Sprite();
  960. circle.graphics.beginFill(0xFF0000);
  961. circle.graphics.drawCircle(40, 40, 40);
  962. addChild(circle);
  963. circle.addEventListener(MouseEvent.MOUSE_OVER, dimObject);
  964. circle.addEventListener(MouseEvent.MOUSE_OUT, restoreObject);
  965. function dimObject(event:MouseEvent):void {
  966. event.target.alpha = 0.5;
  967. }
  968. function restoreObject(event:MouseEvent):void {
  969. event.target.alpha = 1.0;
  970. }
  971. </codeblock></example></apiValueDetail></apiValue><apiValue id="flash.display:DisplayObject:blendMode:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">blendMode</apiName><shortdesc class="- topic/shortdesc ">
  972. 使用するブレンドモードを指定する BlendMode クラスの値です</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="readwrite" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">String</apiValueClassifier></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  973. 使用するブレンドモードを指定する BlendMode クラスの値です内部的には2 つの方法でビットマップを描画できますブレンドモードを有効にした場合または外部クリッピングマスクを使用する場合にはビットマップで塗りつぶされた四角形シェイプをベクターレンダーに追加することによってビットマップが描画されますこのプロパティを無効な値に設定しようとするとFlash ランタイムは値を <codeph class="+ topic/ph pr-d/codeph ">BlendMode.NORMAL</codeph> に設定します
  974. <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">blendMode</codeph> プロパティは表示オブジェクトの各ピクセルに影響します 各ピクセルは3 つの要素カラーで構成されており各要素カラーは 0x00 0xFF の値を持ちますFlash Player または Adobe AIR ムービークリップ内の 1 つのピクセルの各要素カラーを背景のピクセルの対応するカラーと比較します 例えば<codeph class="+ topic/ph pr-d/codeph ">blendMode</codeph> <codeph class="+ topic/ph pr-d/codeph ">BlendMode.LIGHTEN</codeph> に設定されている場合Flash Player または Adobe AIR は表示オブジェクトの赤の値と背景の赤の値とを比較して明るい方の値を表示色の赤の成分として使用します</p>
  975. <p class="- topic/p ">次の表では<codeph class="+ topic/ph pr-d/codeph ">blendMode</codeph> の設定について説明しますBlendMode クラスは使用可能なストリング値を定義します表の中の図は別の表示オブジェクト1に重なった円形の表示オブジェクト2に適用される <codeph class="+ topic/ph pr-d/codeph ">blendMode</codeph> 値を示しています</p>
  976. <p class="- topic/p ">
  977. <adobeimage alt="四角形の数字 1" href="../../images/blendMode-0a.jpg" placement="inline" class="+ topic/image adobe-d/adobeimage "/> <adobeimage alt="円の数字 2" href="../../images/blendMode-0b.jpg" placement="inline" class="+ topic/image adobe-d/adobeimage "/>
  978. </p>
  979. <adobetable class="innertable"><tgroup cols="3" class="- topic/tgroup "><thead class="- topic/thead "><row class="- topic/row "><entry class="- topic/entry ">BlendMode 定数</entry><entry class="- topic/entry "></entry><entry class="- topic/entry ">説明</entry></row></thead><tbody class="- topic/tbody "><row valign="top" class="- topic/row "><entry class="- topic/entry "><codeph class="+ topic/ph pr-d/codeph ">BlendMode.NORMAL</codeph></entry><entry class="- topic/entry "><adobeimage alt="ブレンドモード NORMAL" href="../../images/blendMode-1.jpg" placement="inline" class="+ topic/image adobe-d/adobeimage "/></entry><entry class="- topic/entry ">表示オブジェクトは背景の前に表示されます表示オブジェクトのピクセル値は背景のピクセル値より優先されます表示オブジェクトが透明な部分では背景が表示されます</entry></row><row valign="top" class="- topic/row "><entry class="- topic/entry "><codeph class="+ topic/ph pr-d/codeph ">BlendMode.LAYER</codeph></entry><entry class="- topic/entry "><adobeimage alt="ブレンドモード LAYER" href="../../images/blendMode-2.jpg" placement="inline" class="+ topic/image adobe-d/adobeimage "/></entry><entry class="- topic/entry ">表示オブジェクトに関する透明度グループを強制的に作成しますつまり表示オブジェクトが処理される前に一時バッファー内で表示オブジェクトが事前に構成されますビットマップキャッシュを使って表示オブジェクトが事前キャッシュされる場合または表示オブジェクトが<codeph class="+ topic/ph pr-d/codeph ">blendMode</codeph> <codeph class="+ topic/ph pr-d/codeph ">BlendMode.NORMAL</codeph> 以外に設定された子オブジェクトを少なくとも 1 つ含む表示オブジェクトコンテナである場合にはこれが自動的に実行されますGPU レンダリングではサポートされません
  980. </entry></row><row valign="top" class="- topic/row "><entry class="- topic/entry "><codeph class="+ topic/ph pr-d/codeph ">BlendMode.MULTIPLY</codeph></entry><entry class="- topic/entry "><adobeimage alt="ブレンドモード MULTIPLY" href="../../images/blendMode-3.jpg" placement="inline" class="+ topic/image adobe-d/adobeimage "/></entry><entry class="- topic/entry ">表示オブジェクトの要素カラーの値と背景色の要素カラーの値を乗算した後0xFF で割って正規化し色を暗くしますこの設定はシャドウや深度効果によく使用されます
  981. <p class="- topic/p ">例えば表示オブジェクトのピクセルの要素カラー赤などと背景のピクセルの対応するカラーの値が共に 0x88 の場合乗算した結果は 0x4840 です0xFF で除算するとその要素カラーの値は 0x48 になりますこれは表示オブジェクトまたは背景の色よりも暗くなります</p></entry></row><row valign="top" class="- topic/row "><entry class="- topic/entry "><codeph class="+ topic/ph pr-d/codeph ">BlendMode.SCREEN</codeph></entry><entry class="- topic/entry "><adobeimage alt="ブレンドモード SCREEN" href="../../images/blendMode-4.jpg" placement="inline" class="+ topic/image adobe-d/adobeimage "/></entry><entry class="- topic/entry ">表示オブジェクトの色の補数と背景色の補数を乗算してブリーチ効果を得ますこの設定はハイライトや表示オブジェクトの黒い領域の削除によく使用されます</entry></row><row valign="top" class="- topic/row "><entry class="- topic/entry "><codeph class="+ topic/ph pr-d/codeph ">BlendMode.LIGHTEN</codeph></entry><entry class="- topic/entry "><adobeimage alt="ブレンドモード LIGHTEN" href="../../images/blendMode-5.jpg" placement="inline" class="+ topic/image adobe-d/adobeimage "/></entry><entry class="- topic/entry ">表示オブジェクトの要素カラーと背景色のうち明るい方値が大きい方の色を選択しますこの設定は重ね合わせタイプによく使用されます
  982. <p class="- topic/p ">例えば表示オブジェクトのピクセルの RGB 値が 0xFFCC33 背景のピクセルの RGB 値が 0xDDF800 の場合0xFF > 0xDD0xCC &lt; 0xF8および 0x33 > 0x00 = 33 であるので表示されるピクセルの RGB 値は 0xFFF833 になりますGPU レンダリングではサポートされません</p></entry></row><row valign="top" class="- topic/row "><entry class="- topic/entry "><codeph class="+ topic/ph pr-d/codeph ">BlendMode.DARKEN</codeph></entry><entry class="- topic/entry "><adobeimage alt="ブレンドモード DARKEN" href="../../images/blendMode-6.jpg" placement="inline" class="+ topic/image adobe-d/adobeimage "/></entry><entry class="- topic/entry ">表示オブジェクトの要素カラーと背景色のうち暗い方値が小さい方の色を選択しますこの設定は重ね合わせタイプによく使用されます
  983. <p class="- topic/p ">例えば表示オブジェクトのピクセルの RGB 値が 0xFFCC33 背景のピクセルの RGB 値が 0xDDF800 の場合0xFF > 0xDD0xCC &lt; 0xF80x33 > 0x00 = 33 であるので表示されるピクセルの RGB 値は 0xDDCC00 になりますGPU レンダリングではサポートされません</p></entry></row><row valign="top" class="- topic/row "><entry class="- topic/entry "><codeph class="+ topic/ph pr-d/codeph ">BlendMode.DIFFERENCE</codeph></entry><entry class="- topic/entry "><adobeimage alt="ブレンドモード DIFFERENCE" href="../../images/blendMode-7.jpg" placement="inline" class="+ topic/image adobe-d/adobeimage "/></entry><entry class="- topic/entry ">表示オブジェクトの要素カラーと背景色を比較し2 つの要素カラーのうち明るい方の値から暗い方の値を差し引きますこの設定は明るい色によく使用されます
  984. <p class="- topic/p ">例えば表示オブジェクトの 1 つのピクセルの RGB 値が 0xFFCC33 背景のピクセルの RGB 値が 0xDDF800 の場合0xFF - 0xDD = 0x220xF8 - 0xCC = 0x2C0x33 - 0x00 = 0x33 であるため表示されるピクセルの RGB 値は 0x222C33 になります</p></entry></row><row valign="top" class="- topic/row "><entry class="- topic/entry "><codeph class="+ topic/ph pr-d/codeph ">BlendMode.ADD</codeph></entry><entry class="- topic/entry "><adobeimage alt="ブレンドモード ADD" href="../../images/blendMode-8.jpg" placement="inline" class="+ topic/image adobe-d/adobeimage "/></entry><entry class="- topic/entry ">表示オブジェクトの要素カラーの値を背景色に加算しその際に上限 0xFF を適用しますこの設定は2 つのオブジェクト間で色を明るくするディゾルブをアニメーションにするときによく使用されます
  985. <p class="- topic/p ">例えば表示オブジェクトのピクセルの RGB 値が 0xAAA633 背景のピクセルの RGB 値が 0xDD2200 の場合0xAA + 0xDD > 0xFF0xA6 + 0x22 = 0xC8および 0x33 + 0x00 = 0x33 であるので表示されるピクセルの RGB 値は 0xFFC833 になります</p></entry></row><row valign="top" class="- topic/row "><entry class="- topic/entry "><codeph class="+ topic/ph pr-d/codeph ">BlendMode.SUBTRACT</codeph></entry><entry class="- topic/entry "><adobeimage alt="ブレンドモード SUBTRACT" href="../../images/blendMode-9.jpg" placement="inline" class="+ topic/image adobe-d/adobeimage "/></entry><entry class="- topic/entry ">下限を 0 として表示オブジェクトの要素カラーの値をその背景色の値から減算しますこの設定は2 つのオブジェクト間で色を暗くするディゾルブをアニメーションにするときによく使用されます
  986. <p class="- topic/p ">例えば表示オブジェクトの 1 つのピクセルの RGB 値が 0xAA2233 背景のピクセルの RGB 値が 0xDDA600 の場合0xDD - 0xAA = 0x330xA6 - 0x22 = 0x840x00 - 0x33 &lt; 0x00 であるので表示されるピクセルの RGB 値は 0x338400 になります</p></entry></row><row valign="top" class="- topic/row "><entry class="- topic/entry "><codeph class="+ topic/ph pr-d/codeph ">BlendMode.INVERT</codeph></entry><entry class="- topic/entry "><adobeimage alt="ブレンドモード INVERT" href="../../images/blendMode-10.jpg" placement="inline" class="+ topic/image adobe-d/adobeimage "/></entry><entry class="- topic/entry ">背景を反転します</entry></row><row valign="top" class="- topic/row "><entry class="- topic/entry "><codeph class="+ topic/ph pr-d/codeph ">BlendMode.ALPHA</codeph></entry><entry class="- topic/entry "><adobeimage alt="ブレンドモード ALPHA" href="../../images/blendMode-11.jpg" placement="inline" class="+ topic/image adobe-d/adobeimage "/></entry><entry class="- topic/entry ">表示オブジェクトの各ピクセルのアルファ値を背景に適用しますこれを行うには親表示オブジェクトの <codeph class="+ topic/ph pr-d/codeph ">blendMode</codeph> <codeph class="+ topic/ph pr-d/codeph ">BlendMode.LAYER</codeph> に設定されている必要があります例えば図の親表示オブジェクト白い背景<codeph class="+ topic/ph pr-d/codeph ">blendMode = BlendMode.LAYER</codeph> に設定されていますGPU レンダリングではサポートされません</entry></row><row valign="top" class="- topic/row "><entry class="- topic/entry "><codeph class="+ topic/ph pr-d/codeph ">BlendMode.ERASE</codeph></entry><entry class="- topic/entry "><adobeimage alt="ブレンドモード ERASE" href="../../images/blendMode-12.jpg" placement="inline" class="+ topic/image adobe-d/adobeimage "/></entry><entry class="- topic/entry ">表示オブジェクトのアルファ値に基づいて背景を消去しますこれを行うには親表示オブジェクトの <codeph class="+ topic/ph pr-d/codeph ">blendMode</codeph> <codeph class="+ topic/ph pr-d/codeph ">BlendMode.LAYER</codeph> に設定されている必要があります例えば図の親表示オブジェクト白い背景<codeph class="+ topic/ph pr-d/codeph ">blendMode = BlendMode.LAYER</codeph> に設定されていますGPU レンダリングではサポートされません</entry></row><row valign="top" class="- topic/row "><entry class="- topic/entry "><codeph class="+ topic/ph pr-d/codeph ">BlendMode.OVERLAY</codeph></entry><entry class="- topic/entry "><adobeimage alt="ブレンドモード OVERLAY" href="../../images/blendMode-13.jpg" placement="inline" class="+ topic/image adobe-d/adobeimage "/></entry><entry class="- topic/entry ">背景の暗さに基づいて各ピクセルの色を調整します背景が 50% グレーよりも明るい場合表示オブジェクトと背景の色が網がけされより明るくなります背景が 50% グレーよりも暗い場合2 つの色が乗算されてより暗くなりますこの設定はシャドウ効果によく使用されますGPU レンダリングではサポートされません</entry></row><row valign="top" class="- topic/row "><entry class="- topic/entry "><codeph class="+ topic/ph pr-d/codeph ">BlendMode.HARDLIGHT</codeph></entry><entry class="- topic/entry "><adobeimage alt="ブレンドモード HARDLIGHT" href="../../images/blendMode-14.jpg" placement="inline" class="+ topic/image adobe-d/adobeimage "/></entry><entry class="- topic/entry ">表示オブジェクトの暗さに基づいて各ピクセルの色を調整します表示オブジェクトが 50% グレーよりも明るい場合表示オブジェクトと背景の色が網がけされより明るくなります表示オブジェクトが 50% グレーよりも暗い場合2 つの色が乗算されてより暗くなりますこの設定はシャドウ効果によく使用されますGPU レンダリングではサポートされません</entry></row><row valign="top" class="- topic/row "><entry class="- topic/entry "><codeph class="+ topic/ph pr-d/codeph ">BlendMode.SHADER</codeph></entry><entry align="center" valign="middle" class="- topic/entry ">N/A</entry><entry class="- topic/entry ">カスタムシェーダールーチンを使用してカラーを調整します使用するシェーダーは<codeph class="+ topic/ph pr-d/codeph ">blendShader</codeph> プロパティに割り当てられた Shader インスタンスとして指定されますShader インスタンスに表示オブジェクトの <codeph class="+ topic/ph pr-d/codeph ">blendShader</codeph> プロパティを設定すると表示オブジェクトの <codeph class="+ topic/ph pr-d/codeph ">blendMode</codeph> プロパティが <codeph class="+ topic/ph pr-d/codeph ">BlendMode.SHADER</codeph> に自動的に設定されます<codeph class="+ topic/ph pr-d/codeph ">blendShader</codeph> プロパティを先に設定しないで <codeph class="+ topic/ph pr-d/codeph ">blendMode</codeph> プロパティを <codeph class="+ topic/ph pr-d/codeph ">BlendMode.SHADER</codeph> に設定すると<codeph class="+ topic/ph pr-d/codeph ">blendMode</codeph> プロパティは <codeph class="+ topic/ph pr-d/codeph ">BlendMode.NORMAL</codeph> に設定されますGPU レンダリングではサポートされません</entry></row></tbody></tgroup></adobetable>
  987. </apiDesc><example conref="examples\DisplayObject.blendMode.1.as" class="- topic/example "> 次のコードでは四角形と円の 2 つのスプライトオブジェクトを作成しマウスポインターが円の上に移動すると前景の円のブレンドモードを <codeph class="+ topic/ph pr-d/codeph ">BlendMode.SUBTRACT</codeph> に設定します
  988. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  989. import flash.display.Sprite;
  990. import flash.display.BlendMode;
  991. import flash.events.MouseEvent;
  992. var square:Sprite = new Sprite();
  993. square.graphics.beginFill(0xFF88CC);
  994. square.graphics.drawRect(0, 0, 80, 80);
  995. addChild(square);
  996. var circle:Sprite = new Sprite();
  997. circle.graphics.beginFill(0xAA0022);
  998. circle.graphics.drawCircle(40, 40, 40);
  999. addChild(circle);
  1000. circle.addEventListener(MouseEvent.MOUSE_OVER, dimObject);
  1001. circle.addEventListener(MouseEvent.MOUSE_OUT, restoreObject);
  1002. function dimObject(event:MouseEvent):void {
  1003. event.target.blendMode = BlendMode.SUBTRACT;
  1004. }
  1005. function restoreObject(event:MouseEvent):void {
  1006. event.target.blendMode = BlendMode.NORMAL;
  1007. }
  1008. </codeblock></example></apiValueDetail><related-links class="- topic/related-links "><link href="flash.display.xml#BlendMode" class="- topic/link "><linktext class="- topic/linktext ">flash.display.BlendMode</linktext></link><link href="flash.display.xml#DisplayObject/blendShader" class="- topic/link "><linktext class="- topic/linktext ">blendShader</linktext></link></related-links></apiValue><apiValue id="flash.display:DisplayObject:cacheAsBitmapMatrix:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">cacheAsBitmapMatrix</apiName><shortdesc class="- topic/shortdesc ">
  1009. null 以外の場合この Matrix オブジェクトはcacheAsBitmap true に設定したときの表示オブジェクトのレンダリング方法を定義します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="AIR" version="2.0" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="readwrite" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">flash.geom:Matrix</apiValueClassifier><apiTipTexts><apiTipText class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiTipText ">この表示オブジェクトのビットマップのキャッシュされたバージョンをレンダリングするときに変換マトリックスが使用されます
  1010. </apiTipText></apiTipTexts></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  1011. null 以外の場合この Matrix オブジェクトは <codeph class="+ topic/ph pr-d/codeph ">cacheAsBitmap</codeph> <codeph class="+ topic/ph pr-d/codeph ">true</codeph> に設定したときの表示オブジェクトのレンダリング方法を定義しますアプリケーションではこのマトリックスをビットマップバージョンの表示オブジェクトをレンダリングするときに適用された変換マトリックスとして使用します
  1012. <p class="- topic/p ">AIR プロファイルのサポート<i class="+ topic/ph hi-d/i "/>この機能はモバイルデバイスでサポートされますがデスクトップオペレーティングシステムではサポートされませんまたテレビ用 AIR デバイスでのサポートについては制限があります具体的にはテレビ用 AIR デバイスでは変形操作の種類として拡大縮小および移動がサポートされますが回転および傾斜はサポートされません複数のプロファイル間での API サポートについて詳しくは<xref href="http://help.adobe.com/en_US/air/build/WS144092a96ffef7cc16ddeea2126bb46b82f-8000.html" class="- topic/xref ">AIR プロファイルのサポート</xref>を参照してください</p>
  1013. <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">cacheAsBitmapMatrix</codeph> セットを使用してアプリケーションは移動回転拡大や縮小などの様々な 2D 変形にわたってキャッシュされたビットマップイメージを保持しますアプリケーションでハードウェアアクセラレーションが使用されている場合オブジェクトはテクスチャとしてビデオメモリに格納されますこれによりGPU サポートされている変形をオブジェクトに適用できますGPU ではこれらの変換を CPU よりも高速に実行できます</p>
  1014. <p class="- topic/p ">ハードウェアアクセラレーションを使用するにはFlash Professional CS5 iPhone 設定ダイアログボックスの一般タブでレンダリングGPUに設定しますまたはアプリケーション記述ファイルで <codeph class="+ topic/ph pr-d/codeph ">renderMode</codeph> プロパティを <codeph class="+ topic/ph pr-d/codeph ">gpu</codeph> に設定しますテレビ用 AIR デバイスではハードウェアアクセラレーションが使用可能な場合これが自動的に使用されます</p>
  1015. <p class="- topic/p ">例えば次のコードは表示オブジェクトの未変換のビットマップ表現を GPU に送信します</p>
  1016. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">matrix:Matrix = new Matrix(); // creates an identity matrix
  1017. mySprite.cacheAsBitmapMatrix = matrix;
  1018. mySprite.cacheAsBitmap = true;</codeblock>
  1019. <p class="- topic/p ">通常単位マトリックス<codeph class="+ topic/ph pr-d/codeph ">new Matrix()</codeph>で十分ですただし別のビットマップを GPU にアップロードする場合は縮小マトリックスなどの別のマトリックスを使用できます例えば次の例では x 軸と y 軸に対して 0.5 倍縮小した <codeph class="+ topic/ph pr-d/codeph ">cacheAsBitmapMatrix</codeph> マトリックスを適用していますGPU が使用するビットマップオブジェクトは小さくなりますがGPU はこのビットマップオブジェクトのサイズを表示オブジェクトの transform.matrix プロパティに一致するように調整します</p>
  1020. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">matrix:Matrix = new Matrix(); // creates an identity matrix
  1021. matrix.scale(0.5, 0.5); // scales the matrix
  1022. mySprite.cacheAsBitmapMatrix = matrix;
  1023. mySprite.cacheAsBitmap = true;</codeblock>
  1024. <p class="- topic/p ">通常は表示オブジェクトをアプリケーションで表示されるサイズに変換するマトリックスを選択して使用します例えば半分に縮小したビットマップバージョンのスプライトをアプリケーションで表示する場合半分に縮小するマトリックスを使用します現在のサイズよりも大きいスプライトをアプリケーションで表示する場合拡大する係数のマトリックスを使用します</p>
  1025. <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意</b><codeph class="+ topic/ph pr-d/codeph ">cacheAsBitmapMatrix</codeph> プロパティは2D 変形に適しています3D 変形を適用する必要がある場合はオブジェクトの 3D プロパティを設定しその <codeph class="+ topic/ph pr-d/codeph ">transform.matrix3D</codeph> プロパティを操作しますアプリケーションが GPU モードを使用してパッケージされている場合この操作を行うとGPU によって 3D 変形をオブジェクトに適用できます<codeph class="+ topic/ph pr-d/codeph ">cacheAsBitmapMatrix</codeph> 3D オブジェクトでは無視されます</p>
  1026. </apiDesc><example conref="examples\DisplayObject.cacheAsBitmapMatrix.as" class="- topic/example "> 次の例では<codeph class="+ topic/ph pr-d/codeph ">cacheAsBitmapMatrix</codeph> プロパティを使用して<codeph class="+ topic/ph pr-d/codeph ">my_shape</codeph> というムービークリックのビットマップバージョンに変形を適用します
  1027. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  1028. import flash.geom.Matrix;
  1029. import flash.display.*;
  1030. import flash.utils.Timer;
  1031. var my_shape:MovieClip = new MovieClip();
  1032. my_shape.graphics.beginFill(0xCCFF00);
  1033. my_shape.graphics.drawRect(200, 0, 100, 100);
  1034. addChild(my_shape);
  1035. var my_timer:Timer = new Timer(250);
  1036. my_timer.start();
  1037. my_timer.addEventListener(TimerEvent.TIMER, timerHandler);
  1038. // make sure this Display Object remains cached for all 2D transforms
  1039. my_shape.cacheAsBitmap = true;
  1040. my_shape.cacheAsBitmapMatrix = new Matrix();
  1041. // rotation variables
  1042. const initAngle:Number = 0;
  1043. const pi:Number = 3.142;
  1044. const incrAngle:Number = pi/10;
  1045. // scaling variables
  1046. const initScale:Number = 0.25;
  1047. const incrScale: Number = 1.1;
  1048. var initHeight : Number = my_shape.height;
  1049. var initWidth : Number = my_shape.width;
  1050. // translation variables
  1051. var incrX : Number = root.width / 20;
  1052. var incrY : Number = root.height / 10;
  1053. // do some initial transforms
  1054. var tempMat : Matrix = my_shape.transform.matrix;
  1055. tempMat.rotate(initAngle);
  1056. tempMat.scale(initScale, initScale);
  1057. my_shape.transform.matrix = tempMat;
  1058. function timerHandler(evt:TimerEvent):void {
  1059. tempMat = my_shape.transform.matrix;
  1060. tempMat.rotate(incrAngle);
  1061. tempMat.translate(incrX, incrY);
  1062. tempMat.scale(incrScale, incrScale);
  1063. my_shape.transform.matrix = tempMat;
  1064. // ensure we are still in a reasonable state or reset
  1065. if(my_shape.height > stage.stageHeight/2)
  1066. {
  1067. my_shape.height = initHeight;
  1068. }
  1069. if(my_shape.width > stage.stageWidth/2)
  1070. {
  1071. my_shape.width = initWidth;
  1072. }
  1073. if(my_shape.x > stage.stageWidth)
  1074. {
  1075. my_shape.x = 0;
  1076. }
  1077. else if (my_shape.x &lt; 0)
  1078. {
  1079. my_shape.x = stage.stageWidth;
  1080. }
  1081. if(my_shape.y > stage.stageHeight)
  1082. {
  1083. my_shape.y = 0;
  1084. }
  1085. else if (my_shape.y &lt; 0)
  1086. {
  1087. my_shape.y = stage.stageHeight;
  1088. }
  1089. }
  1090. </codeblock></example></apiValueDetail><related-links class="- topic/related-links "><link href="flash.display.xml#DisplayObject/cacheAsBitmap" class="- topic/link "><linktext class="- topic/linktext ">cacheAsBitmap</linktext></link><link href="flash.geom.xml#Matrix3D" class="- topic/link "><linktext class="- topic/linktext ">flash.geom.Matrix3D</linktext></link></related-links></apiValue><apiValue id="flash.display:DisplayObject:cacheAsBitmap:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">cacheAsBitmap</apiName><shortdesc class="- topic/shortdesc ">
  1091. true に設定されている場合表示オブジェクトの内部ビットマップ表現が Flash ランタイムにキャッシュされます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="readwrite" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">Boolean</apiValueClassifier><apiTipTexts><apiTipText class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiTipText ">この DisplayObject をビットマップとしてキャッシュするかどうかを示します
  1092. </apiTipText></apiTipTexts></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  1093. <codeph class="+ topic/ph pr-d/codeph ">true</codeph> に設定されている場合表示オブジェクトの内部ビットマップ表現が Flash ランタイムにキャッシュされますこのキャッシュ処理により複雑なベクターコンテンツを含んでいる表示オブジェクトのパフォーマンスを向上できます
  1094. <p class="- topic/p ">ビットマップがキャッシュされている表示オブジェクトのすべてのベクターデータはメイン表示ではなくビットマップに描画されます<codeph class="+ topic/ph pr-d/codeph ">cacheAsBitmapMatrix</codeph> null であるかサポートされていない場合はビットマップは最も近いピクセル境界に吸着された非回転かつ非伸縮のピクセルとしてメイン表示にコピーされますピクセルは親オブジェクトと 1 1 でマップされますビットマップの境界が変更されるとビットマップは伸縮されるのではなく再作成されます</p>
  1095. <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">cacheAsBitmapMatrix</codeph> null ではなくまたサポートされている場合オブジェクトはマトリックスを使用してオフスクリーンビットマップに描画されそのレンダリングによる伸縮や回転を使用してオブジェクトがメイン表示に描画されます</p>
  1096. <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">cacheAsBitmap</codeph> プロパティが <codeph class="+ topic/ph pr-d/codeph ">true</codeph> に設定されていない限り内部ビットマップは作成されません</p>
  1097. <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">cacheAsBitmap</codeph> プロパティを <codeph class="+ topic/ph pr-d/codeph ">true</codeph> に設定した後レンダリングは変更されませんが表示オブジェクトはピクセルへの吸着を自動的に実行しますアニメーションの速度はベクターコンテンツの複雑さに応じて大幅に速くなる可能性があります
  1098. </p>
  1099. <p class="- topic/p ">フィルターを表示オブジェクトに適用すると<codeph class="+ topic/ph pr-d/codeph ">cacheAsBitmap</codeph> プロパティは常に自動的に <codeph class="+ topic/ph pr-d/codeph ">true</codeph> に設定されます<codeph class="+ topic/ph pr-d/codeph ">filter</codeph> 配列が空でない場合また表示オブジェクトにフィルターが適用される場合<codeph class="+ topic/ph pr-d/codeph ">cacheAsBitmap</codeph> はその表示オブジェクトの <codeph class="+ topic/ph pr-d/codeph ">true</codeph> と報告されますたとえプロパティを <codeph class="+ topic/ph pr-d/codeph ">false</codeph> に設定した場合でも表示オブジェクトのすべてのフィルターをクリアすると<codeph class="+ topic/ph pr-d/codeph ">cacheAsBitmap</codeph> は以前の設定に戻ります</p>
  1100. <p class="- topic/p ">以下のような場合には<codeph class="+ topic/ph pr-d/codeph ">cacheAsBitmap</codeph> プロパティが <codeph class="+ topic/ph pr-d/codeph ">true</codeph> に設定されていても表示オブジェクトはビットマップを使用せず代わりにベクターデータから描画します</p>
  1101. <ul class="- topic/ul "><li class="- topic/li ">ビットマップが大きすぎますAIR 1.5 および Flash Player 10 ではビットマップイメージの最大サイズは幅または高さが 8,191 ピクセルですただし総ピクセル数が 16,777,215 ピクセルを超えることはできませんしたがってビットマップイメージの幅が 8,191 ピクセルであった場合高さは 2,048 ピクセルまでしか指定できませんFlash Player 9 以前では制限は高さ 2,880 ピクセル 2,880 ピクセルです</li><li class="- topic/li ">ビットマップが割り当てに失敗した場合メモリ不足エラー </li></ul>
  1102. <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">cacheAsBitmap</codeph> プロパティはその内容がほぼ静的で拡大や縮小回転が頻繁に行われないムービークリップに最適ですそのようなムービークリップでは<codeph class="+ topic/ph pr-d/codeph ">cacheAsBitmap</codeph> プロパティによってムービークリップの移動時その <i class="+ topic/ph hi-d/i ">x</i> 位置と <i class="+ topic/ph hi-d/i ">y</i> 位置の変更時にパフォーマンスが向上する可能性があります</p>
  1103. </apiDesc><example conref="examples\DisplayObject.cacheAsBitmap.1.as" class="- topic/example "> 次の例ではShape インスタンスにドロップシャドウを適用しますその後<codeph class="+ topic/ph pr-d/codeph ">cacheAsBitmap</codeph> プロパティの値この値はフィルターの適用時に <codeph class="+ topic/ph pr-d/codeph ">true</codeph> に設定されるをトレースします
  1104. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  1105. import flash.display.Sprite;
  1106. import flash.filters.DropShadowFilter
  1107. var circle:Sprite = new Sprite();
  1108. circle.graphics.beginFill(0xAA0022);
  1109. circle.graphics.drawCircle(40, 40, 40);
  1110. addChild(circle);
  1111. trace(circle.cacheAsBitmap); // false
  1112. var filter:DropShadowFilter = new DropShadowFilter();
  1113. circle.filters = [filter];
  1114. trace(circle.cacheAsBitmap); // true
  1115. </codeblock></example></apiValueDetail><related-links class="- topic/related-links "><link href="flash.display.xml#DisplayObject/cacheAsBitmapMatrix" class="- topic/link "><linktext class="- topic/linktext ">cacheAsBitmapMatrix</linktext></link><link href="flash.display.xml#DisplayObject/opaqueBackground" class="- topic/link "><linktext class="- topic/linktext ">opaqueBackground</linktext></link></related-links></apiValue><apiValue id="flash.display:DisplayObject:filters:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">filters</apiName><shortdesc class="- topic/shortdesc ">
  1116. 表示オブジェクトに現在関連付けられている各フィルターオブジェクトが格納されているインデックス付きの配列です</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="readwrite" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">Array</apiValueClassifier><apiException class="+ topic/ph reference/ph apiRef/apiDefItem apiOperation/apiEvent adobe-api-d/apiException "><apiDesc class="- topic/section reference/section apiRef/apiDesc "><codeph class="+ topic/ph pr-d/codeph ">filters</codeph> ShaderFilter が含まれシェーダー出力タイプがこの操作に対応しない場合シェーダーは <codeph class="+ topic/ph pr-d/codeph ">pixel4</codeph> 出力を指定する必要があります
  1117. </apiDesc><apiItemName class="- topic/keyword reference/keyword apiRef/apiItemName ">ArgumentError</apiItemName><apiOperationClassifier class="- topic/xref reference/xref apiRef/apiRelation apiOperation/apiOperationClassifier ">ArgumentError</apiOperationClassifier></apiException><apiException class="+ topic/ph reference/ph apiRef/apiDefItem apiOperation/apiEvent adobe-api-d/apiException "><apiDesc class="- topic/section reference/section apiRef/apiDesc "><codeph class="+ topic/ph pr-d/codeph ">filters</codeph> ShaderFilter が含まれシェーダーがイメージ出力を指定していないか最初の入力が <codeph class="+ topic/ph pr-d/codeph ">image4</codeph> 入力でない場合
  1118. </apiDesc><apiItemName class="- topic/keyword reference/keyword apiRef/apiItemName ">ArgumentError</apiItemName><apiOperationClassifier class="- topic/xref reference/xref apiRef/apiRelation apiOperation/apiOperationClassifier ">ArgumentError</apiOperationClassifier></apiException><apiException class="+ topic/ph reference/ph apiRef/apiDefItem apiOperation/apiEvent adobe-api-d/apiException "><apiDesc class="- topic/section reference/section apiRef/apiDesc "><codeph class="+ topic/ph pr-d/codeph ">filters</codeph> ShaderFilter が含まれシェーダーが指定したイメージ入力が存在しない場合
  1119. </apiDesc><apiItemName class="- topic/keyword reference/keyword apiRef/apiItemName ">ArgumentError</apiItemName><apiOperationClassifier class="- topic/xref reference/xref apiRef/apiRelation apiOperation/apiOperationClassifier ">ArgumentError</apiOperationClassifier></apiException><apiException class="+ topic/ph reference/ph apiRef/apiDefItem apiOperation/apiEvent adobe-api-d/apiException "><apiDesc class="- topic/section reference/section apiRef/apiDesc "><codeph class="+ topic/ph pr-d/codeph ">filters</codeph> ShaderFilterByteArrayまたは Vector が含まれる場合&lt;Number> インスタンスがシェーダー入力として使用されShaderInput オブジェクトの <codeph class="+ topic/ph pr-d/codeph ">width</codeph> および <codeph class="+ topic/ph pr-d/codeph ">height</codeph> プロパティが指定されていないまたは指定された値が入力データのデータ量と一致しない場合詳しくは<codeph class="+ topic/ph pr-d/codeph ">ShaderInput.input</codeph> プロパティを参照してください
  1120. </apiDesc><apiItemName class="- topic/keyword reference/keyword apiRef/apiItemName ">ArgumentError</apiItemName><apiOperationClassifier class="- topic/xref reference/xref apiRef/apiRelation apiOperation/apiOperationClassifier ">ArgumentError</apiOperationClassifier></apiException></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  1121. 表示オブジェクトに現在関連付けられている各フィルターオブジェクトが格納されているインデックス付きの配列ですflash.filters パッケージには使用可能な特定のフィルターを定義する複数のクラスが含まれています
  1122. <p class="- topic/p ">ActionScript コードを使用することにより設計時または実行時に Flash Professional でフィルターを適用できますActionScript を使ってフィルターを適用するには<codeph class="+ topic/ph pr-d/codeph ">filters</codeph> 配列全体の一時コピーを作成してその一時配列を変更した後一時配列の値を <codeph class="+ topic/ph pr-d/codeph ">filters</codeph> 配列に割り当てて戻す必要があります新しいフィルターオブジェクトを <codeph class="+ topic/ph pr-d/codeph ">filters</codeph> 配列に直接追加することはできません</p>
  1123. <p class="- topic/p ">ActionScript を使ってフィルターを追加するには次の手順を実行する必要がありますターゲット表示オブジェクトの名前を <codeph class="+ topic/ph pr-d/codeph ">myDisplayObject</codeph> とします</p>
  1124. <ol class="- topic/ol "><li class="- topic/li ">適切なフィルタークラスのコンストラクターメソッドを使用して新しいフィルターオブジェクトを作成します</li><li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">myDisplayObject.filters</codeph> 配列の値を<codeph class="+ topic/ph pr-d/codeph ">myFilters</codeph> などの名前の一時配列に代入します</li><li class="- topic/li ">新しいフィルターオブジェクトを一時配列 <codeph class="+ topic/ph pr-d/codeph ">myFilters</codeph> に追加します</li><li class="- topic/li ">一時配列の値を <codeph class="+ topic/ph pr-d/codeph ">myDisplayObject.filters</codeph> 配列に代入します</li></ol>
  1125. <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">filters</codeph> 配列が未定義の場合一時配列を使用する必要はありませんその代わりに作成される 1 つまたは複数のフィルターオブジェクトを格納する配列リテラルを直接割り当てることができます最初の例では定義済みおよび未定義の <codeph class="+ topic/ph pr-d/codeph ">filters</codeph> 配列を処理するコードを使用してドロップシャドウフィルターを追加します</p>
  1126. <p class="- topic/p ">既存のフィルターオブジェクトを変更するには次のように<codeph class="+ topic/ph pr-d/codeph ">filters</codeph> 配列のコピーを変更する必要があります</p>
  1127. <ol class="- topic/ol "><li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">filters</codeph> 配列の値を<codeph class="+ topic/ph pr-d/codeph ">myFilters</codeph> などの名前の一時配列に代入します</li><li class="- topic/li ">一時配列 <codeph class="+ topic/ph pr-d/codeph ">myFilters</codeph> を使用してプロパティを変更します例えば配列内の最初のフィルターの quality プロパティを設定するには次のようなコードを使用できます<codeph class="+ topic/ph pr-d/codeph ">myFilters[0].quality = 1;</codeph></li><li class="- topic/li ">一時配列の値を <codeph class="+ topic/ph pr-d/codeph ">filters</codeph> 配列に代入します</li></ol>
  1128. <p class="- topic/p ">ロード時には表示オブジェクトにフィルターが関連付けられている場合透明なビットマップとして表示オブジェクト自身をキャッシュするようにマークされますこれ以降表示オブジェクトに有効なフィルターリストがある限り表示オブジェクトはビットマップとしてキャッシュされますこのソースビットマップはフィルター効果のソースイメージとして使用されます通常それぞれの表示オブジェクトには 2 つのビットマップがあります1 つはフィルター適用前の元の表示オブジェクトのビットマップもう 1 つはフィルター適用後の最終イメージのビットマップです最終イメージはレンダリング時に使用されます表示オブジェクトが変更されない限り最終イメージを更新する必要はありません</p>
  1129. <p class="- topic/p ">flash.filters パッケージにはフィルター用のクラスが含まれます例えばDropShadow フィルターを作成するには次のようにすることができます</p>
  1130. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  1131. import flash.filters.DropShadowFilter
  1132. var myFilter:DropShadowFilter = new DropShadowFilter (distance, angle, color, alpha, blurX, blurY, quality, inner, knockout)
  1133. </codeblock>
  1134. <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">is</codeph> 演算子を使用して<codeph class="+ topic/ph pr-d/codeph ">filter</codeph> 配列内のそれぞれのインデックス位置に割り当てられるフィルターの種類を判別できます例えば次のコードはDropShadowFilter である <codeph class="+ topic/ph pr-d/codeph ">filters</codeph> 配列内の最初のフィルターの位置を判別する方法を示しています
  1135. </p>
  1136. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  1137. import flash.text.TextField;
  1138. import flash.filters.~~;
  1139. var tf:TextField = new TextField();
  1140. var filter1:DropShadowFilter = new DropShadowFilter();
  1141. var filter2:GradientGlowFilter = new GradientGlowFilter();
  1142. tf.filters = [filter1, filter2];
  1143. tf.text = "DropShadow index: " + filterPosition(tf, DropShadowFilter).toString(); // 0
  1144. addChild(tf)
  1145. function filterPosition(displayObject:DisplayObject, filterClass:Class):int {
  1146. for (var i:uint = 0; i &lt; displayObject.filters.length; i++) {
  1147. if (displayObject.filters[i] is filterClass) {
  1148. return i;
  1149. }
  1150. }
  1151. return -1;
  1152. }
  1153. </codeblock>
  1154. <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意</b> 新しいフィルターオブジェクトを <codeph class="+ topic/ph pr-d/codeph ">DisplayObject.filters</codeph> 配列に直接追加できないため次のコードは<codeph class="+ topic/ph pr-d/codeph ">myDisplayObject</codeph> という名前のターゲット表示オブジェクトに影響を与えません</p>
  1155. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  1156. myDisplayObject.filters.push(myDropShadow);
  1157. </codeblock>
  1158. </apiDesc></apiValueDetail><related-links class="- topic/related-links "><link href="../../flash/filters/package-detail.html" class="- topic/link "><linktext class="- topic/linktext ">flash.filters パッケージ</linktext></link><link href="flash.display.xml#ShaderInput/input" class="- topic/link "><linktext class="- topic/linktext ">flash.display.ShaderInput.input</linktext></link></related-links></apiValue><apiValue id="flash.display:DisplayObject:height:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">height</apiName><shortdesc class="- topic/shortdesc ">
  1159. 表示オブジェクトの高さを示しますピクセル単位</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="readwrite" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">Number</apiValueClassifier></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  1160. 表示オブジェクトの高さを示しますピクセル単位この高さは表示オブジェクトのコンテンツの境界に基づいて計算されます次のコードに示すようにこの <codeph class="+ topic/ph pr-d/codeph ">height</codeph> プロパティを設定するとそれに合わせて <codeph class="+ topic/ph pr-d/codeph ">scaleY</codeph> プロパティの値が調整されます
  1161. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  1162. var rect:Shape = new Shape();
  1163. rect.graphics.beginFill(0xFF0000);
  1164. rect.graphics.drawRect(0, 0, 100, 100);
  1165. trace(rect.scaleY) // 1;
  1166. rect.height = 200;
  1167. trace(rect.scaleY) // 2;</codeblock>
  1168. <p class="- topic/p ">TextField Video オブジェクトを除いて<codeph class="+ topic/ph pr-d/codeph ">height</codeph> を別の値に設定しようとしてもコンテンツのない表示オブジェクト例えば空のスプラインなどの高さは 0 になります</p>
  1169. </apiDesc><example conref="examples\DisplayObject.height.1.as" class="- topic/example "> 次のコードでは2 つの TextField オブジェクトを作成しそれぞれの <codeph class="+ topic/ph pr-d/codeph ">height</codeph> プロパティを調整しますこのとき調整はそれぞれの <codeph class="+ topic/ph pr-d/codeph ">textHeight</codeph> プロパティに基づいて行われますまたその <codeph class="+ topic/ph pr-d/codeph ">y</codeph> プロパティを設定することで2 番目のテキストフィールドを配置します
  1170. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  1171. import flash.text.TextField;
  1172. var tf1:TextField = new TextField();
  1173. tf1.text = "Text Field 1";
  1174. tf1.border = true;
  1175. tf1.wordWrap = true;
  1176. tf1.width = 40;
  1177. tf1.height = tf1.textHeight + 5;
  1178. addChild(tf1);
  1179. var tf2:TextField = new TextField();
  1180. tf2.text = "Text Field 2";
  1181. tf2.border = true;
  1182. tf2.wordWrap = true;
  1183. tf2.width = 40;
  1184. tf2.height = tf2.textHeight + 5;
  1185. tf2.y = tf1.y + tf1.height + 5;
  1186. addChild(tf2);
  1187. </codeblock></example></apiValueDetail></apiValue><apiValue id="flash.display:DisplayObject:loaderInfo:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">loaderInfo</apiName><shortdesc class="- topic/shortdesc ">
  1188. この表示オブジェクトが属するファイルの読み込み情報を含む LoaderInfo オブジェクトを返します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="read" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">flash.display:LoaderInfo</apiValueClassifier></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  1189. この表示オブジェクトが属するファイルの読み込み情報を含む LoaderInfo オブジェクトを返します<codeph class="+ topic/ph pr-d/codeph ">loaderInfo</codeph> プロパティはSWF ファイルのルート表示オブジェクト用またはActionScript を使用して描画されるビットマップではなくロードされるビットマップ用として定義されています<codeph class="+ topic/ph pr-d/codeph ">loaderInfo</codeph> オブジェクト<codeph class="+ topic/ph pr-d/codeph ">myDisplayObject</codeph> という名前の表示オブジェクトを含んでいる SWF ファイルに関連を見つけるには<codeph class="+ topic/ph pr-d/codeph ">myDisplayObject.root.loaderInfo</codeph> を使用します
  1190. <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">this.root.loaderInfo.addEventListener(Event.COMPLETE, func)</codeph> を呼び出すことにより大きな SWF ファイルのダウンロードを監視できます</p>
  1191. </apiDesc><example conref="examples\DisplayObject.loaderInfo.1.as" class="- topic/example "> 次のコードでは<codeph class="+ topic/ph pr-d/codeph ">this</codeph> が表示オブジェクトを参照するものと想定していますこのコードでは表示オブジェクトのルート SWF ファイルの URL を出力します
  1192. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  1193. trace (this.loaderInfo.url);
  1194. </codeblock></example></apiValueDetail><related-links class="- topic/related-links "><link href="flash.display.xml#LoaderInfo" class="- topic/link "><linktext class="- topic/linktext ">LoaderInfo クラス</linktext></link></related-links></apiValue><apiValue id="flash.display:DisplayObject:mask:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">mask</apiName><shortdesc class="- topic/shortdesc ">
  1195. 呼び出し元の表示オブジェクトは指定された mask オブジェクトによってマスクされます</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="readwrite" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">flash.display:DisplayObject</apiValueClassifier><apiTipTexts><apiTipText class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiTipText ">表示オブジェクトのマスクを設定します
  1196. </apiTipText></apiTipTexts></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  1197. 呼び出し元の表示オブジェクトは指定された <codeph class="+ topic/ph pr-d/codeph ">mask</codeph> オブジェクトによってマスクされますステージの拡大および縮小時にマスクが確実に機能するためには表示リストのアクティブな部分に <codeph class="+ topic/ph pr-d/codeph ">mask</codeph> 表示オブジェクトが含まれている必要があります<codeph class="+ topic/ph pr-d/codeph ">mask</codeph> オブジェクト自体は描画されませんマスクを除去するには <codeph class="+ topic/ph pr-d/codeph ">mask</codeph> <codeph class="+ topic/ph pr-d/codeph ">null</codeph> に設定します
  1198. <p class="- topic/p ">マスクオブジェクトを拡大および縮小するためにはそのオブジェクトが表示リストに含まれている必要があります<codeph class="+ topic/ph pr-d/codeph ">startDrag()</codeph> メソッドを呼び出すことによりマスク Sprite オブジェクトをドラッグするためにはそのオブジェクトが表示リストに含まれなければなりませんマスクスプライトに対して <codeph class="+ topic/ph pr-d/codeph ">startDrag()</codeph> メソッドを呼び出すにはこの呼び出しはスプライトによって送出される <codeph class="+ topic/ph pr-d/codeph ">mouseDown</codeph> イベントに基づきますスプライトの <codeph class="+ topic/ph pr-d/codeph ">buttonMode</codeph> プロパティを <codeph class="+ topic/ph pr-d/codeph ">true</codeph> に設定します</p>
  1199. <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">cacheAsBitmap</codeph> プロパティに <codeph class="+ topic/ph pr-d/codeph ">true</codeph> を設定し<codeph class="+ topic/ph pr-d/codeph ">cacheAsBitmapMatrix</codeph> プロパティに Matrix オブジェクトを設定して表示オブジェクトがキャッシュされる場合はマスクおよびその適用対象である表示オブジェクトの両方が同じキャッシュ対象ビットマップの一部である必要がありますつまり表示オブジェクトがキャッシュされる場合はマスクはその表示オブジェクトの子である必要があります表示リスト内でその表示オブジェクトの祖先にあたるオブジェクトがキャッシュされる場合マスクはその祖先の子またはその祖先の子孫である必要がありますマスク適用対象オブジェクトの祖先のうち複数がキャッシュされる場合はマスクは表示リスト内でそのマスク適用対象オブジェクトに最も近いキャッシュ対象コンテナの子孫である必要があります</p>
  1200. <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意</b>1 つの <codeph class="+ topic/ph pr-d/codeph ">mask</codeph> オブジェクトを使用して複数の呼び出し元表示オブジェクトをマスクすることはできません<codeph class="+ topic/ph pr-d/codeph ">mask</codeph> 2 番目の表示オブジェクトに割り当てられるとそのオブジェクトは最初の表示オブジェクトのマスクとして削除され最初の表示オブジェクトの <codeph class="+ topic/ph pr-d/codeph ">mask</codeph> プロパティは <codeph class="+ topic/ph pr-d/codeph ">null</codeph> になります</p>
  1201. </apiDesc><example conref="examples\DisplayObject.mask.1.as" class="- topic/example "> 次のコードではTextField オブジェクトと Sprite オブジェクトを作成しSprite オブジェクトを TextField オブジェクトのマスクとして設定しますユーザーがテキストフィールドをクリックすると<codeph class="+ topic/ph pr-d/codeph ">drag()</codeph> イベントリスナー機能がマスク Sprite オブジェクトの <codeph class="+ topic/ph pr-d/codeph ">startDrag()</codeph> メソッドを呼び出します
  1202. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  1203. import flash.text.TextField;
  1204. import flash.display.Sprite;
  1205. import flash.events.MouseEvent;
  1206. var tf:TextField = new TextField();
  1207. tf.text = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, "
  1208. + "sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. "
  1209. tf.selectable = false;
  1210. tf.wordWrap = true;
  1211. tf.width = 150;
  1212. addChild(tf);
  1213. var square:Sprite = new Sprite();
  1214. square.graphics.beginFill(0xFF0000);
  1215. square.graphics.drawRect(0, 0, 40, 40);
  1216. addChild(square);
  1217. tf.mask = square;
  1218. tf.addEventListener(MouseEvent.MOUSE_DOWN, drag);
  1219. tf.addEventListener(MouseEvent.MOUSE_UP, noDrag);
  1220. function drag(event:MouseEvent):void {
  1221. square.startDrag();
  1222. }
  1223. function noDrag(event:MouseEvent):void {
  1224. square.stopDrag();
  1225. }
  1226. </codeblock></example></apiValueDetail></apiValue><apiValue id="flash.display:DisplayObject:mouseX:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">mouseX</apiName><shortdesc class="- topic/shortdesc ">
  1227. マウスまたはユーザー入力デバイスの x 軸の位置をピクセルで示します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="read" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">Number</apiValueClassifier></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  1228. マウスまたはユーザー入力デバイスの x 軸の位置をピクセルで示します
  1229. <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意</b>DisplayObject が回転している場合返される x 座標は回転前のオブジェクトの座標を反映します</p>
  1230. </apiDesc><example conref="examples\DisplayObject.mouseX.1.as" class="- topic/example "> 次のコードではSprite オブジェクトを作成しユーザーがスプライトをクリックすると<codeph class="+ topic/ph pr-d/codeph ">mouseX</codeph> および <codeph class="+ topic/ph pr-d/codeph ">mouseY</codeph> の位置がトレースされます
  1231. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  1232. import flash.display.Sprite;
  1233. import flash.events.MouseEvent;
  1234. var square:Sprite = new Sprite();
  1235. square.graphics.beginFill(0xFF0000);
  1236. square.graphics.drawRect(0, 0, 200, 200);
  1237. addChild(square);
  1238. square.addEventListener(MouseEvent.CLICK, traceCoordinates);
  1239. function traceCoordinates(event:MouseEvent):void {
  1240. trace(square.mouseX, square.mouseY);
  1241. }
  1242. </codeblock></example></apiValueDetail></apiValue><apiValue id="flash.display:DisplayObject:mouseY:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">mouseY</apiName><shortdesc class="- topic/shortdesc ">
  1243. マウスまたはユーザー入力デバイスの y 軸の位置をピクセルで示します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="read" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">Number</apiValueClassifier></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  1244. マウスまたはユーザー入力デバイスの y 軸の位置をピクセルで示します
  1245. <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意</b>DisplayObject が回転している場合返される y 座標は回転前のオブジェクトの座標を反映します</p>
  1246. </apiDesc><example conref="examples\DisplayObject.mouseX.1.as" class="- topic/example "> 次のコードではSprite オブジェクトを作成しユーザーがスプライトをクリックすると<codeph class="+ topic/ph pr-d/codeph ">mouseX</codeph> および <codeph class="+ topic/ph pr-d/codeph ">mouseY</codeph> の位置がトレースされます
  1247. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  1248. import flash.display.Sprite;
  1249. import flash.events.MouseEvent;
  1250. var square:Sprite = new Sprite();
  1251. square.graphics.beginFill(0xFF0000);
  1252. square.graphics.drawRect(0, 0, 200, 200);
  1253. addChild(square);
  1254. square.addEventListener(MouseEvent.CLICK, traceCoordinates);
  1255. function traceCoordinates(event:MouseEvent):void {
  1256. trace(square.mouseX, square.mouseY);
  1257. }
  1258. </codeblock></example></apiValueDetail></apiValue><apiValue id="flash.display:DisplayObject:name:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">name</apiName><shortdesc class="- topic/shortdesc ">
  1259. DisplayObject のインスタンス名を示します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="readwrite" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">String</apiValueClassifier><apiException class="+ topic/ph reference/ph apiRef/apiDefItem apiOperation/apiEvent adobe-api-d/apiException "><apiDesc class="- topic/section reference/section apiRef/apiDesc ">Flash オーサリングツールでタイムライン上に配置されたオブジェクトに対してこのプロパティを設定しようとした場合
  1260. </apiDesc><apiItemName class="- topic/keyword reference/keyword apiRef/apiItemName ">IllegalOperationError</apiItemName><apiOperationClassifier class="- topic/xref reference/xref apiRef/apiRelation apiOperation/apiOperationClassifier ">flash.errors:IllegalOperationError</apiOperationClassifier></apiException><apiTipTexts><apiTipText class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiTipText ">この DisplayObject の名前です
  1261. </apiTipText></apiTipTexts></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  1262. DisplayObject のインスタンス名を示します親表示オブジェクトコンテナの子リスト内でオブジェクトを識別するには表示オブジェクトコンテナの <codeph class="+ topic/ph pr-d/codeph ">getChildByName()</codeph> メソッドを呼び出します
  1263. </apiDesc><example conref="examples\DisplayObject.name.1.as" class="- topic/example "> 次のコードでは2 つの Sprite オブジェクトを作成しユーザーがいずれかのオブジェクトをクリックしたときに関連付けられる <codeph class="+ topic/ph pr-d/codeph ">name</codeph> プロパティをトレースします
  1264. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  1265. import flash.display.Sprite;
  1266. import flash.events.MouseEvent;
  1267. var circle1:Sprite = new Sprite();
  1268. circle1.graphics.beginFill(0xFF0000);
  1269. circle1.graphics.drawCircle(40, 40, 40);
  1270. circle1.name = "circle1";
  1271. addChild(circle1);
  1272. circle1.addEventListener(MouseEvent.CLICK, traceName);
  1273. var circle2:Sprite = new Sprite();
  1274. circle2.graphics.beginFill(0x0000FF);
  1275. circle2.graphics.drawCircle(140, 40, 40);
  1276. circle2.name = "circle2";
  1277. addChild(circle2);
  1278. circle2.addEventListener(MouseEvent.CLICK, traceName);
  1279. function traceName(event:MouseEvent):void {
  1280. trace(event.target.name);
  1281. }
  1282. </codeblock></example></apiValueDetail></apiValue><apiValue id="flash.display:DisplayObject:opaqueBackground:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">opaqueBackground</apiName><shortdesc class="- topic/shortdesc ">
  1283. 表示オブジェクトが特定の背景色で不透明であるかどうかを指定します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="readwrite" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">Object</apiValueClassifier></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  1284. 表示オブジェクトが特定の背景色で不透明であるかどうかを指定します透明のビットマップにはアルファチャンネルデータが含まれ透明に描画されます不透明のビットマップにはアルファチャンネルがありませんしたがって透明のビットマップより速くレンダリングされますビットマップが不透明の場合使用する独自の背景色を指定する必要があります
  1285. <p class="- topic/p ">数値が設定された場合これは数値によって指定される RGB 背景色を持つ不透明な透明でないサーフェスになります<codeph class="+ topic/ph pr-d/codeph ">null</codeph>デフォルト値に設定された場合表示オブジェクトの背景は透明になります</p>
  1286. <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">opaqueBackground</codeph> プロパティの主な用途はレンダリング最適化のために <codeph class="+ topic/ph pr-d/codeph ">cacheAsBitmap</codeph> プロパティと共に使用することです<codeph class="+ topic/ph pr-d/codeph ">cacheAsBitmap</codeph> プロパティが true に設定されている表示オブジェクトでは<codeph class="+ topic/ph pr-d/codeph ">opaqueBackground</codeph> を設定するとレンダリングのパフォーマンスが向上する可能性があります</p>
  1287. <p class="- topic/p ">不透明な背景領域は照合され<i class="+ topic/ph hi-d/i ">ません</i><codeph class="+ topic/ph pr-d/codeph ">hitTestPoint()</codeph> メソッドを<codeph class="+ topic/ph pr-d/codeph ">shapeFlag</codeph> パラメーターを <codeph class="+ topic/ph pr-d/codeph ">true</codeph> に設定して呼び出す場合</p>
  1288. <p class="- topic/p ">不透明な背景領域はマウスイベントに反応しません</p>
  1289. </apiDesc><example conref="examples\DisplayObject.opaqueBackground.1.as" class="- topic/example "> 次のコードでは青色の円の Shape オブジェクトを作成しその <codeph class="+ topic/ph pr-d/codeph ">opaqueBackground</codeph> プロパティを赤色0xFF0000に設定します
  1290. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  1291. import flash.display.Shape;
  1292. var circle:Shape = new Shape();
  1293. circle.graphics.beginFill(0x0000FF);
  1294. circle.graphics.drawCircle(40, 40, 40);
  1295. circle.opaqueBackground = 0xFF0000;
  1296. addChild(circle);
  1297. </codeblock></example></apiValueDetail><related-links class="- topic/related-links "><link href="flash.display.xml#DisplayObject/cacheAsBitmap" class="- topic/link "><linktext class="- topic/linktext ">cacheAsBitmap</linktext></link><link href="flash.display.xml#DisplayObject/hitTestPoint()" class="- topic/link "><linktext class="- topic/linktext ">hitTestPoint()</linktext></link></related-links></apiValue><apiValue id="flash.display:DisplayObject:parent:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">parent</apiName><shortdesc class="- topic/shortdesc ">
  1298. この表示オブジェクトを含む DisplayObjectContainer オブジェクトを示します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="read" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">flash.display:DisplayObjectContainer</apiValueClassifier><apiException class="+ topic/ph reference/ph apiRef/apiDefItem apiOperation/apiEvent adobe-api-d/apiException "><apiDesc class="- topic/section reference/section apiRef/apiDesc ">親表示オブジェクトはアクセス権限が与えられていないセキュリティ Sandbox に属しています親ムービーで <codeph class="+ topic/ph pr-d/codeph ">Security.allowDomain()</codeph> メソッドを呼び出すことによりこのような状況を避けることができます
  1299. </apiDesc><apiItemName class="- topic/keyword reference/keyword apiRef/apiItemName ">SecurityError</apiItemName><apiOperationClassifier class="- topic/xref reference/xref apiRef/apiRelation apiOperation/apiOperationClassifier ">SecurityError</apiOperationClassifier></apiException></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  1300. この表示オブジェクトを含む DisplayObjectContainer オブジェクトを示します表示リスト階層内の現在の表示オブジェクトの上位にある表示オブジェクトへの相対パスを指定するには<codeph class="+ topic/ph pr-d/codeph ">parent</codeph> プロパティを使用します
  1301. <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">parent</codeph> を使用して表示リストの複数のレベルを上に移動するには次のようにします</p>
  1302. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  1303. this.parent.parent.alpha = 20;
  1304. </codeblock>
  1305. </apiDesc><example conref="examples\DisplayObject.parent.1.as" class="- topic/example "> 次のコードでは3 つの Sprite オブジェクトを作成し<codeph class="+ topic/ph pr-d/codeph ">parent</codeph> プロパティに表示リスト階層が反映されるしくみを示します
  1306. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  1307. import flash.display.Sprite;
  1308. var sprite1:Sprite = new Sprite();
  1309. sprite1.name = "sprite1";
  1310. var sprite2:Sprite = new Sprite();
  1311. sprite2.name = "sprite2";
  1312. var sprite3:Sprite = new Sprite();
  1313. sprite3.name = "sprite3";
  1314. sprite1.addChild(sprite2);
  1315. sprite2.addChild(sprite3);
  1316. trace(sprite2.parent.name); // sprite1
  1317. trace(sprite3.parent.name); // sprite2
  1318. trace(sprite3.parent.parent.name); // sprite1
  1319. </codeblock></example></apiValueDetail></apiValue><apiValue id="flash.display:DisplayObject:root:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">root</apiName><shortdesc class="- topic/shortdesc ">
  1320. 読み込まれた SWF ファイル内の表示オブジェクトの場合root プロパティはその SWF ファイルが表す表示リストのツリー構造部分の一番上にある表示オブジェクトとなります</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="read" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">flash.display:DisplayObject</apiValueClassifier><apiTipTexts><apiTipText class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiTipText ">このオブジェクトのルート表示オブジェクトを返します
  1321. </apiTipText></apiTipTexts></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  1322. 読み込まれた SWF ファイル内の表示オブジェクトの場合<codeph class="+ topic/ph pr-d/codeph ">root</codeph> プロパティはその SWF ファイルが表す表示リストのツリー構造部分の一番上にある表示オブジェクトとなります読み込まれたイメージファイルを表す Bitmap オブジェクトの場合<codeph class="+ topic/ph pr-d/codeph ">root</codeph> プロパティはBitmap オブジェクトそのものになります読み込まれた最初の SWF ファイルのメインクラスのインスタンスの場合<codeph class="+ topic/ph pr-d/codeph ">root</codeph> プロパティは表示オブジェクトそのものになりますStage オブジェクトの <codeph class="+ topic/ph pr-d/codeph ">root</codeph> プロパティはStage オブジェクトそのものになります表示リストに追加されていない表示オブジェクトの場合<codeph class="+ topic/ph pr-d/codeph ">root</codeph> プロパティには<codeph class="+ topic/ph pr-d/codeph ">null</codeph> が設定されますただし表示リスト外ではあるものの読み込まれた SWF ファイルの最上位の表示オブジェクトの子である表示オブジェクトコンテナに追加されていている場合は除きます
  1323. <p class="- topic/p ">例えば<codeph class="+ topic/ph pr-d/codeph ">Sprite()</codeph> コンストラクターメソッドを呼び出して新しい Sprite オブジェクトを作成した場合表示リストまたは表示リストの外にあるがSWF ファイルの最上位の表示オブジェクトの子である表示オブジェクトコンテナに追加されるまで<codeph class="+ topic/ph pr-d/codeph ">root</codeph> プロパティは <codeph class="+ topic/ph pr-d/codeph ">null</codeph> になります</p>
  1324. <p class="- topic/p ">読み込まれた SWF ファイルの場合ファイルの読み込みに使用した Loader オブジェクトが表示リストに存在しない可能性もありますがSWF ファイルの最上位の表示オブジェクトの <codeph class="+ topic/ph pr-d/codeph ">root</codeph> プロパティにはオブジェクトそのものが設定されますLoader オブジェクトでは<codeph class="+ topic/ph pr-d/codeph ">root</codeph> プロパティは設定されませんこの状態は<codeph class="+ topic/ph pr-d/codeph ">root</codeph> プロパティが設定されている表示オブジェクトの子として追加されるまで続きます</p>
  1325. </apiDesc><example conref="examples\DisplayObject.root.1.as" class="- topic/example "> 次のコードではStage オブジェクト表示リストに追加される前と後の両方の表示オブジェクトLoader オブジェクトおよびロードされたオブジェクトロードされた Bitmap オブジェクト <codeph class="+ topic/ph pr-d/codeph ">root</codeph> プロパティの違いを表示します
  1326. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  1327. import flash.display.Loader;
  1328. import flash.net.URLRequest;
  1329. import flash.events.Event;
  1330. trace(stage.root); // [object Stage]
  1331. var ldr:Loader = new Loader();
  1332. trace (ldr.root); // null
  1333. addChild(ldr);
  1334. trace (ldr.root); // [object ...]
  1335. var urlReq:URLRequest = new URLRequest("example.jpg");
  1336. ldr.load(urlReq);
  1337. ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, loaded);
  1338. function loaded(event:Event):void {
  1339. trace(ldr.content.root); // [object Bitmap]
  1340. }
  1341. </codeblock></example></apiValueDetail></apiValue><apiValue id="flash.display:DisplayObject:rotationX:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">rotationX</apiName><shortdesc class="- topic/shortdesc ">
  1342. DisplayObject インスタンスの 3D 親コンテナを基準にした元の位置からの x 軸の回転角を度単位で示します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="1.5" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="readwrite" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">Number</apiValueClassifier></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  1343. DisplayObject インスタンスの 3D 親コンテナを基準にした元の位置からの x 軸の回転角を度単位で示します時計回りに回転させる場合は 0 180 の値を指定します反時計回りに回転させる場合は 0 -180 の値を指定しますこの範囲を超える値は360 を加算または減算して範囲内に収まる値になるように調整されます
  1344. </apiDesc><example conref="examples\RotationExample1.as" class="- topic/example "> この例では2 つの楕円の <codeph class="+ topic/ph pr-d/codeph ">rotationX</codeph> プロパティと <codeph class="+ topic/ph pr-d/codeph ">rotationY</codeph> プロパティを使用してこれらの楕円を回転させます最初の楕円の基準点は楕円の中心に設定されていますこの楕円はその中心を軸にして回転します2 つ目の楕円は外部のポイントを軸にして回転します
  1345. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  1346. package {
  1347. import flash.display.MovieClip;
  1348. import flash.display.Shape;
  1349. import flash.geom.*;
  1350. import flash.display.Graphics;
  1351. import flash.events.TimerEvent;
  1352. import flash.utils.Timer;
  1353. public class RotationExample1 extends MovieClip {
  1354. private var ellipse:Shape = new Shape();
  1355. private var speed:int = 10;
  1356. private var ellipse1:Shape;
  1357. private var ellipse2:Shape;
  1358. public function RotationExample1():void {
  1359. ellipse1 = drawEllipse(-50, -40, (this.stage.stageWidth / 2),
  1360. (this.stage.stageHeight / 2));
  1361. ellipse2 = drawEllipse(30, 40, (this.stage.stageWidth / 2),
  1362. (this.stage.stageHeight / 2));
  1363. this.addChild(ellipse1);
  1364. this.addChild(ellipse2);
  1365. var t:Timer = new Timer(50);
  1366. t.addEventListener(TimerEvent.TIMER, timerHandler);
  1367. t.start();
  1368. }
  1369. private function drawEllipse(x1, y1, x2, y2):Shape {
  1370. var e:Shape = new Shape();
  1371. e.graphics.beginFill(0xFF0000);
  1372. e.graphics.lineStyle(2);
  1373. e.graphics.drawEllipse(x1, y1, 100, 80);
  1374. e.graphics.endFill();
  1375. e.x = x2;
  1376. e.y = y2;
  1377. e.z = 1;
  1378. return e;
  1379. }
  1380. private function timerHandler(event:TimerEvent):void {
  1381. ellipse1.rotationY += speed;
  1382. ellipse1.rotationX -= speed;
  1383. ellipse2.rotationY += speed;
  1384. ellipse2.rotationX -= speed;
  1385. }
  1386. }
  1387. }
  1388. </codeblock></example><example conref="examples\Slider_rotationX.as" class="- topic/example "> 次の例ではFlash ProfessionalActionScript 3.0 および Flash Player 10 を使用してオブジェクトの rotationX プロパティを設定しSprite オブジェクトを x 軸の周囲で 3D 回転させる方法を示します<xref href="http://actionscriptexamples.com/2009/02/26/rotating-a-sprite-object-around-its-x-axis-in-flash-using-actionscript-30-and-flash-player-10/" scope="_mmexternal" class="- topic/xref ">ActionScriptExamples.com</xref> で作成された例
  1389. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  1390. //Requires:
  1391. // - Slider control UI component in Flash library.
  1392. // - Publish for Flash Player 10.
  1393. //
  1394. [SWF(width="400", height="300")]
  1395. import fl.controls.Slider;
  1396. import fl.controls.SliderDirection;
  1397. import fl.events.SliderEvent;
  1398. var slider:Slider = new Slider();
  1399. slider.direction = SliderDirection.HORIZONTAL;
  1400. slider.minimum = 0;
  1401. slider.maximum = 360;
  1402. slider.value = 45;
  1403. slider.tickInterval = 45;
  1404. slider.snapInterval = 1;
  1405. slider.liveDragging = true;
  1406. slider.addEventListener(SliderEvent.CHANGE, slider_change);
  1407. slider.move(10, 10);
  1408. addChild(slider);
  1409. var spr:Sprite = new Sprite();
  1410. spr.graphics.lineStyle(2, 0xFF0000);
  1411. spr.graphics.drawRect(0, 0, 100, 80);
  1412. spr.x = Math.round((stage.stageWidth - spr.width)/2);
  1413. spr.y = Math.round((stage.stageHeight - spr.height)/2);
  1414. spr.rotationX = 45;
  1415. addChild(spr);
  1416. function slider_change(evt:SliderEvent):void {
  1417. spr.rotationX = evt.value;
  1418. }
  1419. </codeblock></example></apiValueDetail></apiValue><apiValue id="flash.display:DisplayObject:rotationY:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">rotationY</apiName><shortdesc class="- topic/shortdesc ">
  1420. DisplayObject インスタンスの 3D 親コンテナを基準にした元の位置からの y 軸の回転角を度単位で示します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="1.5" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="readwrite" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">Number</apiValueClassifier></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  1421. DisplayObject インスタンスの 3D 親コンテナを基準にした元の位置からの y 軸の回転角を度単位で示します時計回りに回転させる場合は 0 180 の値を指定します反時計回りに回転させる場合は 0 -180 の値を指定しますこの範囲を超える値は360 を加算または減算して範囲内に収まる値になるように調整されます
  1422. </apiDesc><example conref="examples\RotationExample1.as" class="- topic/example "> この例では2 つの楕円の <codeph class="+ topic/ph pr-d/codeph ">rotationX</codeph> プロパティと <codeph class="+ topic/ph pr-d/codeph ">rotationY</codeph> プロパティを使用してこれらの楕円を回転させます最初の楕円の基準点は楕円の中心に設定されていますこの楕円はその中心を軸にして回転します2 つ目の楕円は外部のポイントを軸にして回転します
  1423. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  1424. package {
  1425. import flash.display.MovieClip;
  1426. import flash.display.Shape;
  1427. import flash.geom.*;
  1428. import flash.display.Graphics;
  1429. import flash.events.TimerEvent;
  1430. import flash.utils.Timer;
  1431. public class RotationExample1 extends MovieClip {
  1432. private var ellipse:Shape = new Shape();
  1433. private var speed:int = 10;
  1434. private var ellipse1:Shape;
  1435. private var ellipse2:Shape;
  1436. public function RotationExample1():void {
  1437. ellipse1 = drawEllipse(-50, -40, (this.stage.stageWidth / 2),
  1438. (this.stage.stageHeight / 2));
  1439. ellipse2 = drawEllipse(30, 40, (this.stage.stageWidth / 2),
  1440. (this.stage.stageHeight / 2));
  1441. this.addChild(ellipse1);
  1442. this.addChild(ellipse2);
  1443. var t:Timer = new Timer(50);
  1444. t.addEventListener(TimerEvent.TIMER, timerHandler);
  1445. t.start();
  1446. }
  1447. private function drawEllipse(x1, y1, x2, y2):Shape {
  1448. var e:Shape = new Shape();
  1449. e.graphics.beginFill(0xFF0000);
  1450. e.graphics.lineStyle(2);
  1451. e.graphics.drawEllipse(x1, y1, 100, 80);
  1452. e.graphics.endFill();
  1453. e.x = x2;
  1454. e.y = y2;
  1455. e.z = 1;
  1456. return e;
  1457. }
  1458. private function timerHandler(event:TimerEvent):void {
  1459. ellipse1.rotationY += speed;
  1460. ellipse1.rotationX -= speed;
  1461. ellipse2.rotationY += speed;
  1462. ellipse2.rotationX -= speed;
  1463. }
  1464. }
  1465. }
  1466. </codeblock></example></apiValueDetail></apiValue><apiValue id="flash.display:DisplayObject:rotationZ:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">rotationZ</apiName><shortdesc class="- topic/shortdesc ">
  1467. DisplayObject インスタンスの 3D 親コンテナを基準にした元の位置からの z 軸の回転角を度単位で示します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="1.5" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="readwrite" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">Number</apiValueClassifier></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  1468. DisplayObject インスタンスの 3D 親コンテナを基準にした元の位置からの z 軸の回転角を度単位で示します時計回りに回転させる場合は 0 180 の値を指定します反時計回りに回転させる場合は 0 -180 の値を指定しますこの範囲を超える値は360 を加算または減算して範囲内に収まる値になるように調整されます
  1469. </apiDesc></apiValueDetail></apiValue><apiValue id="flash.display:DisplayObject:rotation:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">rotation</apiName><shortdesc class="- topic/shortdesc ">
  1470. DisplayObject インスタンスの元の位置からの回転角を度単位で示します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="readwrite" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">Number</apiValueClassifier></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  1471. DisplayObject インスタンスの元の位置からの回転角を度単位で示します時計回りに回転させる場合は 0 180 の値を指定します反時計回りに回転させる場合は 0 -180 の値を指定しますこの範囲を超える値は360 を加算または減算して範囲内に収まる値になるように調整されます例えば<codeph class="+ topic/ph pr-d/codeph ">my_video.rotation = 450</codeph> というステートメントは <codeph class="+ topic/ph pr-d/codeph ">my_video.rotation = 90</codeph> と同義です
  1472. </apiDesc><example conref="examples\DisplayObject.rotation.1.as" class="- topic/example "> 次のコードではSprite オブジェクトを作成しユーザーがそれをクリックするとオブジェクトが回転します
  1473. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  1474. import flash.display.Sprite;
  1475. import flash.events.MouseEvent;
  1476. var square:Sprite = new Sprite();
  1477. square.graphics.beginFill(0xFFCC00);
  1478. square.graphics.drawRect(-50, -50, 100, 100);
  1479. square.x = 150;
  1480. square.y = 150;
  1481. addChild(square);
  1482. square.addEventListener(MouseEvent.CLICK, rotate);
  1483. function rotate(event:MouseEvent):void {
  1484. square.rotation += 15;
  1485. }
  1486. </codeblock></example></apiValueDetail></apiValue><apiValue id="flash.display:DisplayObject:scale9Grid:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">scale9Grid</apiName><shortdesc class="- topic/shortdesc ">
  1487. 現在有効な拡大 / 縮小グリッドです</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata><asCustoms class="+ topic/metadata adobe-api-d/asCustoms "><maelexample>The following creates a movie clip that contains a 20-pixel line (which forms a border)
  1488. and a gradient fill. The movie clip scales based on the mouse position, and because of the
  1489. <code>scale9Grid</code> set for the movie clip, the thickness of the 20-pixel line does not
  1490. vary when the clip scales (although the gradient in the movie clip <em>does</em> scale):
  1491. <listing version="2.0">
  1492. import flash.geom.Rectangle;
  1493. import flash.geom.Matrix;
  1494. this.createEmptyMovieClip("my_mc", this.getNextHighestDepth());
  1495. var grid:Rectangle = new Rectangle(20, 20, 260, 260);
  1496. my_mc.scale9Grid = grid ;
  1497. my_mc._x = 50;
  1498. my_mc._y = 50;
  1499. function onMouseMove()
  1500. {
  1501. my_mc._width = _xmouse;
  1502. my_mc._height = _ymouse;
  1503. }
  1504. my_mc.lineStyle(20, 0xff3333, 100);
  1505. var gradient_matrix:Matrix = new Matrix();
  1506. gradient_matrix.createGradientBox(15, 15, Math.PI, 10, 10);
  1507. my_mc.beginGradientFill("radial", [0xffff00, 0x0000ff],
  1508. [100, 100], [0, 0xFF], gradient_matrix,
  1509. "reflect", "RGB", 0.9);
  1510. my_mc.moveTo(0, 0);
  1511. my_mc.lineTo(0, 300);
  1512. my_mc.lineTo(300, 300);
  1513. my_mc.lineTo(300, 0);
  1514. my_mc.lineTo(0, 0);
  1515. my_mc.endFill();
  1516. </listing>
  1517. </maelexample></asCustoms></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="readwrite" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">flash.geom:Rectangle</apiValueClassifier><apiException class="+ topic/ph reference/ph apiRef/apiDefItem apiOperation/apiEvent adobe-api-d/apiException "><apiDesc class="- topic/section reference/section apiRef/apiDesc ">メソッドに無効な引数を渡した場合
  1518. </apiDesc><apiItemName class="- topic/keyword reference/keyword apiRef/apiItemName ">ArgumentError</apiItemName><apiOperationClassifier class="- topic/xref reference/xref apiRef/apiRelation apiOperation/apiOperationClassifier ">ArgumentError</apiOperationClassifier></apiException></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  1519. 現在有効な拡大 / 縮小グリッドです<codeph class="+ topic/ph pr-d/codeph ">null</codeph> に設定されている場合拡大または縮小変換が適用されると表示オブジェクト全体は通常どおりに拡大または縮小されます
  1520. <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">scale9Grid</codeph> プロパティを定義するとグリッドの中央領域を定義する <codeph class="+ topic/ph pr-d/codeph ">scale9Grid</codeph> 矩形に基づいて9 つの領域からなるグリッドに表示オブジェクトが分割されますグリッドの他の 8 領域は次のような領域です </p>
  1521. <ul class="- topic/ul "><li class="- topic/li ">矩形の外側の左上端</li><li class="- topic/li ">矩形の上側の領域 </li><li class="- topic/li ">矩形の外側の右上端</li><li class="- topic/li ">矩形の左側の領域</li><li class="- topic/li ">矩形の右側の領域</li><li class="- topic/li ">矩形の外側の左下端</li><li class="- topic/li ">矩形の下側にある領域</li><li class="- topic/li ">矩形の外側の右下端</li></ul>
  1522. <p class="- topic/p ">矩形で定義される中心以外の 8 つの領域は拡大 / 縮小時に特別な規則が適用される額縁のようなものと考えることができます</p>
  1523. <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">scale9Grid</codeph> プロパティが設定されているときに表示オブジェクトを拡大 / 縮小するとテキストとグラデーションはすべて通常どおり拡大 / 縮小しますがそれ以外の種類のオブジェクトには次のような規則が適用されます</p>
  1524. <ul class="- topic/ul "><li class="- topic/li ">中央領域のコンテンツは通常どおり拡大 / 縮小します </li><li class="- topic/li ">左上右上左下右下のコンテンツは拡大 / 縮小しません </li><li class="- topic/li ">上下の領域のコンテンツは水平方向にのみ拡大 / 縮小します左右の領域のコンテンツは垂直方向にのみ拡大 / 縮小します</li><li class="- topic/li ">すべての塗りビットマップビデオグラデーションを含む形状に収まるように伸縮されます</li></ul>
  1525. <p class="- topic/p ">表示オブジェクトが回転されるとそれ以降の拡大 / 縮小はすべて通常どおりになり<codeph class="+ topic/ph pr-d/codeph ">scale9Grid</codeph> プロパティは無視されます</p>
  1526. <p class="- topic/p ">例えば次のような表示オブジェクトとその表示オブジェクトの <codeph class="+ topic/ph pr-d/codeph ">scale9Grid</codeph> として適用される矩形があるとします</p>
  1527. <adobetable class="+ topic/table adobe-d/adobetable "><tgroup cols="2" class="- topic/tgroup "><tbody class="- topic/tbody "><row class="- topic/row "><entry align="center" class="- topic/entry "><adobeimage alt="表示オブジェクトのイメージ" href="../../images/scale9Grid-a.jpg" placement="inline" class="+ topic/image adobe-d/adobeimage "/>
  1528. <p class="- topic/p ">表示オブジェクトです</p></entry><entry align="center" class="- topic/entry "><adobeimage alt="表示オブジェクトの 9 領域での拡大 / 縮小" href="../../images/scale9Grid-b.jpg" placement="inline" class="+ topic/image adobe-d/adobeimage "/>
  1529. <p class="- topic/p ">赤の矩形は <codeph class="+ topic/ph pr-d/codeph ">scale9Grid</codeph> を表します</p></entry></row></tbody></tgroup></adobetable>
  1530. <p class="- topic/p ">表示オブジェクトを拡大 / 縮小または伸縮すると矩形内のオブジェクトは通常どおり拡大 / 縮小しますが矩形外のオブジェクトは <codeph class="+ topic/ph pr-d/codeph ">scale9Grid</codeph> の規則に従って拡大 / 縮小します</p>
  1531. <adobetable class="+ topic/table adobe-d/adobetable "><tgroup cols="2" class="- topic/tgroup "><tbody class="- topic/tbody "><row class="- topic/row "><entry class="- topic/entry ">75% に縮小</entry><entry class="- topic/entry "><adobeimage alt="75% の表示オブジェクト" href="../../images/scale9Grid-c.jpg" placement="inline" class="+ topic/image adobe-d/adobeimage "/></entry></row><row class="- topic/row "><entry class="- topic/entry ">50% に縮小</entry><entry class="- topic/entry "><adobeimage alt="50% の表示オブジェクト" href="../../images/scale9Grid-d.jpg" placement="inline" class="+ topic/image adobe-d/adobeimage "/></entry></row><row class="- topic/row "><entry class="- topic/entry ">25% に縮小</entry><entry class="- topic/entry "><adobeimage alt="25% の表示オブジェクト" href="../../images/scale9Grid-e.jpg" placement="inline" class="+ topic/image adobe-d/adobeimage "/></entry></row><row class="- topic/row "><entry class="- topic/entry ">水平方向に 150% 伸長 </entry><entry class="- topic/entry "><adobeimage alt="150% に伸長された表示" href="../../images/scale9Grid-f.jpg" placement="inline" class="+ topic/image adobe-d/adobeimage "/></entry></row></tbody></tgroup></adobetable>
  1532. <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">scale9Grid</codeph> 設定の一般的な使用法は拡大 / 縮小時にエッジ領域が同じ幅に保たれるコンポーネントとして表示オブジェクトをセットアップすることです</p>
  1533. </apiDesc><example conref="examples\DisplayObject.scale9Grid.1.as" class="- topic/example "> 次のコードではShape オブジェクトを作成しその <codeph class="+ topic/ph pr-d/codeph ">graphics</codeph> プロパティで矩形を描画します矩形は太さ 20 ピクセルの線を境界に使用しグラデーションで塗りつぶしますタイマーイベントでは <codeph class="+ topic/ph pr-d/codeph ">scale()</codeph> 関数を呼び出し<codeph class="+ topic/ph pr-d/codeph ">scaleX</codeph> プロパティおよび <codeph class="+ topic/ph pr-d/codeph ">scaleY</codeph> プロパティを調整してShape オブジェクトを拡大 / 縮小します<codeph class="+ topic/ph pr-d/codeph ">scale9Grid</codeph> Shape オブジェクトに適用されるため矩形の境界線は拡大 / 縮小されずグラデーションの塗りのみが拡大 / 縮小されます
  1534. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  1535. import flash.display.Shape;
  1536. import flash.display.GradientType;
  1537. import flash.display.SpreadMethod;
  1538. import flash.display.InterpolationMethod;
  1539. import flash.geom.Matrix;
  1540. import flash.geom.Rectangle;
  1541. import flash.utils.Timer;
  1542. import flash.events.TimerEvent;
  1543. var square:Shape = new Shape();
  1544. square.graphics.lineStyle(20, 0xFFCC00);
  1545. var gradientMatrix:Matrix = new Matrix();
  1546. gradientMatrix.createGradientBox(15, 15, Math.PI, 10, 10);
  1547. square.graphics.beginGradientFill(GradientType.RADIAL,
  1548. [0xffff00, 0x0000ff],
  1549. [100, 100],
  1550. [0, 0xFF],
  1551. gradientMatrix,
  1552. SpreadMethod.REFLECT,
  1553. InterpolationMethod.RGB,
  1554. 0.9);
  1555. square.graphics.drawRect(0, 0, 100, 100);
  1556. var grid:Rectangle = new Rectangle(20, 20, 60, 60);
  1557. square.scale9Grid = grid ;
  1558. addChild(square);
  1559. var tim:Timer = new Timer(100);
  1560. tim.start();
  1561. tim.addEventListener(TimerEvent.TIMER, scale);
  1562. var scaleFactor:Number = 1.01;
  1563. function scale(event:TimerEvent):void {
  1564. square.scaleX *= scaleFactor;
  1565. square.scaleY *= scaleFactor;
  1566. if (square.scaleX > 2.0) {
  1567. scaleFactor = 0.99;
  1568. }
  1569. if (square.scaleX &lt; 1.0) {
  1570. scaleFactor = 1.01;
  1571. }
  1572. }
  1573. </codeblock></example></apiValueDetail><related-links class="- topic/related-links "><link href="flash.geom.xml#Rectangle" class="- topic/link "><linktext class="- topic/linktext ">flash.geom.Rectangle</linktext></link></related-links></apiValue><apiValue id="flash.display:DisplayObject:scaleX:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">scaleX</apiName><shortdesc class="- topic/shortdesc ">
  1574. 基準点から適用されるオブジェクトの水平スケールパーセンテージを示します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="readwrite" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">Number</apiValueClassifier></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  1575. 基準点から適用されるオブジェクトの水平スケールパーセンテージを示します デフォルトの基準点は (0,0) です1.0 は縮尺 100% と同等です
  1576. <p class="- topic/p ">ローカル座標系を拡大 / 縮小すると<codeph class="+ topic/ph pr-d/codeph ">x</codeph> および <codeph class="+ topic/ph pr-d/codeph ">y</codeph> プロパティの値が変化しますこの変化は整数のピクセル数で表されます </p>
  1577. </apiDesc><example conref="examples\DisplayObject.scaleX.1.as" class="- topic/example "> 次のコードではSprite オブジェクトを作成しその <codeph class="+ topic/ph pr-d/codeph ">graphics</codeph> プロパティで矩形を描画しますユーザーがスプライトをクリックするとスプライトは 10% 拡大されます
  1578. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  1579. import flash.display.Sprite;
  1580. import flash.events.MouseEvent;
  1581. var square:Sprite = new Sprite();
  1582. square.graphics.beginFill(0xFFCC00);
  1583. square.graphics.drawRect(0, 0, 100, 100);
  1584. addChild(square);
  1585. square.addEventListener(MouseEvent.CLICK, scale);
  1586. function scale(event:MouseEvent):void {
  1587. square.scaleX *= 1.10;
  1588. square.scaleY *= 1.10;
  1589. }
  1590. </codeblock></example></apiValueDetail></apiValue><apiValue id="flash.display:DisplayObject:scaleY:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">scaleY</apiName><shortdesc class="- topic/shortdesc ">
  1591. オブジェクトの基準点から適用されるオブジェクトの垂直スケールパーセンテージを示します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="readwrite" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">Number</apiValueClassifier></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  1592. オブジェクトの基準点から適用されるオブジェクトの垂直スケールパーセンテージを示します デフォルトの基準点は (0,0) です1.0 は縮尺 100% です
  1593. <p class="- topic/p ">ローカル座標系を拡大 / 縮小すると<codeph class="+ topic/ph pr-d/codeph ">x</codeph> および <codeph class="+ topic/ph pr-d/codeph ">y</codeph> プロパティの値が変化しますこの変化は整数のピクセル数で表されます </p>
  1594. </apiDesc><example conref="examples\DisplayObject.scaleX.1.as" class="- topic/example "> 次のコードではSprite オブジェクトを作成しその <codeph class="+ topic/ph pr-d/codeph ">graphics</codeph> プロパティで矩形を描画しますユーザーがスプライトをクリックするとスプライトは 10% 拡大されます
  1595. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  1596. import flash.display.Sprite;
  1597. import flash.events.MouseEvent;
  1598. var square:Sprite = new Sprite();
  1599. square.graphics.beginFill(0xFFCC00);
  1600. square.graphics.drawRect(0, 0, 100, 100);
  1601. addChild(square);
  1602. square.addEventListener(MouseEvent.CLICK, scale);
  1603. function scale(event:MouseEvent):void {
  1604. square.scaleX *= 1.10;
  1605. square.scaleY *= 1.10;
  1606. }
  1607. </codeblock></example></apiValueDetail></apiValue><apiValue id="flash.display:DisplayObject:scaleZ:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">scaleZ</apiName><shortdesc class="- topic/shortdesc ">
  1608. オブジェクトの基準点から適用されるオブジェクトの奥行きスケールパーセンテージを示します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="10" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="AIR" version="1.5" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="readwrite" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">Number</apiValueClassifier></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  1609. オブジェクトの基準点から適用されるオブジェクトの奥行きスケールパーセンテージを示しますデフォルトの基準点は (0,0) です1.0 は縮尺 100% です
  1610. <p class="- topic/p ">ローカル座標系を拡大 / 縮小すると<codeph class="+ topic/ph pr-d/codeph ">x</codeph><codeph class="+ topic/ph pr-d/codeph ">y</codeph>および <codeph class="+ topic/ph pr-d/codeph ">z</codeph> プロパティの値が変化しますこれらの値はピクセル単位の整数値で表されます </p>
  1611. </apiDesc></apiValueDetail><related-links class="- topic/related-links "><link href="flash.display.xml#DisplayObject/z" class="- topic/link "><linktext class="- topic/linktext ">z</linktext></link></related-links></apiValue><apiValue id="flash.display:DisplayObject:scrollRect:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">scrollRect</apiName><shortdesc class="- topic/shortdesc ">
  1612. 表示オブジェクトのスクロール矩形の境界です</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="readwrite" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">flash.geom:Rectangle</apiValueClassifier></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  1613. 表示オブジェクトのスクロール矩形の境界です表示オブジェクトは矩形で定義されたサイズにトリミングされ<codeph class="+ topic/ph pr-d/codeph ">x</codeph> および <codeph class="+ topic/ph pr-d/codeph ">y</codeph> プロパティ<codeph class="+ topic/ph pr-d/codeph ">scrollRect</codeph> オブジェクトのプロパティを変更すると表示オブジェクトは矩形の内部でスクロールします
  1614. <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">scrollRect</codeph> 矩形オブジェクトのプロパティは表示オブジェクトの座標空間を使用し表示オブジェクト全体と同じように拡大および縮小されますスクロールしている表示オブジェクト上のトリミングされたウィンドウの隅の境界は表示オブジェクトの原点 (0,0)および矩形の幅と高さによって定義されるポイントですこれらは原点を中心に配置されるのではなく原点を使って領域の左上隅を定義しますスクロールされる表示オブジェクトは常にピクセル増分全体の中でスクロールします </p>
  1615. <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">x</codeph> プロパティ<codeph class="+ topic/ph pr-d/codeph ">scrollRect</codeph> 矩形オブジェクトのプロパティを設定することによりオブジェクトを左右にスクロールできます<codeph class="+ topic/ph pr-d/codeph ">y</codeph> プロパティ<codeph class="+ topic/ph pr-d/codeph ">scrollRect</codeph> 矩形オブジェクトのプロパティを設定することによりオブジェクトを上下にスクロールできます表示オブジェクトを 90 度回転して左右にスクロールするとこの表示オブジェクトは実際には上下にスクロールします</p>
  1616. </apiDesc><example conref="examples\DisplayObject.scrollRect.1.as" class="- topic/example "> 次の例では<codeph class="+ topic/ph pr-d/codeph ">scrollRect</codeph> プロパティが表示オブジェクトである <codeph class="+ topic/ph pr-d/codeph ">circle</codeph> のスクロール領域を定義する方法を示しています<codeph class="+ topic/ph pr-d/codeph ">circle</codeph> オブジェクトをクリックすると<codeph class="+ topic/ph pr-d/codeph ">clicked()</codeph> イベントハンドラーメソッドは<codeph class="+ topic/ph pr-d/codeph ">y</codeph> プロパティ<codeph class="+ topic/ph pr-d/codeph ">scrollRect</codeph> プロパティ<codeph class="+ topic/ph pr-d/codeph ">circle</codeph> オブジェクトのプロパティのプロパティを調整し結果としてオブジェクトが下にスクロールします
  1617. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  1618. import flash.display.Sprite;
  1619. import flash.geom.Rectangle;
  1620. import flash.events.MouseEvent;
  1621. var circle:Sprite = new Sprite();
  1622. circle.graphics.beginFill(0xFFCC00);
  1623. circle.graphics.drawCircle(200, 200, 200);
  1624. circle.scrollRect = new Rectangle(0, 0, 200, 200);
  1625. addChild(circle);
  1626. circle.addEventListener(MouseEvent.CLICK, clicked);
  1627. function clicked(event:MouseEvent):void {
  1628. var rect:Rectangle = event.target.scrollRect;
  1629. rect.y -= 5;
  1630. event.target.scrollRect = rect;
  1631. }
  1632. </codeblock></example></apiValueDetail><related-links class="- topic/related-links "><link href="flash.geom.xml#Rectangle" class="- topic/link "><linktext class="- topic/linktext ">flash.geom.Rectangle</linktext></link></related-links></apiValue><apiValue id="flash.display:DisplayObject:stage:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">stage</apiName><shortdesc class="- topic/shortdesc ">
  1633. 表示オブジェクトのステージです</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="read" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">flash.display:Stage</apiValueClassifier></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  1634. 表示オブジェクトのステージですFlash ランタイムアプリケーションには Stage オブジェクトが 1 つだけあります例えば複数の表示オブジェクトを作成して表示リストにロードすることができますその場合ロードされた SWF ファイルに表示オブジェクトが属する場合であってもそれぞれの表示オブジェクトの <codeph class="+ topic/ph pr-d/codeph ">stage</codeph> プロパティは同じ Stage オブジェクトを参照します
  1635. <p class="- topic/p ">表示オブジェクトが表示リストに追加されていない場合<codeph class="+ topic/ph pr-d/codeph ">stage</codeph> プロパティは <codeph class="+ topic/ph pr-d/codeph ">null</codeph> に設定されます</p>
  1636. </apiDesc><example conref="examples\DisplayObject.stage.1.as" class="- topic/example "> 次のコードは2 つの TextField オブジェクトを作成しStage オブジェクトの <codeph class="+ topic/ph pr-d/codeph ">width</codeph> プロパティを使用してテキストフィールドを配置します
  1637. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  1638. import flash.text.TextField;
  1639. var tf1:TextField = new TextField();
  1640. tf1.text = "Text Field 1";
  1641. tf1.border = true;
  1642. tf1.x = 10;
  1643. addChild(tf1);
  1644. tf1.width = tf1.stage.stageWidth / 2 - 10;
  1645. var tf2:TextField = new TextField();
  1646. tf2.text = "Text Field 2";
  1647. tf2.border = true;
  1648. tf2.x = tf1.x + tf1.width + 5;
  1649. addChild(tf2);
  1650. tf2.width = tf2.stage.stageWidth / 2 - 10;
  1651. trace(stage.stageWidth);
  1652. </codeblock></example></apiValueDetail></apiValue><apiValue id="flash.display:DisplayObject:transform:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">transform</apiName><shortdesc class="- topic/shortdesc ">
  1653. 表示オブジェクトのマトリックスカラー変換ピクセル境界に関係するプロパティを持つオブジェクトです</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="readwrite" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">flash.geom:Transform</apiValueClassifier></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  1654. 表示オブジェクトのマトリックスカラー変換ピクセル境界に関係するプロパティを持つオブジェクトです特定のプロパティつまり matrixcolorTransformおよび 3 つの読み取り専用プロパティ<codeph class="+ topic/ph pr-d/codeph ">concatenatedMatrix</codeph><codeph class="+ topic/ph pr-d/codeph ">concatenatedColorTransform</codeph>および <codeph class="+ topic/ph pr-d/codeph ">pixelBounds</codeph>についてはTransform クラスの最初の部分で説明します
  1655. <p class="- topic/p ">変形オブジェクトの各プロパティはそれ自身がオブジェクトですこの概念は重要ですmatrix オブジェクトまたは colorTransform オブジェクトの新しい値を設定する唯一の方法は新しいオブジェクトを作成しそのオブジェクトを transform.matrix プロパティまたは transform.colorTransform プロパティにコピーすることです</p>
  1656. <p class="- topic/p ">例えば表示オブジェクトのマトリックスの <codeph class="+ topic/ph pr-d/codeph ">tx</codeph> 値を増やすには次のようにして matrix オブジェクト全体のコピーを作成した後新しいオブジェクトを変形オブジェクトの matrix プロパティにコピーする必要があります</p>
  1657. <pre xml:space="preserve" class="- topic/pre "><codeph class="+ topic/ph pr-d/codeph ">
  1658. var myMatrix:Matrix = myDisplayObject.transform.matrix;
  1659. myMatrix.tx += 10;
  1660. myDisplayObject.transform.matrix = myMatrix;
  1661. </codeph></pre>
  1662. <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">tx</codeph> プロパティを直接設定することはできません次のコードは <codeph class="+ topic/ph pr-d/codeph ">myDisplayObject</codeph> に影響を与えません </p>
  1663. <pre xml:space="preserve" class="- topic/pre "><codeph class="+ topic/ph pr-d/codeph ">
  1664. myDisplayObject.transform.matrix.tx += 10;
  1665. </codeph></pre>
  1666. <p class="- topic/p ">また変形オブジェクト全体をコピーしそれを別の表示オブジェクトの transform プロパティに割り当てることもできます例えば次のコードでは変形オブジェクト全体を <codeph class="+ topic/ph pr-d/codeph ">myOldDisplayObj</codeph> から <codeph class="+ topic/ph pr-d/codeph ">myNewDisplayObj</codeph> にコピーします</p>
  1667. <codeph class="+ topic/ph pr-d/codeph ">myNewDisplayObj.transform = myOldDisplayObj.transform;</codeph>
  1668. <p class="- topic/p ">生成される表示オブジェクト <codeph class="+ topic/ph pr-d/codeph ">myNewDisplayObj</codeph> のマトリックスカラー変換ピクセル境界は古い表示オブジェクト <codeph class="+ topic/ph pr-d/codeph ">myOldDisplayObj</codeph> と同じ値になります</p>
  1669. <p class="- topic/p ">テレビ用 AIR デバイスではハードウェアアクセラレーションが使用可能な場合これがカラー変換に自動的に使用されます</p>
  1670. </apiDesc><example conref="examples\DisplayObject.transform.1.as" class="- topic/example "> 次のコードではSprite オブジェクト <codeph class="+ topic/ph pr-d/codeph ">square</codeph> を設定しますユーザーがスプライトをクリックすると<codeph class="+ topic/ph pr-d/codeph ">transformer()</codeph> メソッドにより<codeph class="+ topic/ph pr-d/codeph ">colorTransform</codeph> プロパティおよび <codeph class="+ topic/ph pr-d/codeph ">matrix</codeph> プロパティスプライトの <codeph class="+ topic/ph pr-d/codeph ">transform</codeph> プロパティのプロパティが調整されます
  1671. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  1672. import flash.display.Sprite;
  1673. import flash.geom.ColorTransform;
  1674. import flash.geom.Matrix;
  1675. import flash.geom.Transform;
  1676. import flash.events.MouseEvent;
  1677. var square:Sprite = new Sprite();
  1678. square.graphics.lineStyle(20, 0xFF2200);
  1679. square.graphics.beginFill(0x0000DD);
  1680. square.graphics.drawRect(0, 0, 100, 100);
  1681. addChild(square);
  1682. var resultColorTransform:ColorTransform = new ColorTransform();
  1683. resultColorTransform.alphaMultiplier = 0.5;
  1684. resultColorTransform.redOffset = 155;
  1685. resultColorTransform.greenMultiplier = 0.5;
  1686. var skewMatrix:Matrix = new Matrix(1, 1, 0, 1);
  1687. square.addEventListener(MouseEvent.CLICK, transformer);
  1688. function transformer(event:MouseEvent):void {
  1689. var transformation:Transform = square.transform;
  1690. var tempMatrix:Matrix = square.transform.matrix;
  1691. tempMatrix.concat(skewMatrix);
  1692. square.transform.colorTransform = resultColorTransform;
  1693. square.transform.matrix = tempMatrix;
  1694. }
  1695. </codeblock></example></apiValueDetail><related-links class="- topic/related-links "><link href="flash.geom.xml#Transform" class="- topic/link "><linktext class="- topic/linktext ">Transform クラス</linktext></link></related-links></apiValue><apiValue id="flash.display:DisplayObject:visible:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">visible</apiName><shortdesc class="- topic/shortdesc ">
  1696. 表示オブジェクトが可視かどうかを示します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="readwrite" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">Boolean</apiValueClassifier></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  1697. 表示オブジェクトが可視かどうかを示します非可視の表示オブジェクトは無効になります例えばある InteractiveObject インスタンスが <codeph class="+ topic/ph pr-d/codeph ">visible=false</codeph> に設定されている場合これをクリックすることはできません
  1698. </apiDesc><example conref="examples\DisplayObject.visible.1.as" class="- topic/example "> 次のコードではTimer オブジェクトを使用して表示オブジェクトの <codeph class="+ topic/ph pr-d/codeph ">visible</codeph> プロパティを定期的に変更する関数を呼び出して点滅効果を達成します
  1699. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  1700. import flash.text.TextField;
  1701. import flash.utils.Timer;
  1702. import flash.events.TimerEvent;
  1703. var tf:TextField = new TextField();
  1704. tf.text = "Hello.";
  1705. addChild(tf);
  1706. var tim:Timer = new Timer(250);
  1707. tim.start();
  1708. tim.addEventListener(TimerEvent.TIMER, blinker);
  1709. function blinker(event:TimerEvent):void {
  1710. tf.visible = !tf.visible;
  1711. }
  1712. </codeblock></example></apiValueDetail></apiValue><apiValue id="flash.display:DisplayObject:width:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">width</apiName><shortdesc class="- topic/shortdesc ">
  1713. 表示オブジェクトの幅を示しますピクセル単位</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="readwrite" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">Number</apiValueClassifier></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  1714. 表示オブジェクトの幅を示しますピクセル単位この幅は表示オブジェクトのコンテンツの境界に基づいて計算されます次のコードに示すようにこの <codeph class="+ topic/ph pr-d/codeph ">width</codeph> プロパティを設定するとそれに合わせて <codeph class="+ topic/ph pr-d/codeph ">scaleX</codeph> プロパティの値が調整されます
  1715. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  1716. var rect:Shape = new Shape();
  1717. rect.graphics.beginFill(0xFF0000);
  1718. rect.graphics.drawRect(0, 0, 100, 100);
  1719. trace(rect.scaleX) // 1;
  1720. rect.width = 200;
  1721. trace(rect.scaleX) // 2;</codeblock>
  1722. <p class="- topic/p ">TextField Video オブジェクトを除いて<codeph class="+ topic/ph pr-d/codeph ">width</codeph> を別の値に設定しようとしてもコンテンツのない表示オブジェクト例えば空のスプラインなどの幅は 0 になります</p>
  1723. </apiDesc><example conref="examples\DisplayObject.width.1.as" class="- topic/example "> 次のコードではSprite オブジェクト <codeph class="+ topic/ph pr-d/codeph ">square</codeph> を設定しますユーザーがスプライトをクリックすると<codeph class="+ topic/ph pr-d/codeph ">widen()</codeph> メソッドがスプライトの <codeph class="+ topic/ph pr-d/codeph ">width</codeph> プロパティを増加します
  1724. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  1725. import flash.display.Sprite;
  1726. import flash.events.MouseEvent;
  1727. var square:Sprite = new Sprite();
  1728. square.graphics.beginFill(0xFF0000);
  1729. square.graphics.drawRect(0, 0, 100, 100);
  1730. addChild(square);
  1731. square.addEventListener(MouseEvent.CLICK, widen);
  1732. function widen(event:MouseEvent):void {
  1733. square.width += 10;
  1734. }
  1735. </codeblock></example></apiValueDetail></apiValue><apiValue id="flash.display:DisplayObject:x:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (topic pr-d api-d)" class="- topic/topic reference/reference apiRef/apiRef apiValue/apiValue "><apiName class="- topic/title reference/title apiRef/apiName ">x</apiName><shortdesc class="- topic/shortdesc ">
  1736. DisplayObjectContainer のローカル座標を基準にした DisplayObject インスタンスの x 座標を示します</shortdesc><prolog class="- topic/prolog "><asMetadata class="+ topic/metadata adobe-api-d/asMetadata "><apiVersion class="+ topic/ph adobe-api-d/apiVersion "><apiLanguage version="3.0" class="+ topic/ph adobe-api-d/apiLanguage "/><apiPlatform description="" name="Flash" version="9" class="+ topic/ph adobe-api-d/apiPlatform "/><apiPlatform description="" name="Lite" version="4" class="+ topic/ph adobe-api-d/apiPlatform "/></apiVersion></asMetadata></prolog><apiValueDetail class="- topic/body reference/refbody apiRef/apiDetail apiValue/apiValueDetail "><apiValueDef class="- topic/section reference/section apiRef/apiDef apiValue/apiValueDef "><apiProperty class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiProperty "/><apiAccess value="public" class="- topic/state reference/state apiRef/apiQualifier adobe-api-d/apiAccess "/><apiDynamic class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiDynamic "/><apiValueAccess value="readwrite" class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiValueAccess "/><apiValueClassifier class="- topic/xref reference/xref apiRef/apiRelation apiValue/apiValueClassifier ">Number</apiValueClassifier></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
  1737. DisplayObjectContainer のローカル座標を基準にした DisplayObject インスタンスの <i class="+ topic/ph hi-d/i ">x</i> 座標を示します変形されている DisplayObjectContainer にオブジェクトが含まれる場合そのオブジェクトの座標系はそれを囲む DisplayObjectContainer のローカル座標系になりますしたがって反時計回りに 90 度回転した DisplayObjectContainer の場合その DisplayObjectContainer の子は反時計回りに 90 度回転した座標系を継承しますオブジェクトの座標は基準点の位置を参照します
  1738. </apiDesc><example conref="examples\DisplayObject.x.1.as" class="- topic/example "> 次のコードでは<codeph class="+ topic/ph pr-d/codeph ">circle</codeph> Sprite オブジェクトを設定しますTimer オブジェクトを使用してスプライトの <codeph class="+ topic/ph pr-d/codeph ">x</codeph> プロパティを 50 ミリ秒ごとに変更します
  1739. <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
  1740. import flash.display.Sprite;
  1741. import flash.utils.Timer;
  1742. import flash.events.TimerEvent;
  1743. var circle:Sprite = new Sprite();
  1744. circle.graphics.beginFill(0xFF0000);
  1745. circle.graphics.drawCircle(100, 100, 100);
  1746. addChild(circle);
  1747. var tim:Timer = new Timer(50);
  1748. tim.start();
  1749. tim.addEventListener(TimerEvent.TIMER, bounce);
  1750. var xInc:Number = 2;
  1751. function bounce(event:TimerEvent):void {
  1752. circle.x += xInc;
  1753. if (circle.x > circle.width) {
  1754. xInc = -2;
  1755. }
  1756. if (circle.x &lt; 0) {
  1757. xInc = 2;
  1758. }
  1759. }
  1760. </codeblock></example></apiValueDetail></apiValue><apiValue id="flash.display:DisplayObject:y:get" ditaarch:DITAArchVersion="1.0" domains="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d) (topic ut-d) (top