/frameworks/projects/playerglobal/bundles/ja_JP/docs/flash.display.xml
XML | 2271 lines | 1746 code | 507 blank | 18 comment | 0 complexity | 49940fb4b83ef4612d8bf7191f18a9a7 MD5 | raw file
Possible License(s): Apache-2.0
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
- <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 ">
-
- 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 ">
-
- FrameLabel オブジェクトには、フレーム番号および対応するラベル名を指定するプロパティがあります。Scene クラスには、<codeph class="+ topic/ph pr-d/codeph ">labels</codeph> プロパティがあります。これは、シーンの FrameLabel オブジェクトの配列です。
-
- </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 ">
- ラベルを含むフレームの番号。</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 ">
- ラベルを含むフレームの番号。
- </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 ">
- ラベルの名前。</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 ">
- ラベルの名前。
- </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 ">
- 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 ">
- InteractiveObject クラスは、マウス、キーボードまたは他のユーザー入力デバイスを使用してユーザーが操作できるすべての表示オブジェクトの抽象基本クラスです。
-
- <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>
-
- <p class="- topic/p ">InteractiveObject クラス自体は、コンテンツを画面上に描画する API を含みません。InteractiveObject クラスのカスタムサブクラスを作成するには、Sprite、SimpleButton、TextField、MovieClip クラスなど、画面上にコンテンツを描画する API を持つサブクラスの 1 つを拡張する必要があります。</p>
-
- </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> クラスを使用して矩形を描画し、その矩形を様々なマウスイベントに基づいて操作します。これを行うには、以下の手順を実行します。
- <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 = 0、y = 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 イベントリスナーメソッドを追加します。
-
- <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>
- </li></ol>
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- package {
- import flash.display.Sprite;
- public class InteractiveObjectExample extends Sprite {
- public function InteractiveObjectExample() {
- var child:Sprite = new ChildSprite();
- addChild(child);
- }
- }
- }
- import flash.display.Sprite;
- import flash.events.MouseEvent;
- class ChildSprite extends Sprite {
- private var size:uint = 50;
- private var overSize:uint = 60;
- private var backgroundColor:uint = 0xFFCC00;
- private var overColor:uint = 0xCCFF00;
- private var downColor:uint = 0x00CCFF;
- public function ChildSprite() {
- buttonMode = true;
- draw(size, size, backgroundColor);
- addEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler);
- addEventListener(MouseEvent.MOUSE_OUT, mouseOutHandler);
- addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
- addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
- }
- private function draw(w:uint, h:uint, bgColor:uint):void {
- graphics.clear();
- graphics.beginFill(bgColor);
- graphics.drawRect(0, 0, w, h);
- graphics.endFill();
- }
- public function mouseOverHandler(event:MouseEvent):void {
- trace("mouseOverHandler");
- draw(overSize, overSize, overColor);
- }
- public function mouseOutHandler(event:MouseEvent):void {
- trace("mouseOutHandler");
- draw(size, size, backgroundColor);
- }
- public function mouseDownHandler(event:MouseEvent):void {
- trace("mouseDownHandler");
- draw(overSize, overSize, downColor);
- }
- public function mouseUpHandler(event:MouseEvent):void {
- trace("mouseUpHandler");
- draw(overSize, overSize, overColor);
- }
- }
- </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 ">
- ソフトキーボードが背後に移動して非表示になった直後に送出されます。</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 ">ソフトキーボードが背後に移動して非表示になった直後に送出されます。
- </apiTipText></apiTipTexts></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
- ソフトキーボードが背後に移動して非表示になった直後に送出されます。
- </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 ">
- ソフトキーボードが前面に表示された直後に送出されます。</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 ">ソフトキーボードが前面に表示された直後に送出されます。
- </apiTipText></apiTipTexts></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
- ソフトキーボードが前面に表示された直後に送出されます。
- </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 ">
- ソフトキーボードが前面に表示される直前に送出されます。</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 ">ソフトキーボードが前面に表示される直前に送出されます。
- </apiTipText></apiTipTexts></adobeApiEventDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
- ソフトキーボードが前面に表示される直前に送出されます。
- </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 ">
- テキストの文字を入力すると送出されます。</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 ">
- テキストの文字を入力すると送出されます。標準キーボード、IME(入力メソッドエディター)、音声認識システム、書式やスタイルの情報を持たないプレーンテキストのペースト操作など、様々なテキスト入力メソッドによって、このイベントが生成されます。
- </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 ">
- このイベントは、IME でインライン入力をサポートしているすべてのクライアントアプリケーションに送出されます。
-
- </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 ">
- このイベントは、IME でインライン入力をサポートしているすべてのクライアントアプリケーションに送出されます。
-
- </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 ">
- 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 ">
- AIR アプリケーションでこのインタラクティブオブジェクトに関連付けられているコンテキストメニューをユーザージェスチャがトリガーすると送出されます。
-
- </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 ">
- ユーザーがドラッグジェスチャを止めると、ドラッグイニシエータ 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 ">
- ユーザーがドラッグジェスチャを止めると、ドラッグイニシエータ InteractiveObject から送出されます。
-
- <p class="- topic/p ">イベントの dropAction プロパティは、ドラッグのターゲットオブジェクトによって設定されたアクションを示します。値 "none"(<codeph class="+ topic/ph pr-d/codeph ">DragActions.NONE</codeph>)は、ドロップ操作がキャンセルされたか、受け入れられなかったことを示します。</p>
-
- <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">nativeDragComplete</codeph> イベントハンドラーは、開始表示オブジェクトの状態を更新する場合に便利です。例えば、リストからアイテムを削除する場合(move のドラッグアクション)や、ビジュアルプロパティを変更する場合が該当します。</p>
-
- </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 ">
- ドラッグ操作が行われている間に、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 ">
- ドラッグ操作が行われている間に、DragManager.doDrag() 呼び出しのドラッグイニシエータとして指定されている InteractiveObject から送出されます。
-
- <p class="- topic/p ">Linux の場合、<codeph class="+ topic/ph pr-d/codeph ">nativeDragUpdate</codeph> イベントは送出されません。</p>
-
- </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 ">
- ドラッグ操作の開始時に、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 ">
- ドラッグ操作の開始時に、DragManager.doDrag() 呼び出しのドラッグイニシエータとして指定されている InteractiveObject から送出されます。
-
- </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 ">
- ドラッグジェスチャが境界を出ると、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 ">
- ドラッグジェスチャが境界を出ると、InteractiveObject から送出されます。
-
- </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 ">
- ドラッグされたオブジェクトがターゲットにドロップされ、そのドロップ操作が 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 ">
- ドラッグされたオブジェクトがターゲットにドロップされ、そのドロップ操作が DragManager.acceptDragDrop() の呼び出しで受け入れられた場合に、ターゲットの InteractiveObject から送出されます。
-
- <p class="- topic/p ">イベントオブジェクトの <codeph class="+ topic/ph pr-d/codeph ">clipboard</codeph> プロパティを使用して、ドロップされたデータにアクセスします。</p>
-
- <p class="- topic/p ">このイベントのハンドラーでは、<codeph class="+ topic/ph pr-d/codeph ">DragManager.dropAction</codeph> プロパティを設定し、受け入れられたドラッグアクションについて、イニシエータオブジェクトにフィードバックを提供する必要があります。 値が設定されていない場合、DragManager は、許可されているアクションのリストからデフォルト値を選択します。</p>
-
- </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 ">
- ドラッグジェスチャが境界の範囲内で行われている間、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 ">
- ドラッグジェスチャが境界の範囲内で行われている間、InteractiveObject から継続的に送出されます。
-
- <p class="- topic/p ">マウスが移動するたびに、<codeph class="+ topic/ph pr-d/codeph ">nativeDragOver</codeph> イベントは送出されます。Windows および Mac の場合、マウスが移動していなくても短いタイマー間隔で送出されます。</p>
-
- <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">nativeDragOver</codeph> イベントまたは <codeph class="+ topic/ph pr-d/codeph ">nativeDragEnter</codeph> イベントのいずれかを処理して、表示オブジェクトがドロップターゲットになれるようにします。</p>
-
- <p class="- topic/p ">送出している表示オブジェクトがドロップを受け入れられるかどうか特定するには、イベントオブジェクトの <codeph class="+ topic/ph pr-d/codeph ">clipboard</codeph> プロパティでデータの適合性をチェックし、許容されているドラッグアクションを <codeph class="+ topic/ph pr-d/codeph ">allowedActions</codeph> プロパティでチェックします。</p>
-
- </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 ">
- ドラッグジェスチャが境界に入ると、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 ">
- ドラッグジェスチャが境界に入ると、InteractiveObject から送出されます。
-
- <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">nativeDragEnter</codeph> イベントまたは <codeph class="+ topic/ph pr-d/codeph ">nativeDragOver</codeph> イベントのいずれかを処理して、表示オブジェクトがドロップターゲットになれるようにします。</p>
-
- <p class="- topic/p ">送出している表示オブジェクトがドロップを受け入れられるかどうか特定するには、イベントオブジェクトの <codeph class="+ topic/ph pr-d/codeph ">clipboard</codeph> プロパティでデータの適合性をチェックし、許容されているドラッグアクションを <codeph class="+ topic/ph pr-d/codeph ">allowedActions</codeph> プロパティでチェックします。</p>
-
- </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 ">
- オブジェクトの 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 ">
- オブジェクトの <codeph class="+ topic/ph pr-d/codeph ">tabIndex</codeph> プロパティの値が変更されたときに送出されます。
- </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 ">
- オブジェクトの 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 ">
- オブジェクトの <codeph class="+ topic/ph pr-d/codeph ">tabEnabled</codeph> フラグが変更されたときに送出されます。
- </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 ">
- オブジェクトの 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 ">
- オブジェクトの <codeph class="+ topic/ph pr-d/codeph ">tabChildren</codeph> フラグの値が変更されたときに送出されます。
- </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 ">
- ユーザーがキーを離したときに送出されます。</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 ">
- ユーザーがキーを離したときに送出されます。キーと特殊文字の間のマッピングはデバイスやオペレーティングシステムによって異なります。このタイプのイベントは、マッピングが発生してから、IME(入力メソッドエディター)が処理される前に生成されます。IME は、標準的な QWERTY キーボードでは十分に対応できない、中国語の漢字などの文字を入力するために使用されます。このイベントは <codeph class="+ topic/ph pr-d/codeph ">keyDown</codeph> イベントの後に発生し、次のような特性があります。
- </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 ">
- ユーザーがキーを押したときに送出されます。</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 ">
- ユーザーがキーを押したときに送出されます。キーと特殊文字の間のマッピングはデバイスやオペレーティングシステムによって異なります。このタイプのイベントは、マッピングが発生してから、IME(入力メソッドエディター)が処理される前に生成されます。IME は、標準的な QWERTY キーボードでは十分に対応できない、中国語の漢字などの文字を入力するために使用されます。このイベントは、<codeph class="+ topic/ph pr-d/codeph ">keyUp</codeph> イベントの前に発生します。
-
- <p class="- topic/p ">AIR の場合、このイベントをキャンセルすると、テキストフィールドに文字が入力されなくなります。</p>
-
- </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 ">
- ユーザーが 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 ">
- ユーザーが InteractiveObject インスタンス上でポインティングデバイスのボタンを離したときに送出されます。
- </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 ">
- ユーザーが 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 ">
- ユーザーが InteractiveObject インスタンス上でポインティングデバイスのボタンを押したときに送出されます。
- </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 ">
- ユーザーが同じ 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 ">
- ユーザーが同じ 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> イベントは引き続き発生します。
- </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 ">
- ユーザーが 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 ">
- ユーザーが InteractiveObject インスタンス上でポインティングデバイスのボタンを離したときに送出されます。
- </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 ">
- ユーザーが 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 ">
- ユーザーが InteractiveObject インスタンス上でポインティングデバイスの中央ボタンを押したときに送出されます。
- </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 ">
- ユーザーが同じ 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 ">
- ユーザーが同じ 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> イベントは引き続き発生します。
- </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 ">
- 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 ">
- InteractiveObject インスタンスとの接触位置で、ユーザーがスワイプジェスチャを実行したときに送出されます(例えば、タッチスクリーン搭載の携帯電話またはタブレットの画面に 3 本指で触れてから、表示オブジェクト上でその 3 本の指をそろえて動かした場合など)。指をそろえて動かす動作は共通のスワイプジェスチャですが、スワイプの要件はデバイスやオペレーティングシステムによって異なります。一部のデバイスでは、この接触を複数のマウスイベントの組み合わせとして解釈する場合もあります。
- <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>
- <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>
- <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意:</b>Mac OS オペレーティ グシステムを採用しているデバイスの中には 4 本指のスワイプを解釈できるものがありますが、この API でサポートされるのは、3 本指のスワイプのみです。</p>
- </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> という段階が設定されます。スワイプイベントにはこの段階しかありません。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- Multitouch.inputMode = MultitouchInputMode.GESTURE;
- var mySprite = new Sprite();
- mySprite.addEventListener(TransformGestureEvent.GESTURE_SWIPE , onSwipe);
- mySprite.graphics.beginFill(0x336699);
- mySprite.graphics.drawRect(0, 0, 100, 80);
- var myTextField = new TextField();
- myTextField.y = 200;
- addChild(mySprite);
- addChild(myTextField);
- function onSwipe(evt:TransformGestureEvent):void {
- if (evt.offsetX == 1 ) {
- myTextField.text = "right";
- }
- if (evt.offsetY == -1) {
- myTextField.text = "up";
- }
- myTextField.text = evt.phase;
- }
- </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 ">
- 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 ">
- InteractiveObject インスタンスとの接触位置で、ユーザーがズームジェスチャを実行したときに送出されます(例えば、タッチスクリーン搭載の携帯電話またはタブレットの画面に 2 本指で触れてから、表示オブジェクト上でその 2 本の指をすばやく広げた場合など)。指を広げる動作は共通のズームジェスチャですが、ズームを示す要件は、デバイスやオペレーティングシステムごとに異なります。一部のデバイスでは、この接触を複数のマウスイベントの組み合わせとして解釈する場合もあります。
- <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>
- <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>
- <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意:</b>環境互換性情報については、Multitouch クラスを参照してください。</p>
- </apiDesc><example conref="..\events\examples\TransformGesture_zoom.as" class="- topic/example "> 次の例は、<codeph class="+ topic/ph pr-d/codeph ">GESTURE_ZOOM</codeph> イベントのイベント処理を示しています。ユーザーがタッチ対応デバイスでズームジェスチャを実行しているときに、myTextField に現在の段階が設定されます。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- Multitouch.inputMode = MultitouchInputMode.GESTURE;
- var mySprite = new Sprite();
- mySprite.addEventListener(TransformGestureEvent.GESTURE_ZOOM , onZoom);
- mySprite.graphics.beginFill(0x336699);
- mySprite.graphics.drawRect(0, 0, 100, 80);
- var myTextField = new TextField();
- myTextField.y = 200;
- addChild(mySprite);
- addChild(myTextField);
- function onZoom(evt:TransformGestureEvent):void {
- evt.target.scaleX++;
- if (evt.phase==GesturePhase.BEGIN) {
- myTextField.text = "Begin";
- }
- if (evt.phase==GesturePhase.UPDATE) {
- myTextField.text = "Update";
- }
- if (evt.phase==GesturePhase.END) {
- myTextField.text = "End";
- }
- }
- </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 ">
- 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 ">
- InteractiveObject インスタンスとの接触位置で、ユーザーが回転ジェスチャを実行したときに送出されます(例えば、タッチスクリーン搭載の携帯電話またはタブレットの画面に 2 本指で触れ、その指を表示オブジェクト上で回転させる場合など)。2 本の指による回転は、共通の回転ジェスチャですが、回転を示す要件は、デバイスやオペレーティングシステムごとに異なります。一部のデバイスでは、この接触を複数のマウスイベントの組み合わせとして解釈する場合もあります。
- <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>
- <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>
- <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意:</b>環境互換性情報については、Multitouch クラスを参照してください。</p>
- </apiDesc><example conref="..\events\examples\TransformGestureEventExample.as" class="- topic/example "> 次の例は、<codeph class="+ topic/ph pr-d/codeph ">GESTURE_ROTATE</codeph> イベントのイベント処理を示しています。ユーザーがタッチ対応デバイスで回転ジェスチャを実行しているときに、mySprite が回転し、myTextField に現在の段階が設定されます。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- Multitouch.inputMode = MultitouchInputMode.GESTURE;
- var mySprite = new Sprite();
- mySprite.addEventListener(TransformGestureEvent.GESTURE_ROTATE , onRotate );
- mySprite.graphics.beginFill(0x336699);
- mySprite.graphics.drawRect(0, 0, 100, 80);
- var myTextField = new TextField();
- myTextField.y = 200;
- addChild(mySprite);
- addChild(myTextField);
- function onRotate(evt:TransformGestureEvent):void {
- evt.target.rotation -= 45;
- if (evt.phase==GesturePhase.BEGIN) {
- myTextField.text = "Begin";
- }
- if (evt.phase==GesturePhase.UPDATE) {
- myTextField.text = "Update";
- }
- if (evt.phase==GesturePhase.END) {
- myTextField.text = "End";
- }
- }
- </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 ">
- タッチ対応デバイス上で、ユーザーが 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 ">
- タッチ対応デバイス上で、ユーザーが InteractiveObject インスタンスとの接触位置を形成してからタップしたときに送出されます(例えば、タッチスクリーン搭載の携帯電話またはタブレットの画面で、表示オブジェクト上に複数の指を置いてメニューを開いてから、1 本の指でタップしてメニューアイテムを選択する場合など)。一部のデバイスでは、この接触を複数のマウスイベントの組み合わせとして解釈する場合もあります。
- <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>
- <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>
- </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 ">
- タッチ対応デバイスで、ユーザーが 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 ">
- タッチ対応デバイスで、ユーザーが InteractiveObject インスタンス上の接触位置でタッチポイントを移動したときに送出されます(例えば、タッチスクリーン搭載の携帯電話やタブレットの表示オブジェクト上で、指を左から右に動かす場合など)。一部のデバイスでは、この接触を <codeph class="+ topic/ph pr-d/codeph ">mouseOver</codeph> イベントおよび <codeph class="+ topic/ph pr-d/codeph ">touchOver</codeph> イベントとして解釈する場合もあります。
- <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>
- <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意:</b>環境互換性情報については、Multitouch クラスを参照してください。</p>
- </apiDesc><example conref="..\events\examples\TransformGesture_pan.as" class="- topic/example "> 次の例は、<codeph class="+ topic/ph pr-d/codeph ">GESTURE_PAN</codeph> イベントのイベント処理を示しています。ユーザーがタッチ対応デバイスでパンジェスチャを実行しているときに、myTextField に現在の段階が設定されます。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- Multitouch.inputMode = MultitouchInputMode.GESTURE;
- var mySprite = new Sprite();
- mySprite.addEventListener(TransformGestureEvent.GESTURE_PAN , onPan);
- mySprite.graphics.beginFill(0x336699);
- mySprite.graphics.drawRect(0, 0, 100, 80);
- var myTextField = new TextField();
- myTextField.y = 200;
- addChild(mySprite);
- addChild(myTextField);
- function onPan(evt:TransformGestureEvent):void {
- evt.target.localX++;
- if (evt.phase==GesturePhase.BEGIN) {
- myTextField.text = "Begin";
- }
- if (evt.phase==GesturePhase.UPDATE) {
- myTextField.text = "Update";
- }
- if (evt.phase==GesturePhase.END) {
- myTextField.text = "End";
- }
- }
- </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 ">
- タッチ対応デバイスで、ユーザーが同じ 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 ">
- タッチ対応デバイスで、ユーザーが同じ InteractiveObject インスタンス上の 2 つの接触位置を押したときに送出されます(例えば、タッチスクリーン搭載の携帯電話またはタブレットの表示オブジェクト上を、2 本の指で押したり離したりする場合など)。一部のデバイスでは、この接触を <codeph class="+ topic/ph pr-d/codeph ">doubleClick</codeph> イベントとして解釈する場合もあります。
- <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>
- <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意:</b>環境互換性情報については、Multitouch クラスを参照してください。</p>
- </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 ">
- タッチ対応デバイスで、ユーザーが接触を開始した 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 ">
- タッチ対応デバイスで、ユーザーが接触を開始した InteractiveObject インスタンスの同じ位置から指を離したときに送出されます(例えば、タッチスクリーン搭載の携帯電話またはタブレットの表示オブジェクト上の 1 点を、指で押したり離したりする場合など)。一部のデバイスでは、この接触を <codeph class="+ topic/ph pr-d/codeph ">click</codeph> イベントとして解釈する場合もあります。
- <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>
- <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意:</b>環境互換性情報については、Multitouch クラスを参照してください。</p>
- </apiDesc><example conref="..\ui\examples\Multitouch_inputMode.as" class="- topic/example "> 次の例は、タッチスクリーン上で mySprite に描かれた四角形をタップしたときに表示されるメッセージです。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- Multitouch.inputMode=MultitouchInputMode.TOUCH_POINT;
- var mySprite:Sprite = new Sprite();
- var myTextField:TextField = new TextField();
- mySprite.graphics.beginFill(0x336699);
- mySprite.graphics.drawRect(0,0,40,40);
- addChild(mySprite);
- mySprite.addEventListener(TouchEvent.TOUCH_TAP, taphandler);
- function taphandler(e:TouchEvent): void {
- myTextField.text = "I've been tapped";
- myTextField.y = 50;
- addChild(myTextField);
- }
- </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 ">
- タッチ対応デバイスで、ユーザーが 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 ">
- タッチ対応デバイスで、ユーザーが InteractiveObject インスタンス上で接触位置を移動したときに送出されます(例えば、タッチスクリーン搭載の携帯電話またはタブレットで、表示オブジェクトの外にある位置から表示オブジェクト上に指をドラッグする場合など)。一部のデバイスでは、この接触を <codeph class="+ topic/ph pr-d/codeph ">rollOver</codeph> イベントとして解釈する場合もあります。
- <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>
- <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意:</b>環境互換性情報については、Multitouch クラスを参照してください。</p>
- </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 ">
- ユーザーがタッチ対応デバイスの 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 ">
- ユーザーがタッチ対応デバイスの InteractiveObject インスタンス外に接触点を動かしたとき(例えば、タッチスクリーンを備えた携帯電話やタブレットで、表示オブジェクトから表示オブジェクト外に指をドラッグしたとき)に送出されます。一部のデバイスでは、この接触を <codeph class="+ topic/ph pr-d/codeph ">rollOut</codeph> イベントとして解釈する場合もあります。
- <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>
- <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意:</b>環境互換性情報については、Multitouch クラスを参照してください。</p>
- </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 ">
- タッチ対応デバイスで、ユーザーが 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 ">
- タッチ対応デバイスで、ユーザーが InteractiveObject インスタンス上で接触位置を移動したときに送出されます(例えば、タッチスクリーン搭載の携帯電話またはタブレットで、表示オブジェクトの外にある位置から表示オブジェクト上に指をドラッグする場合など)。一部のデバイスでは、この接触を <codeph class="+ topic/ph pr-d/codeph ">mouseOver</codeph> イベントとして解釈する場合もあります。
- <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>
- <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意:</b>環境互換性情報については、Multitouch クラスを参照してください。</p>
- </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 ">
- タッチ対応デバイスで、ユーザーが接触位置を 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 ">
- タッチ対応デバイスで、ユーザーが接触位置を InteractiveObject インスタンスの外に移動したときに送出されます(例えば、タッチスクリーン搭載の携帯電話またはタブレットで、1 つの表示オブジェクトから別の表示オブジェクトに指をドラッグする場合など)。一部のデバイスでは、この接触を <codeph class="+ topic/ph pr-d/codeph ">mouseOut</codeph> イベントとして解釈する場合もあります。
- <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>
- <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意:</b>環境互換性情報については、Multitouch クラスを参照してください。</p>
- </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 ">
- タッチ対応デバイスで、ユーザーが接触位置を移動したときに送出されます(例えば、タッチスクリーン搭載の携帯電話またはタブレット上を指でドラッグする場合など)。</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 ">
- タッチ対応デバイスで、ユーザーが接触位置を移動したときに送出されます(例えば、タッチスクリーン搭載の携帯電話またはタブレット上を指でドラッグする場合など)。一部のデバイスでは、この接触を <codeph class="+ topic/ph pr-d/codeph ">mouseMove</codeph> イベントとして解釈する場合もあります。
- <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>
- <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意:</b>環境互換性情報については、Multitouch クラスを参照してください。</p>
- </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 を含む表示オブジェクト)の境界を定義しています。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
- MySprite.addEventListener(TouchEvent.TOUCH_BEGIN, onTouchBegin);
- MySprite.addEventListener(TouchEvent.TOUCH_MOVE, onTouchMove);
- MySprite.addEventListener(TouchEvent.TOUCH_END, onTouchEnd);
- function onTouchBegin(eBegin:TouchEvent) {
- eBegin.target.startTouchDrag(eBegin.touchPointID, false, bg.getRect(this));
- trace("touch begin");
-
- }
- function onTouchMove(eMove:TouchEvent) {
- trace(eMove.stageX);
- }
-
- function onTouchEnd(eEnd:TouchEvent) {
- eEnd.target.stopTouchDrag(eEnd.touchPointID);
- trace("touch end");
- }
- </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 ">
- タッチ対応デバイスで、ユーザーが接触を解除したときに送出されます(例えば、タッチスクリーン搭載の携帯電話またはタブレットの画面から指を離す場合など)。</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 ">
- タッチ対応デバイスで、ユーザーが接触を解除したときに送出されます(例えば、タッチスクリーン搭載の携帯電話またはタブレットの画面から指を離す場合など)。一部のデバイスでは、この接触を <codeph class="+ topic/ph pr-d/codeph ">mouseUp</codeph> イベントとして解釈する場合もあります。
- <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>
- <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意:</b>環境互換性情報については、Multitouch クラスを参照してください。</p>
- </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 を含む表示オブジェクト)の境界を定義しています。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
- MySprite.addEventListener(TouchEvent.TOUCH_BEGIN, onTouchBegin);
- MySprite.addEventListener(TouchEvent.TOUCH_MOVE, onTouchMove);
- MySprite.addEventListener(TouchEvent.TOUCH_END, onTouchEnd);
- function onTouchBegin(eBegin:TouchEvent) {
- eBegin.target.startTouchDrag(eBegin.touchPointID, false, bg.getRect(this));
- trace("touch begin");
-
- }
- function onTouchMove(eMove:TouchEvent) {
- trace(eMove.stageX);
- }
-
- function onTouchEnd(eEnd:TouchEvent) {
- eEnd.target.stopTouchDrag(eEnd.touchPointID);
- trace("touch end");
- }
- </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 ">
- タッチ対応デバイスにユーザーが初めて接触したときに送出されます(例えば、タッチスクリーン搭載の携帯電話またはタブレットの画面に指で触れる場合など)。</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 ">
- タッチ対応デバイスにユーザーが初めて接触したときに送出されます(例えば、タッチスクリーン搭載の携帯電話またはタブレットの画面に指で触れる場合など)。一部のデバイスでは、この接触を <codeph class="+ topic/ph pr-d/codeph ">mouseDown</codeph> イベントとして解釈する場合もあります。
- <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>
- <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意:</b>環境互換性情報については、Multitouch クラスを参照してください。</p>
- </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 を含む表示オブジェクト)の境界を定義しています。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
- MySprite.addEventListener(TouchEvent.TOUCH_BEGIN, onTouchBegin);
- MySprite.addEventListener(TouchEvent.TOUCH_MOVE, onTouchMove);
- MySprite.addEventListener(TouchEvent.TOUCH_END, onTouchEnd);
- function onTouchBegin(eBegin:TouchEvent) {
- eBegin.target.startTouchDrag(eBegin.touchPointID, false, bg.getRect(this));
- trace("touch begin");
-
- }
- function onTouchMove(eMove:TouchEvent) {
- trace(eMove.stageX);
- }
-
- function onTouchEnd(eEnd:TouchEvent) {
- eEnd.target.stopTouchDrag(eEnd.touchPointID);
- trace("touch end");
- }
- </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 ">
- ユーザーが 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 ">
- ユーザーが 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> のルートでも祖先でもない最高位の親から始めて下方向にたどっていき、そのオブジェクトに至るまで連続して送出されます。
- <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>
- </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 ">
- ユーザーが 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 ">
- ユーザーが 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> のルートでも祖先でもない最高位の親に至るまで連続して送出されます。
- <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>
- </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 ">
- マウスホイールが 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 ">
- マウスホイールが InteractiveObject インスタンス上を回転するときに送出されます。 ターゲットがテキストフィールドである場合、デフォルトの動作ではテキストはスクロールします。Microsoft Windows オペレーティングシステムでのみ使用できます。
- </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 ">
- ユーザーが 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 ">
- ユーザーが InteractiveObject インスタンス上でポインティングデバイスのボタンを離したときに送出されます。 ターゲットが SimpleButton インスタンスである場合、オブジェクトは <codeph class="+ topic/ph pr-d/codeph ">upState</codeph> 表示オブジェクトを表示します。ターゲットが選択可能なテキストフィールドである場合、デフォルトの動作ではテキストフィールドの選択が終了します。
- </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 ">
- ユーザーが 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 ">
- ユーザーが 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> 表示オブジェクトを表示します。
- <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>
- </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 ">
- ユーザーが 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 ">
- ユーザーが InteractiveObject インスタンスからポインティングデバイスを離したときに送出されます。イベントターゲットは、直前にポインティングデバイスの下に置かれていたオブジェクトです。<codeph class="+ topic/ph pr-d/codeph ">relatedObject</codeph> はポインティングデバイスの移動先のオブジェクトです。ターゲットが SimpleButton インスタンスである場合、デフォルトの動作ではボタンは <codeph class="+ topic/ph pr-d/codeph ">upState</codeph> 表示オブジェクトを表示します。
- <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>
- </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 ">
- 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 ">
- InteractiveObject の上で、ユーザーがポインティングデバイスを移動させたときに送出されます。ターゲットがユーザーの選択するテキストフィールドである場合、選択はデフォルトの動作で更新されます。
- </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 ">
- ユーザーが 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 ">
- ユーザーが InteractiveObject インスタンス上でポインティングデバイスのボタンを押したときに送出されます。 ターゲットが SimpleButton インスタンスである場合、デフォルトの動作では SimpleButton インスタンスは <codeph class="+ topic/ph pr-d/codeph ">downState</codeph> 表示オブジェクトを表示します。ターゲットが選択可能なテキストフィールドである場合、デフォルトの動作ではテキストフィールドの選択が開始されます。
- </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 ">
- オブジェクトの 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 ">
- オブジェクトの <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> イベントを受け取ります。
-
- <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">doubleClickEnabled</codeph> プロパティのデフォルト値は <codeph class="+ topic/ph pr-d/codeph ">false</codeph> です。 </p>
-
- <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>
- </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 ">
- ユーザーが同じ 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 ">
- ユーザーが同じ 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> イベントは引き続き発生します。
- </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 ">
- ユーザーがポインティングデバイスでフォーカスを変更しようとすると送出されます。</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 ">
- ユーザーがポインティングデバイスでフォーカスを変更しようとすると送出されます。このイベントのデフォルトの動作では、フォーカスを変更して、対応する <codeph class="+ topic/ph pr-d/codeph ">focusIn</codeph> イベントと <codeph class="+ topic/ph pr-d/codeph ">focusOut</codeph> イベントを送出します。
-
- <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>
- </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 ">
- ユーザーがキーボード操作によってフォーカスを変更しようとすると送出されます。</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 ">
- ユーザーがキーボード操作によってフォーカスを変更しようとすると送出されます。このイベントのデフォルトの動作では、フォーカスを変更して、対応する <codeph class="+ topic/ph pr-d/codeph ">focusIn</codeph> イベントと <codeph class="+ topic/ph pr-d/codeph ">focusOut</codeph> イベントを送出します。
-
- <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>
- </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 ">
- 表示オブジェクトがフォーカスを失った後に送出されます。</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 ">
- 表示オブジェクトがフォーカスを失った<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> イベントが送出される前に発生します。
- </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 ">
- 表示オブジェクトがフォーカスを取得した後に送出されます。</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 ">
- 表示オブジェクトがフォーカスを取得した<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> イベントが送出された後に発生します。
- </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 ">
- ユーザーがすべて選択操作のためにプラットフォーム固有のアクセラレーターキーの組み合わせをアクティブ化したとき、またはコンテキストメニューから「すべて選択」を選択した場合に送出されます。</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 ">
- ユーザーがすべて選択操作のためにプラットフォーム固有のアクセラレーターキーの組み合わせをアクティブ化したとき、またはコンテキストメニューから「すべて選択」を選択した場合に送出されます。このイベントは、現在フォーカスを持っているオブジェクトに送出されます。現在フォーカスを持っているオブジェクトが TextField である場合、このイベントのデフォルトの動作では、テキストフィールドのすべてのコンテンツが選択されます。
- </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 ">
- ユーザーがペースト操作のためにプラットフォーム固有のアクセラレーターキーの組み合わせをアクティブ化したとき、またはコンテキストメニューから「ペースト」を選択した場合に送出されます。</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 ">
- ユーザーがペースト操作のためにプラットフォーム固有のアクセラレーターキーの組み合わせをアクティブ化したとき、またはコンテキストメニューから「ペースト」を選択した場合に送出されます。このイベントは、現在フォーカスを持っているオブジェクトに送出されます。現在フォーカスを持っているオブジェクトが TextField である場合、このイベントのデフォルトの動作では、クリップボードのコンテンツが現在の挿入ポイントのテキストフィールドにペーストされ、そのテキストフィールドで現在選択されているテキストが置き換えられます。
- </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 ">
- ユーザーがカット操作のためにプラットフォーム固有のアクセラレーターキーの組み合わせをアクティブ化したとき、またはコンテキストメニューから「カット」を選択した場合に送出されます。</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 ">
- ユーザーがカット操作のためにプラットフォーム固有のアクセラレーターキーの組み合わせをアクティブ化したとき、またはコンテキストメニューから「カット」を選択した場合に送出されます。このイベントは、現在フォーカスを持っているオブジェクトに送出されます。現在フォーカスを持っているオブジェクトが TextField である場合、このイベントのデフォルトの動作では、そのテキストフィールド内で現在選択されているテキストがクリップボードにカットされます。
- </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 ">
- ユーザーがコピー操作のためにプラットフォーム固有のアクセラレーターキーの組み合わせをアクティブ化したとき、またはコンテキストメニューから「コピー」を選択した場合に送出されます。</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 ">
- ユーザーがコピー操作のためにプラットフォーム固有のアクセラレーターキーの組み合わせをアクティブ化したとき、またはコンテキストメニューから「コピー」を選択した場合に送出されます。このイベントは、現在フォーカスを持っているオブジェクトに送出されます。現在フォーカスを持っているオブジェクトが TextField である場合、このイベントのデフォルトの動作では、そのテキストフィールド内で現在選択されているテキストがクリップボードにコピーされます。
- </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 ">
- ユーザーがコンテキストメニューから「削除」を選択した場合に送信されます。</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 ">
- ユーザーがコンテキストメニューから「削除」を選択した場合に送信されます。このイベントは、現在フォーカスを持っているオブジェクトに送出されます。現在フォーカスを持っているオブジェクトが TextField である場合、このイベントのデフォルトの動作では、そのテキストフィールド内で現在選択されているテキストが削除されます。
- </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 ">
- 新しい 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 ">
- <codeph class="+ topic/ph pr-d/codeph ">new InteractiveObject()</codeph> コンストラクターを呼び出すと、<codeph class="+ topic/ph pr-d/codeph ">ArgumentError</codeph> 例外がスローされます。しかし、InteractiveObject の以下に示すサブクラスのコンストラクターを呼び出すことができます。
-
- <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>
-
-
- </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 ">
- 仮想キーボードを前面に表示します。</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> はソフトキーボードが前面に表示されなかったことを、それぞれ意味します。
- </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 ">現在のコンテンツでサポートされている場合に、キーボードを表示します。
- </apiTipText></apiTipTexts></apiOperationDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
- 仮想キーボードを前面に表示します。
-
- <p class="- topic/p ">このメソッドを呼び出すと、InteractiveObject インスタンスがフォーカスされ、必要に応じて、ソフトキーボードが前面に表示されます。<codeph class="+ topic/ph pr-d/codeph ">needsSoftKeyboard</codeph> が <codeph class="+ topic/ph pr-d/codeph ">true</codeph> であることも必要です。ハードウェアキーボードが使用できる場合、またはクライアントシステムが仮想キーボードをサポートしていない場合は、キーボードが前面に表示されることはありません。</p>
-
- <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意:</b>このメソッドは、iOS 上の AIR アプリケーションではサポートされていません。</p>
-
- </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 ">
- この 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 ">
- この InteractiveObject インスタンスの現在のアクセシビリティの実装(AccessibilityImplementation)です。
- </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 ">
- このオブジェクトに関連付けられたコンテキストメニューを指定します。</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 ">このオブジェクトに関連付けられたコンテキストメニュー
- </apiTipText></apiTipTexts></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
- このオブジェクトに関連付けられたコンテキストメニューを指定します。
-
- <p class="- topic/p ">Flash Player で実行されているコンテンツでは、このプロパティは ContextMenu オブジェクトです。 AIR ランタイムでは、ContextMenu クラスは NativeMenu クラスを拡張します。ただし、Flash Player では、ContextMenu クラスのみサポートしており、NativeMenu クラスはサポートしていません。
- </p>
-
- <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>
-
- </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> で提供されています。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- var red_cmi:ContextMenuItem = new ContextMenuItem("red");
- red_cmi.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, cmi_menuItemSelect);
-
- var cm:ContextMenu = new ContextMenu();
- cm.customItems.push(red_cmi);
- cm.hideBuiltInItems();
-
- var spr:Sprite = new Sprite();
- spr.contextMenu = cm;
- spr.graphics.beginFill(0x000000);
- spr.graphics.drawRect(0, 0, 120, 90);
- spr.graphics.endFill();
- spr.x = 10;
- spr.y = 10;
- addChild(spr);
-
- function cmi_menuItemSelect(evt:ContextMenuEvent):void {
- spr.graphics.clear();
- spr.graphics.beginFill(0xFF0000);
- spr.graphics.drawRect(0, 0, 120, 90);
- spr.graphics.endFill();
- }
- </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 ">
- オブジェクトが 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 ">このオブジェクトがダブルクリックメッセージを受け取るかどうかを指定します。
-
-
- </apiTipText></apiTipTexts></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
- オブジェクトが <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> イベントを受け取るようにするには必須です。
-
- <p class="- topic/p ">このプロパティを設定しても、イベントは送出されません。<codeph class="+ topic/ph pr-d/codeph ">addEventListener()</codeph> メソッドの使用は、<codeph class="+ topic/ph pr-d/codeph ">doubleClick</codeph> イベントのイベントリスナーを追加する場合に必須です。</p>
-
- </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 ">
- このオブジェクトがフォーカス矩形を表示するかどうかを指定します。</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
- _focusRect (global property) topics for information to migrate to the ASDoc description of this
- AS3 property.
-
-
- </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 ">
- このオブジェクトがフォーカス矩形を表示するかどうかを指定します。<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> プロパティに従うことを示します。
-
- </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 ">
- このオブジェクトでマウスまたはその他のユーザー入力メッセージを受け取るかどうかを指定します。</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 ">
- このオブジェクトでマウスまたはその他のユーザー入力メッセージを受け取るかどうかを指定します。デフォルト値は <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> を使用します。
- <p class="- topic/p "> このプロパティを設定しても、イベントは送出されません。インタラクティブな機能を作成するには、<codeph class="+ topic/ph pr-d/codeph ">addEventListener()</codeph> メソッドを使用する必要があります。</p>
-
- </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 ">
- この 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 ">
- この InteractiveObject インスタンスがフォーカスを受け取ったときに、仮想キーボード(画面上のソフトキーボード)を表示するかどうかを指定します。
-
- <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>
-
- <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>
-
- <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意:</b>このプロパティは、iOS 上の AIR アプリケーションではサポートされていません。</p>
-
- </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 ">
- ソフトキーボードが表示されたときに画面に表示したままにする領域を定義します。</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 ">ソフトキーボードが開かれたときに画面に表示する領域を設定します。
- </apiTipText></apiTipTexts></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
- ソフトキーボードが表示されたときに画面に表示したままにする領域を定義します。
-
- <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>
-
- <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">softKeyboardInputAreaOfInterest</codeph> をステージ座標で指定します。</p>
-
- <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意:</b>Android では、<codeph class="+ topic/ph pr-d/codeph ">softKeyboardInputAreaOfInterest</codeph> は横置きについては考慮されていません。</p>
-
- </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 ">
- このオブジェクトがタブ順序に含まれるかどうかを指定します。</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
- TextField.tabEnabled topics for information to migrate to the ASDoc description of this
- AS3 property.
-
-
- </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 ">このオブジェクトがタブ順序に含まれるかどうかを指定します。
-
- </apiTipText></apiTipTexts></apiValueDef><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> です。デフォルトでは、次の例外を除き、値は <codeph class="+ topic/ph pr-d/codeph ">false</codeph> です。
- <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>
-
- </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 ">
- 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 ">このオブジェクトのタブインデックス。
-
-
- </apiTipText></apiTipTexts></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
- SWF ファイル内のオブジェクトのタブ順序を指定します。デフォルトでは <codeph class="+ topic/ph pr-d/codeph ">tabIndex</codeph> プロパティは -1 であり、これはそのオブジェクトにタブインデックスが設定されないことを意味します。
-
- <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>
-
- <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>
-
- <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>
- <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意:</b>TLFTextField インスタンスのタブ順序を設定するには、TLFTextField の表示オブジェクトの子を InteractiveObject としてキャストしてから、<codeph class="+ topic/ph pr-d/codeph ">tabIndex</codeph> プロパティを設定します。次に実際の使用例を示します。
- <pre xml:space="preserve" class="- topic/pre ">
- InteractiveObject(tlfInstance.getChildAt(1)).tabIndex = 3;
- </pre>
- 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>)について、デフォルト設定のタブ順序を逆にするには、次のようにします。
- <pre xml:space="preserve" class="- topic/pre ">
- InteractiveObject(tlfInstance1.getChildAt(1)).tabIndex = 3;
- InteractiveObject(tlfInstance2.getChildAt(1)).tabIndex = 2;
- InteractiveObject(tlfInstance3.getChildAt(1)).tabIndex = 1;
- </pre>
- </p>
-
- </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 ">
- (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 ">
- (u,v)塗り座標または通常の塗りのいずれかを使用してレンダリングが可能な、順序付けられた 1 セットの三角形を定義します。パス内にある各三角形は 3 セットの(x, y)座標で表され、それぞれが三角形の 1 点となります。
-
- <p class="- topic/p ">
- 三角形の頂点には z 座標は含まれず、必ずしも 3D 面を表すとは限りません。しかし、三角形パスを使用して、2D 空間での 3D ジオメトリのレンダリングをサポートすることは可能です。
- </p>
-
- </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 ">
- 新しい 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 のペア)として扱われます。必須です。
-
- </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 つのインデックスごとに三角形が定義されます。
-
- </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 です。
-
- </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 クラスで定義された任意の値に設定できます。
-
- </apiDesc></apiParam></apiConstructorDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
- 新しい GraphicsTrianglePath オブジェクトを作成します。
-
- </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 ">
- 整数またはインデックスの 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 ">
- 整数またはインデックスの Vector です。3 つのインデックスごとに三角形が定義されます。indexes パラメーターが null の場合、3 つの頂点(vertices Vector 内の 6 つの x、y ペア)ごとに三角形が定義されます。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>)を参照します。
- </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 ">
- テクスチャマッピングを適用するために使用される正規化座標の 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 ">
- テクスチャマッピングを適用するために使用される正規化座標の Vector です。各座標は、塗りに使用されるビットマップ上のポイントを参照します。頂点ごとに 1 つの UV 座標または 1 つの UVT 座標が必要です。
-
- <p class="- topic/p ">
- UV 座標では、(0,0)はビットマップの左上隅で、(1,1)はビットマップの右下隅です。
- </p>
-
- <p class="- topic/p ">
- このベクターの長さが <codeph class="+ topic/ph pr-d/codeph ">vertices</codeph> ベクターの 2 倍である場合、外見上の修正を行うことなく、正規化座標が使用されます。
- </p>
-
- <p class="- topic/p ">
- このベクターの長さが <codeph class="+ topic/ph pr-d/codeph ">vertices</codeph> ベクターの 3 倍である場合、3 番目の座標は、「t」(視点空間における視点からテクスチャまでの距離)として解釈されます。これにより、3D でテクスチャをマッピングする場合に、レンダリングエンジンが外観を正しく適用できるようになります。
- </p>
- </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 ">
- 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 ">
- Number の Vector で、数値の各ペアはポイント(x と y のペア)として扱われます。
- </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 ">
- 特定の方向に面する三角形をレンダリングするかどうかを指定します。</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 ">
- 特定の方向に面する三角形をレンダリングするかどうかを指定します。現在のビューで見えない三角形のレンダリングを避けるのに使用します。
- <p class="- topic/p ">
- TriangleCulling クラスで定義された任意の値に設定できます。
- </p>
-
- </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 ">
- 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 ">
- DisplayObject クラスは、表示リストに含めることのできるすべてのオブジェクトに関する基本クラスです。表示リストでは、Flash ランタイムに表示されるすべてのオブジェクトを管理します。DisplayObjectContainer クラスは、表示リスト内で表示オブジェクトを配置するために使用します。DisplayObjectContainer オブジェクトは子表示オブジェクトを持つことができます。これに対して、他の表示オブジェクト(例えば Shape、TextField オブジェクト)は「リーフ」ノードです。つまり、親と兄弟だけを持ち、子はありません。
-
- <p class="- topic/p ">DisplayObject クラスは、基本機能(例えばオブジェクトの <i class="+ topic/ph hi-d/i ">x</i> 方向および <i class="+ topic/ph hi-d/i ">y</i> 方向の位置)に加えて、オブジェクトの拡張プロパティ(例えば変換マトリックス)をサポートします。
- </p>
-
- <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>
-
- <p class="- topic/p ">すべての表示オブジェクトは DisplayObject クラスから継承します。</p>
-
- <p class="- topic/p ">DisplayObject クラス自体は、画面上でのコンテンツの描画のための API を含みません。そのため、DisplayObject クラスのカスタムサブクラスを作成する場合は、Shape、Sprite、Bitmap、SimpleButton、TextField または MovieClip など、画面上にコンテンツを描画する API を持つサブクラスの 1 つを拡張する必要があります。</p>
-
- <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>
-
- <p class="- topic/p ">ActionScript 1.0 および 2.0 の MovieClip、TextField、および 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>
-
- <p class="- topic/p ">詳しくは、『ActionScript 3.0 開発ガイド<i class="+ topic/ph hi-d/i "/>』の「表示のプログラミング」の章を参照してください。</p>
-
- </apiDesc><example conref="examples\DisplayObjectExample.as" class="- topic/example "> <codeph class="+ topic/ph pr-d/codeph ">DisplayObjectExample</codeph> クラスを使用して、オレンジ色の四角形をステージの隅に描画した後、各イベントに関するテキスト情報を表示することによってイベントに応答します。これを行うには、以下の手順を実行します。
- <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 ">四角形には次のようなイベントリスナーメソッドがあります。
- <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>
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- package {
- import flash.display.Sprite;
- public class DisplayObjectExample extends Sprite {
- public function DisplayObjectExample() {
- var child:CustomDisplayObject = new CustomDisplayObject();
- addChild(child);
- }
- }
- }
- import flash.display.DisplayObject;
- import flash.display.Sprite;
- import flash.display.Stage;
- import flash.display.StageAlign;
- import flash.display.StageScaleMode;
- import flash.events.*;
- class CustomDisplayObject extends Sprite {
- private var bgColor:uint = 0xFFCC00;
- private var size:uint = 80;
- public function CustomDisplayObject() {
- draw();
- addEventListener(Event.ADDED, addedHandler);
- addEventListener(Event.ENTER_FRAME, enterFrameHandler);
- addEventListener(Event.REMOVED, removedHandler);
- addEventListener(MouseEvent.CLICK, clickHandler);
- addEventListener(Event.RENDER, renderHandler);
- }
- private function draw():void {
- graphics.beginFill(bgColor);
- graphics.drawRect(0, 0, size, size);
- graphics.endFill();
- }
- private function clickHandler(event:MouseEvent):void {
- trace("clickHandler: " + event);
- parent.removeChild(this);
- }
- private function addedHandler(event:Event):void {
- trace("addedHandler: " + event);
- stage.scaleMode = StageScaleMode.NO_SCALE;
- stage.align = StageAlign.TOP_LEFT;
- stage.addEventListener("resize", resizeHandler);
- }
- private function enterFrameHandler(event:Event):void {
- trace("enterFrameHandler: " + event);
- removeEventListener("enterFrame", enterFrameHandler);
- }
- private function removedHandler(event:Event):void {
- trace("removedHandler: " + event);
- stage.removeEventListener("resize", resizeHandler);
- }
- private function renderHandler(event:Event):void {
- trace("renderHandler: " + event);
- }
- private function resizeHandler(event:Event):void {
- trace("resizeHandler: " + event);
- }
- }
- </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 ">
- [ブロードキャストイベント] 表示リストが更新およびレンダリングされようとしているときに送出されます。</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 ">
- [ブロードキャストイベント] 表示リストが更新およびレンダリングされようとしているときに送出されます。このイベントは、表示リストのレンダリング前に、このイベントをリッスンしているオブジェクトが変更を行う最後の機会を提供します。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> を呼び出したオブジェクトとの間に相互の信頼関係があるオブジェクトにしか送出されません。このイベントはブロードキャストイベントであるため、このイベントに登録されているリスナーを持つすべての表示イベントによって送出されます。
-
- <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意:</b>表示がレンダリングされない場合、このイベントは送出されません。 これが該当するのは、コンテンツが最小化または非表示になっている場合です。 </p>
- </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 ">
- 表示オブジェクトが、直接、または表示オブジェクトを含むサブツリーの削除により、表示リストから削除されようとしているときに送出されます。</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 ">
- 表示オブジェクトが、直接、または表示オブジェクトを含むサブツリーの削除により、表示リストから削除されようとしているときに送出されます。このイベントを生成する DisplayObjectContainer クラスの 2 つのメソッドは、<codeph class="+ topic/ph pr-d/codeph ">removeChild()</codeph> および <codeph class="+ topic/ph pr-d/codeph ">removeChildAt()</codeph> の 2 つのエディションがあります。
-
- <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>
- </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 ">
- 表示オブジェクトが表示リストから削除されようとしているときに送出されます。</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 ">
- 表示オブジェクトが表示リストから削除されようとしているときに送出されます。このイベントを生成する DisplayObjectContainer クラスの 2 つのメソッドは、<codeph class="+ topic/ph pr-d/codeph ">removeChild()</codeph> および <codeph class="+ topic/ph pr-d/codeph ">removeChildAt()</codeph> の 2 つのエディションがあります。
-
- <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>
- </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 ">
- [ブロードキャストイベント] 再生ヘッドが現在のフレームを終了するときに送出されます。</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 ">
- [ブロードキャストイベント] 再生ヘッドが現在のフレームを終了するときに送出されます。すべてのフレームスクリプトが実行されています。再生ヘッドが移動しない場合、またはフレームが 1 つしか存在しない場合、このイベントはフレームレートに合わせて継続的に送出されます。このイベントはブロードキャストイベントであるため、このイベントに登録されているリスナーを持つすべての表示イベントによって送出されます。
- </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 ">
- [ブロードキャストイベント] フレーム表示オブジェクトのコンストラクターが実行した後で、かつフレームスクリプトが実行される前に送出されます。</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 ">
- [ブロードキャストイベント] フレーム表示オブジェクトのコンストラクターが実行した後で、かつフレームスクリプトが実行される前に送出されます。再生ヘッドが移動しない場合、またはフレームが 1 つしか存在しない場合、このイベントはフレームレートに合わせて継続的に送出されます。このイベントはブロードキャストイベントであるため、このイベントに登録されているリスナーを持つすべての表示イベントによって送出されます。
- </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 ">
- [ブロードキャストイベント] 再生ヘッドが新しいフレームに入るときに送出されます。</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 ">
- [ブロードキャストイベント] 再生ヘッドが新しいフレームに入るときに送出されます。再生ヘッドが移動しない場合、またはフレームが 1 つしか存在しない場合、このイベントはフレームレートに合わせて継続的に送出されます。このイベントはブロードキャストイベントであるため、このイベントに登録されているリスナーを持つすべての表示イベントによって送出されます。
- </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 ">
- 表示オブジェクトが、直接、または表示オブジェクトを含むサブツリーの追加により、ステージ上の表示リストに追加されたときに送出されます。</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 ">
- 表示オブジェクトが、直接、または表示オブジェクトを含むサブツリーの追加により、ステージ上の表示リストに追加されたときに送出されます。<codeph class="+ topic/ph pr-d/codeph ">DisplayObjectContainer.addChild()</codeph> メソッドおよび <codeph class="+ topic/ph pr-d/codeph ">DisplayObjectContainer.addChildAt()</codeph> メソッドがこのイベントをトリガーします。
- </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 ">
- 表示オブジェクトが表示リストに追加されたときに送出されます。</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 ">
- 表示オブジェクトが表示リストに追加されたときに送出されます。<codeph class="+ topic/ph pr-d/codeph ">DisplayObjectContainer.addChild()</codeph> メソッドおよび <codeph class="+ topic/ph pr-d/codeph ">DisplayObjectContainer.addChildAt()</codeph> メソッドがこのイベントをトリガーします。
- </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 ">
- 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> オブジェクトの座標系を基準とする、表示オブジェクトの領域を定義する矩形です。
-
- </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 ">使用する座標系を定義する表示オブジェクトです。
-
- </apiDesc></apiParam></apiOperationDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
- <codeph class="+ topic/ph pr-d/codeph ">targetCoordinateSpace</codeph> オブジェクトの座標系を基準にして、表示オブジェクトの領域を定義する矩形を返します。以下のコードは、どんな <codeph class="+ topic/ph pr-d/codeph ">targetCoordinateSpace</codeph> パラメーターをメソッドに渡すかに応じて、様々な矩形が返されることを示しています。
-
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- var container:Sprite = new Sprite();
- container.x = 100;
- container.y = 100;
- this.addChild(container);
- var contents:Shape = new Shape();
- contents.graphics.drawCircle(0,0,100);
- container.addChild(contents);
- trace(contents.getBounds(container));
- // (x=-100, y=-100, w=200, h=200)
- trace(contents.getBounds(this));
- // (x=0, y=0, w=200, h=200)
- </codeblock>
-
-
- <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>
-
- <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>
-
- </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 ">
- シェイプ上の線を除き、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> オブジェクトの座標系を基準とする、表示オブジェクトの領域を定義する矩形です。
-
- </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 ">使用する座標系を定義する表示オブジェクトです。
-
- </apiDesc></apiParam></apiOperationDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
- シェイプ上の線を除き、<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> メソッドから返される値と同じか、それより小さくなります。
-
- <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>
-
- </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> 矩形の違いを示しています。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- import flash.display.CapsStyle;
- import flash.display.JointStyle;
- import flash.display.LineScaleMode;
- import flash.display.Sprite;
- import flash.geom.Rectangle;
- var triangle:Sprite = new Sprite();
- var color:uint = 0xFF0044;
- var width:Number = 20;
- var alpha:Number = 1.0;
- var pixelHinting:Boolean = true;
- var scaleMode:String = LineScaleMode.NORMAL;
- var caps:String = CapsStyle.SQUARE;
- var joints:String = JointStyle.MITER;
- triangle.graphics.lineStyle(width, color, alpha, pixelHinting, scaleMode, caps, joints);
- var triangleSide:Number = 100;
- triangle.graphics.moveTo(0, 0);
- triangle.graphics.lineTo(0, triangleSide);
- triangle.graphics.lineTo(triangleSide, triangleSide);
- triangle.graphics.lineTo(0, 0);
- addChild(triangle);
- trace(triangle.getBounds(this)); // (x=-10, y=-24.1, w=134.10000000000002, h=134.1)
- trace(triangle.getRect(this)); // (x=0, y=0, w=100, h=100)
- </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 ">
- ステージ(グローバル)座標の 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 オブジェクトです。
-
- </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 オブジェクトです。
-
- </apiDesc></apiParam></apiOperationDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
- ステージ(グローバル)座標の 2 次元のポイントを 3 次元の表示オブジェクトの(ローカル)座標に変換します。
-
- <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>
-
- </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 ">
- 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 オブジェクトです。
-
- </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> 座標をプロパティとして指定します。
-
- </apiDesc></apiParam><apiTipTexts><apiTipText class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiTipText "><codeph class="+ topic/ph pr-d/codeph ">point</codeph> オブジェクトをステージ(グローバル)座標から表示オブジェクトの(ローカル)座標に変換します。
-
- </apiTipText></apiTipTexts></apiOperationDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
- <codeph class="+ topic/ph pr-d/codeph ">point</codeph> オブジェクトをステージ(グローバル)座標から表示オブジェクトの(ローカル)座標に変換します。
-
- <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>
-
- </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> メソッドは、ポイントをステージ座標からシェイプの座標空間に変換します。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- import flash.display.Shape;
- import flash.geom.Point;
- var circle:Shape = new Shape();
- circle.graphics.beginFill(0x0000FF);
- circle.graphics.drawCircle(40, 40, 40);
- circle.x = 10;
- addChild(circle);
- var point1:Point = new Point(0, 0);
- trace(circle.hitTestPoint(point1.x, point1.y, true)); // false
- trace(circle.hitTestPoint(point1.x, point1.y, false)); // false
- trace(circle.globalToLocal(point1)); // [x=-10, y=0]
- var point2:Point = new Point(10, 1);
- trace(circle.hitTestPoint(point2.x, point2.y, true)); // false
- trace(circle.hitTestPoint(point2.x, point2.y, false)); // true
- trace(circle.globalToLocal(point2)); // [x=0, y=1]
- var point3:Point = new Point(30, 20);
- trace(circle.hitTestPoint(point3.x, point3.y, true)); // true
- trace(circle.hitTestPoint(point3.x, point3.y, false)); // true
- trace(circle.globalToLocal(point3)); // [x=20, y=20]
- </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 ">
- 表示オブジェクトの境界ボックスを評価して、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> を返します。
-
-
- </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 ">検査の対象となる表示オブジェクトです。
-
- </apiDesc></apiParam><apiTipTexts><apiTipText class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiTipText ">表示オブジェクトの境界ボックスを評価して、パラメーターとして渡された表示オブジェクトの境界ボックスと重複または交差するかどうかを調べます。
-
- </apiTipText></apiTipTexts></apiOperationDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
- 表示オブジェクトの境界ボックスを評価して、<codeph class="+ topic/ph pr-d/codeph ">obj</codeph> 表示オブジェクトの境界ボックスと重複または交差するかどうかを調べます。
-
- </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> が返されます。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- import flash.display.Shape;
- var circle1:Shape = new Shape();
- circle1.graphics.beginFill(0x0000FF);
- circle1.graphics.drawCircle(40, 40, 40);
- addChild(circle1);
- var circle2:Shape = new Shape();
- circle2.graphics.beginFill(0x00FF00);
- circle2.graphics.drawCircle(40, 40, 40);
- circle2.x = 50;
- addChild(circle2);
- var circle3:Shape = new Shape();
- circle3.graphics.beginFill(0xFF0000);
- circle3.graphics.drawCircle(40, 40, 40);
- circle3.x = 100;
- circle3.y = 67;
- addChild(circle3);
- trace(circle1.hitTestObject(circle2)); // true
- trace(circle1.hitTestObject(circle3)); // false
- trace(circle2.hitTestObject(circle3)); // true
- </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 ">
- 表示オブジェクトを評価して、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> です。
-
- </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> 座標です。
-
- </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> 座標です。
-
- </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> です。
-
- </apiDesc></apiParam><apiTipTexts><apiTipText class="+ topic/state reference/state apiRef/apiQualifier adobe-api-d/apiTipText ">表示オブジェクトを評価して、x および y によって指定されるポイントと重複または交差するかどうかを調べます。
-
- </apiTipText></apiTipTexts></apiOperationDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
- 表示オブジェクトを評価して、<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 の場合を除く)。
-
- </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> メソッドは、ポイントをステージ座標からシェイプの座標空間に変換します。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- import flash.display.Shape;
- import flash.geom.Point;
- var circle:Shape = new Shape();
- circle.graphics.beginFill(0x0000FF);
- circle.graphics.drawCircle(40, 40, 40);
- circle.x = 10;
- addChild(circle);
- var point1:Point = new Point(0, 0);
- trace(circle.hitTestPoint(point1.x, point1.y, true)); // false
- trace(circle.hitTestPoint(point1.x, point1.y, false)); // false
- trace(circle.globalToLocal(point1)); // [x=-10, y=0]
- var point2:Point = new Point(10, 1);
- trace(circle.hitTestPoint(point2.x, point2.y, true)); // false
- trace(circle.hitTestPoint(point2.x, point2.y, false)); // true
- trace(circle.globalToLocal(point2)); // [x=0, y=1]
- var point3:Point = new Point(30, 20);
- trace(circle.hitTestPoint(point3.x, point3.y, true)); // true
- trace(circle.hitTestPoint(point3.x, point3.y, false)); // true
- trace(circle.globalToLocal(point3)); // [x=20, y=20]
- </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 ">
- 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 次元のポイント。
-
- </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 オブジェクト。
-
- </apiDesc></apiParam></apiOperationDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
- 3 次元の表示オブジェクトの(ローカル)座標の 3 次元のポイントをステージ(グローバル)座標の 2 次元のポイントに変換します。
-
- <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>
-
-
- </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> メソッドを使用するには、立方体を表示オブジェクトのコンテナに追加してから立方体を描画する必要があります。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- package {
- import flash.display.MovieClip;
- import flash.display.Sprite;
- import flash.display.Graphics;
- import flash.geom.*;
- public class Local3DToGlobalExample extends MovieClip {
- private var myCube:Sprite = new Sprite();
- private var v8:Vector.<Vector3D> = new Vector.<Vector3D>(8);
- public function Local3DToGlobalExample():void {
- this.x = -(this.stage.stageWidth / 2);
- this.y = -(this.stage.stageWidth / 2);
- v8[0] = new Vector3D(-40,-40,-40);
- v8[1] = new Vector3D(40,-40,-40);
- v8[2] = new Vector3D(40,-40,40);
- v8[3] = new Vector3D(-40,-40,40);
- v8[4] = new Vector3D(-40,100,-40);
- v8[5] = new Vector3D(40,100,-40);
- v8[6] = new Vector3D(40,100,40);
- v8[7] = new Vector3D(-40,100,40);
- myCube.x = (this.stage.stageWidth / 2);
- myCube.y = (this.stage.stageWidth / 2);
- myCube.z = 1;
- addChild(myCube);
- Cube();
- }
- private function Cube():void {
- var ps:Point = new Point(0,0);
- myCube.graphics.lineStyle(2,0xFF0000);
- ps = myCube.local3DToGlobal(v8[0]);
- myCube.graphics.moveTo(ps.x, ps.y);
- ps = myCube.local3DToGlobal(v8[1]);
- myCube.graphics.lineTo(ps.x, ps.y);
- ps = myCube.local3DToGlobal(v8[2]);
- myCube.graphics.lineTo(ps.x, ps.y);
- ps = myCube.local3DToGlobal(v8[3]);
- myCube.graphics.lineTo(ps.x, ps.y);
- ps = myCube.local3DToGlobal(v8[0]);
- myCube.graphics.lineTo(ps.x, ps.y);
- ps = myCube.local3DToGlobal(v8[4]);
- myCube.graphics.moveTo(ps.x, ps.y);
- ps = myCube.local3DToGlobal(v8[5]);
- myCube.graphics.lineTo(ps.x, ps.y);
- ps = myCube.local3DToGlobal(v8[6]);
- myCube.graphics.lineTo(ps.x, ps.y);
- ps = myCube.local3DToGlobal(v8[7]);
- myCube.graphics.lineTo(ps.x, ps.y);
- ps = myCube.local3DToGlobal(v8[4]);
- myCube.graphics.lineTo(ps.x, ps.y);
- ps = myCube.local3DToGlobal(v8[0]);
- myCube.graphics.moveTo(ps.x, ps.y);
- ps = myCube.local3DToGlobal(v8[4]);
- myCube.graphics.lineTo(ps.x, ps.y);
- ps = myCube.local3DToGlobal(v8[1]);
- myCube.graphics.moveTo(ps.x, ps.y);
- ps = myCube.local3DToGlobal(v8[5]);
- myCube.graphics.lineTo(ps.x, ps.y);
- ps = myCube.local3DToGlobal(v8[2]);
- myCube.graphics.moveTo(ps.x, ps.y);
- ps = myCube.local3DToGlobal(v8[6]);
- myCube.graphics.lineTo(ps.x, ps.y);
- ps = myCube.local3DToGlobal(v8[3]);
- myCube.graphics.moveTo(ps.x, ps.y);
- ps = myCube.local3DToGlobal(v8[7]);
- myCube.graphics.lineTo(ps.x, ps.y);
- }
- }
- }
- </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 ">
- 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 オブジェクトです。
-
- </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> 座標をプロパティとして指定して作成されるポイントの名前または識別子です。
-
- </apiDesc></apiParam></apiOperationDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
- <codeph class="+ topic/ph pr-d/codeph ">point</codeph> オブジェクトを表示オブジェクトの(ローカル)座標からステージ(グローバル)座標に変換します。
-
- <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>
-
- <p class="- topic/p ">このメソッドを使用するには、まず Point クラスのインスタンスを作成してください。割り当てられる <i class="+ topic/ph hi-d/i ">x</i> 値と <i class="+ topic/ph hi-d/i ">y</i> 値は、表示オブジェクトの起点からの相対値であるため、これらの値はローカル座標を表します。</p>
-
- <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>
-
- </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> メソッドを使用して、これらのプロパティをグローバル(ステージ)座標に変換します。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- import flash.display.Sprite;
- import flash.events.MouseEvent;
- import flash.geom.Point;
- var square:Sprite = new Sprite();
- square.graphics.beginFill(0xFFCC00);
- square.graphics.drawRect(0, 0, 100, 100);
- square.x = 100;
- square.y = 200;
- addChild(square);
- square.addEventListener(MouseEvent.CLICK, traceCoordinates)
- function traceCoordinates(event:MouseEvent):void {
- var clickPoint:Point = new Point(square.mouseX, square.mouseY);
- trace("display object coordinates:", clickPoint);
- trace("stage coordinates:", square.localToGlobal(clickPoint));
- }
- </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 ">
- この表示オブジェクトの現在のアクセシビリティオプションです。</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 ">
- この表示オブジェクトの現在のアクセシビリティオプションです。<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> メソッドを呼び出す必要があります。
-
- <p class="flashonly"><b class="+ topic/ph hi-d/b ">注意:</b>Flash オーサリング環境で作成されたオブジェクトの場合、そのオブジェクトのアクセシビリティパネルに入力した情報が <codeph class="+ topic/ph pr-d/codeph ">accessibilityProperties</codeph> の値に再設定されます。</p>
-
- </apiDesc><example conref="examples\DisplayObject.accessibilityProperties.1.as" class="- topic/example "> 次の例では、単純な AccessibilityProperties オブジェクトを TextField インスタンスに割り当てる方法を示します。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- import flash.text.TextField;
- import flash.accessibility.AccessibilityProperties;
- import flash.accessibility.Accessibility;
- import flash.system.Capabilities;
- var tf:TextField = new TextField();
- tf.text = "hello";
- var accessProps:AccessibilityProperties = new AccessibilityProperties();
- accessProps.name = "Greeting";
- tf.accessibilityProperties = accessProps;
- if (Capabilities.hasAccessibility) {
- Accessibility.updateProperties();
- }
- trace(tf.accessibilityProperties.name); // Greeting
- </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 ">
- 指定されたオブジェクトのアルファ透明度値を示します。</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 ">
- 指定されたオブジェクトのアルファ透明度値を示します。有効な値は 0(完全な透明)~ 1(完全な不透明)です。デフォルト値は 1 です。<codeph class="+ topic/ph pr-d/codeph ">alpha</codeph> が 0 に設定されている表示オブジェクト<i class="+ topic/ph hi-d/i ">は</i>、表示されない場合でも、アクティブです。
-
- </apiDesc><example conref="examples\DisplayObject.alpha.1.as" class="- topic/example "> 次のコードでは、スプライト上にマウスが移動したときに、スプライトの <codeph class="+ topic/ph pr-d/codeph ">alpha</codeph> プロパティを 50% に設定します。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- import flash.display.Sprite;
- import flash.events.MouseEvent;
- var circle:Sprite = new Sprite();
- circle.graphics.beginFill(0xFF0000);
- circle.graphics.drawCircle(40, 40, 40);
- addChild(circle);
- circle.addEventListener(MouseEvent.MOUSE_OVER, dimObject);
- circle.addEventListener(MouseEvent.MOUSE_OUT, restoreObject);
- function dimObject(event:MouseEvent):void {
- event.target.alpha = 0.5;
- }
- function restoreObject(event:MouseEvent):void {
- event.target.alpha = 1.0;
- }
- </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 ">
- 使用するブレンドモードを指定する 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 ">
- 使用するブレンドモードを指定する BlendMode クラスの値です。内部的には、2 つの方法でビットマップを描画できます。ブレンドモードを有効にした場合、または外部クリッピングマスクを使用する場合には、ビットマップで塗りつぶされた四角形シェイプをベクターレンダーに追加することによってビットマップが描画されます。このプロパティを無効な値に設定しようとすると、Flash ランタイムは値を <codeph class="+ topic/ph pr-d/codeph ">BlendMode.NORMAL</codeph> に設定します。
-
- <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>
-
- <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>
-
-
- <p class="- topic/p ">
- <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 "/>
-
- </p>
-
-
- <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 レンダリングではサポートされません。
- </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 で割って正規化し、色を暗くします。この設定は、シャドウや深度効果によく使用されます。
-
- <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 ">表示オブジェクトの要素カラーと背景色のうち明るい方(値が大きい方)の色を選択します。この設定は、重ね合わせタイプによく使用されます。
-
- <p class="- topic/p ">例えば、表示オブジェクトのピクセルの RGB 値が 0xFFCC33 で、背景のピクセルの RGB 値が 0xDDF800 の場合、0xFF > 0xDD、0xCC < 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 ">表示オブジェクトの要素カラーと背景色のうち暗い方(値が小さい方)の色を選択します。この設定は、重ね合わせタイプによく使用されます。
-
- <p class="- topic/p ">例えば、表示オブジェクトのピクセルの RGB 値が 0xFFCC33 で、背景のピクセルの RGB 値が 0xDDF800 の場合、0xFF > 0xDD、0xCC < 0xF8、0x33 > 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 つの要素カラーのうち明るい方の値から暗い方の値を差し引きます。この設定は、明るい色によく使用されます。
-
- <p class="- topic/p ">例えば、表示オブジェクトの 1 つのピクセルの RGB 値が 0xFFCC33 で、背景のピクセルの RGB 値が 0xDDF800 の場合、0xFF - 0xDD = 0x22、0xF8 - 0xCC = 0x2C、0x33 - 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 つのオブジェクト間で色を明るくするディゾルブをアニメーションにするときによく使用されます。
-
- <p class="- topic/p ">例えば、表示オブジェクトのピクセルの RGB 値が 0xAAA633 で、背景のピクセルの RGB 値が 0xDD2200 の場合、0xAA + 0xDD > 0xFF、0xA6 + 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 つのオブジェクト間で色を暗くするディゾルブをアニメーションにするときによく使用されます。
-
- <p class="- topic/p ">例えば、表示オブジェクトの 1 つのピクセルの RGB 値が 0xAA2233 で、背景のピクセルの RGB 値が 0xDDA600 の場合、0xDD - 0xAA = 0x33、0xA6 - 0x22 = 0x84、0x00 - 0x33 < 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>
-
- </apiDesc><example conref="examples\DisplayObject.blendMode.1.as" class="- topic/example "> 次のコードでは、四角形と円の 2 つのスプライトオブジェクトを作成し、マウスポインターが円の上に移動すると、前景の円のブレンドモードを <codeph class="+ topic/ph pr-d/codeph ">BlendMode.SUBTRACT</codeph> に設定します。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- import flash.display.Sprite;
- import flash.display.BlendMode;
- import flash.events.MouseEvent;
- var square:Sprite = new Sprite();
- square.graphics.beginFill(0xFF88CC);
- square.graphics.drawRect(0, 0, 80, 80);
- addChild(square);
- var circle:Sprite = new Sprite();
- circle.graphics.beginFill(0xAA0022);
- circle.graphics.drawCircle(40, 40, 40);
- addChild(circle);
- circle.addEventListener(MouseEvent.MOUSE_OVER, dimObject);
- circle.addEventListener(MouseEvent.MOUSE_OUT, restoreObject);
- function dimObject(event:MouseEvent):void {
- event.target.blendMode = BlendMode.SUBTRACT;
- }
- function restoreObject(event:MouseEvent):void {
- event.target.blendMode = BlendMode.NORMAL;
- }
- </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 ">
- 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 ">この表示オブジェクトのビットマップのキャッシュされたバージョンをレンダリングするときに、変換マトリックスが使用されます。
- </apiTipText></apiTipTexts></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
- null 以外の場合、この Matrix オブジェクトは <codeph class="+ topic/ph pr-d/codeph ">cacheAsBitmap</codeph> を <codeph class="+ topic/ph pr-d/codeph ">true</codeph> に設定したときの表示オブジェクトのレンダリング方法を定義します。アプリケーションでは、このマトリックスを、ビットマップバージョンの表示オブジェクトをレンダリングするときに適用された変換マトリックスとして使用します。
-
- <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>
-
- <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">cacheAsBitmapMatrix</codeph> セットを使用して、アプリケーションは移動、回転、拡大や縮小などの様々な 2D 変形にわたって、キャッシュされたビットマップイメージを保持します。アプリケーションでハードウェアアクセラレーションが使用されている場合、オブジェクトはテクスチャとしてビデオメモリに格納されます。これにより、GPU が、サポートされている変形をオブジェクトに適用できます。GPU では、これらの変換を CPU よりも高速に実行できます。</p>
-
-
- <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>
-
- <p class="- topic/p ">例えば、次のコードは表示オブジェクトの未変換のビットマップ表現を GPU に送信します。</p>
-
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">matrix:Matrix = new Matrix(); // creates an identity matrix
- mySprite.cacheAsBitmapMatrix = matrix;
- mySprite.cacheAsBitmap = true;</codeblock>
-
- <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>
-
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">matrix:Matrix = new Matrix(); // creates an identity matrix
- matrix.scale(0.5, 0.5); // scales the matrix
- mySprite.cacheAsBitmapMatrix = matrix;
- mySprite.cacheAsBitmap = true;</codeblock>
-
- <p class="- topic/p ">通常は、表示オブジェクトをアプリケーションで表示されるサイズに変換するマトリックスを選択して使用します。例えば、半分に縮小したビットマップバージョンのスプライトをアプリケーションで表示する場合、半分に縮小するマトリックスを使用します。現在のサイズよりも大きいスプライトをアプリケーションで表示する場合、拡大する係数のマトリックスを使用します。</p>
-
- <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>
-
- </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> というムービークリックのビットマップバージョンに変形を適用します。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- import flash.geom.Matrix;
- import flash.display.*;
- import flash.utils.Timer;
- var my_shape:MovieClip = new MovieClip();
- my_shape.graphics.beginFill(0xCCFF00);
- my_shape.graphics.drawRect(200, 0, 100, 100);
- addChild(my_shape);
- var my_timer:Timer = new Timer(250);
- my_timer.start();
- my_timer.addEventListener(TimerEvent.TIMER, timerHandler);
- // make sure this Display Object remains cached for all 2D transforms
- my_shape.cacheAsBitmap = true;
- my_shape.cacheAsBitmapMatrix = new Matrix();
- // rotation variables
- const initAngle:Number = 0;
- const pi:Number = 3.142;
- const incrAngle:Number = pi/10;
- // scaling variables
- const initScale:Number = 0.25;
- const incrScale: Number = 1.1;
- var initHeight : Number = my_shape.height;
- var initWidth : Number = my_shape.width;
- // translation variables
- var incrX : Number = root.width / 20;
- var incrY : Number = root.height / 10;
- // do some initial transforms
- var tempMat : Matrix = my_shape.transform.matrix;
- tempMat.rotate(initAngle);
- tempMat.scale(initScale, initScale);
- my_shape.transform.matrix = tempMat;
- function timerHandler(evt:TimerEvent):void {
- tempMat = my_shape.transform.matrix;
-
- tempMat.rotate(incrAngle);
- tempMat.translate(incrX, incrY);
- tempMat.scale(incrScale, incrScale);
-
- my_shape.transform.matrix = tempMat;
-
- // ensure we are still in a reasonable state or reset
- if(my_shape.height > stage.stageHeight/2)
- {
- my_shape.height = initHeight;
- }
-
- if(my_shape.width > stage.stageWidth/2)
- {
- my_shape.width = initWidth;
- }
-
- if(my_shape.x > stage.stageWidth)
- {
- my_shape.x = 0;
- }
- else if (my_shape.x < 0)
- {
- my_shape.x = stage.stageWidth;
- }
-
- if(my_shape.y > stage.stageHeight)
- {
- my_shape.y = 0;
- }
- else if (my_shape.y < 0)
- {
- my_shape.y = stage.stageHeight;
- }
-
- }
- </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 ">
- 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 をビットマップとしてキャッシュするかどうかを示します。
-
- </apiTipText></apiTipTexts></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
- <codeph class="+ topic/ph pr-d/codeph ">true</codeph> に設定されている場合、表示オブジェクトの内部ビットマップ表現が Flash ランタイムにキャッシュされます。このキャッシュ処理により、複雑なベクターコンテンツを含んでいる表示オブジェクトのパフォーマンスを向上できます。
-
- <p class="- topic/p ">ビットマップがキャッシュされている表示オブジェクトのすべてのベクターデータは、メイン表示ではなくビットマップに描画されます。<codeph class="+ topic/ph pr-d/codeph ">cacheAsBitmapMatrix</codeph> が null であるかサポートされていない場合は、ビットマップは最も近いピクセル境界に吸着された非回転かつ非伸縮のピクセルとしてメイン表示にコピーされます。ピクセルは、親オブジェクトと 1 対 1 でマップされます。ビットマップの境界が変更されると、ビットマップは伸縮されるのではなく、再作成されます。</p>
-
- <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">cacheAsBitmapMatrix</codeph> が null ではなく、またサポートされている場合、オブジェクトは、マトリックスを使用してオフスクリーンビットマップに描画され、そのレンダリングによる伸縮や回転を使用して、オブジェクトがメイン表示に描画されます。</p>
-
- <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">cacheAsBitmap</codeph> プロパティが <codeph class="+ topic/ph pr-d/codeph ">true</codeph> に設定されていない限り、内部ビットマップは作成されません。</p>
-
- <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">cacheAsBitmap</codeph> プロパティを <codeph class="+ topic/ph pr-d/codeph ">true</codeph> に設定した後、レンダリングは変更されませんが、表示オブジェクトはピクセルへの吸着を自動的に実行します。アニメーションの速度は、ベクターコンテンツの複雑さに応じて大幅に速くなる可能性があります。
- </p>
-
- <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>
-
- <p class="- topic/p ">以下のような場合には、<codeph class="+ topic/ph pr-d/codeph ">cacheAsBitmap</codeph> プロパティが <codeph class="+ topic/ph pr-d/codeph ">true</codeph> に設定されていても表示オブジェクトはビットマップを使用せず、代わりにベクターデータから描画します。</p>
-
- <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>
-
- <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>
-
- </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> に設定される)をトレースします。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- import flash.display.Sprite;
- import flash.filters.DropShadowFilter
- var circle:Sprite = new Sprite();
- circle.graphics.beginFill(0xAA0022);
- circle.graphics.drawCircle(40, 40, 40);
- addChild(circle);
- trace(circle.cacheAsBitmap); // false
- var filter:DropShadowFilter = new DropShadowFilter();
- circle.filters = [filter];
- trace(circle.cacheAsBitmap); // true
- </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 ">
- 表示オブジェクトに現在関連付けられている各フィルターオブジェクトが格納されているインデックス付きの配列です。</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> 出力を指定する必要があります)。
-
- </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> 入力でない場合。
-
- </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 が含まれ、シェーダーが指定したイメージ入力が存在しない場合。
-
- </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、ByteArray、または Vector が含まれる場合。<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> プロパティを参照してください。
-
- </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 ">
- 表示オブジェクトに現在関連付けられている各フィルターオブジェクトが格納されているインデックス付きの配列です。flash.filters パッケージには、使用可能な特定のフィルターを定義する複数のクラスが含まれています。
-
- <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>
-
- <p class="- topic/p ">ActionScript を使ってフィルターを追加するには、次の手順を実行する必要があります(ターゲット表示オブジェクトの名前を <codeph class="+ topic/ph pr-d/codeph ">myDisplayObject</codeph> とします)。</p>
-
- <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>
-
- <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">filters</codeph> 配列が未定義の場合、一時配列を使用する必要はありません。その代わりに、作成される 1 つまたは複数のフィルターオブジェクトを格納する配列リテラルを直接割り当てることができます。最初の例では、定義済みおよび未定義の <codeph class="+ topic/ph pr-d/codeph ">filters</codeph> 配列を処理するコードを使用して、ドロップシャドウフィルターを追加します。</p>
-
- <p class="- topic/p ">既存のフィルターオブジェクトを変更するには、次のように、<codeph class="+ topic/ph pr-d/codeph ">filters</codeph> 配列のコピーを変更する必要があります。</p>
-
- <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>
-
- <p class="- topic/p ">ロード時には、表示オブジェクトにフィルターが関連付けられている場合、透明なビットマップとして表示オブジェクト自身をキャッシュするようにマークされます。これ以降、表示オブジェクトに有効なフィルターリストがある限り、表示オブジェクトはビットマップとしてキャッシュされます。このソースビットマップは、フィルター効果のソースイメージとして使用されます。通常、それぞれの表示オブジェクトには 2 つのビットマップがあります。1 つはフィルター適用前の元の表示オブジェクトのビットマップ、もう 1 つはフィルター適用後の最終イメージのビットマップです。最終イメージはレンダリング時に使用されます。表示オブジェクトが変更されない限り、最終イメージを更新する必要はありません。</p>
-
- <p class="- topic/p ">flash.filters パッケージにはフィルター用のクラスが含まれます。例えば、DropShadow フィルターを作成するには、次のようにすることができます。</p>
-
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- import flash.filters.DropShadowFilter
- var myFilter:DropShadowFilter = new DropShadowFilter (distance, angle, color, alpha, blurX, blurY, quality, inner, knockout)
- </codeblock>
-
- <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> 配列内の最初のフィルターの位置を判別する方法を示しています。
- </p>
-
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- import flash.text.TextField;
- import flash.filters.~~;
- var tf:TextField = new TextField();
- var filter1:DropShadowFilter = new DropShadowFilter();
- var filter2:GradientGlowFilter = new GradientGlowFilter();
- tf.filters = [filter1, filter2];
-
- tf.text = "DropShadow index: " + filterPosition(tf, DropShadowFilter).toString(); // 0
- addChild(tf)
-
- function filterPosition(displayObject:DisplayObject, filterClass:Class):int {
- for (var i:uint = 0; i < displayObject.filters.length; i++) {
- if (displayObject.filters[i] is filterClass) {
- return i;
- }
- }
- return -1;
- }
- </codeblock>
- <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>
-
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- myDisplayObject.filters.push(myDropShadow);
- </codeblock>
-
- </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 ">
- 表示オブジェクトの高さを示します(ピクセル単位)。</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 ">
- 表示オブジェクトの高さを示します(ピクセル単位)。この高さは、表示オブジェクトのコンテンツの境界に基づいて計算されます。次のコードに示すように、この <codeph class="+ topic/ph pr-d/codeph ">height</codeph> プロパティを設定すると、それに合わせて <codeph class="+ topic/ph pr-d/codeph ">scaleY</codeph> プロパティの値が調整されます。
-
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- var rect:Shape = new Shape();
- rect.graphics.beginFill(0xFF0000);
- rect.graphics.drawRect(0, 0, 100, 100);
- trace(rect.scaleY) // 1;
- rect.height = 200;
- trace(rect.scaleY) // 2;</codeblock>
-
- <p class="- topic/p ">TextField と Video オブジェクトを除いて、<codeph class="+ topic/ph pr-d/codeph ">height</codeph> を別の値に設定しようとしても、コンテンツのない表示オブジェクト(例えば、空のスプラインなど)の高さは 0 になります。</p>
-
- </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 番目のテキストフィールドを配置します。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- import flash.text.TextField;
- var tf1:TextField = new TextField();
- tf1.text = "Text Field 1";
- tf1.border = true;
- tf1.wordWrap = true;
- tf1.width = 40;
- tf1.height = tf1.textHeight + 5;
- addChild(tf1);
- var tf2:TextField = new TextField();
- tf2.text = "Text Field 2";
- tf2.border = true;
- tf2.wordWrap = true;
- tf2.width = 40;
- tf2.height = tf2.textHeight + 5;
- tf2.y = tf1.y + tf1.height + 5;
- addChild(tf2);
- </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 ">
- この表示オブジェクトが属するファイルの読み込み情報を含む 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 ">
- この表示オブジェクトが属するファイルの読み込み情報を含む 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> を使用します。
-
- <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">this.root.loaderInfo.addEventListener(Event.COMPLETE, func)</codeph> を呼び出すことにより、大きな SWF ファイルのダウンロードを監視できます。</p>
-
- </apiDesc><example conref="examples\DisplayObject.loaderInfo.1.as" class="- topic/example "> 次のコードでは、<codeph class="+ topic/ph pr-d/codeph ">this</codeph> が表示オブジェクトを参照するものと想定しています。このコードでは、表示オブジェクトのルート SWF ファイルの URL を出力します。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- trace (this.loaderInfo.url);
-
- </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 ">
- 呼び出し元の表示オブジェクトは、指定された 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 ">表示オブジェクトのマスクを設定します。
-
- </apiTipText></apiTipTexts></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
- 呼び出し元の表示オブジェクトは、指定された <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> に設定します。
-
- <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>
-
- <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>
-
- <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>
-
- </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> メソッドを呼び出します。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- import flash.text.TextField;
- import flash.display.Sprite;
- import flash.events.MouseEvent;
- var tf:TextField = new TextField();
- tf.text = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, "
- + "sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. "
- tf.selectable = false;
- tf.wordWrap = true;
- tf.width = 150;
- addChild(tf);
- var square:Sprite = new Sprite();
- square.graphics.beginFill(0xFF0000);
- square.graphics.drawRect(0, 0, 40, 40);
- addChild(square);
- tf.mask = square;
- tf.addEventListener(MouseEvent.MOUSE_DOWN, drag);
- tf.addEventListener(MouseEvent.MOUSE_UP, noDrag);
- function drag(event:MouseEvent):void {
- square.startDrag();
- }
- function noDrag(event:MouseEvent):void {
- square.stopDrag();
- }
- </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 ">
- マウスまたはユーザー入力デバイスの 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 ">
- マウスまたはユーザー入力デバイスの x 軸の位置をピクセルで示します。
-
- <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意:</b>DisplayObject が回転している場合、返される x 座標は回転前のオブジェクトの座標を反映します。</p>
-
- </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> の位置がトレースされます。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- import flash.display.Sprite;
- import flash.events.MouseEvent;
- var square:Sprite = new Sprite();
- square.graphics.beginFill(0xFF0000);
- square.graphics.drawRect(0, 0, 200, 200);
- addChild(square);
- square.addEventListener(MouseEvent.CLICK, traceCoordinates);
- function traceCoordinates(event:MouseEvent):void {
- trace(square.mouseX, square.mouseY);
- }
- </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 ">
- マウスまたはユーザー入力デバイスの 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 ">
- マウスまたはユーザー入力デバイスの y 軸の位置をピクセルで示します。
-
- <p class="- topic/p "><b class="+ topic/ph hi-d/b ">注意:</b>DisplayObject が回転している場合、返される y 座標は回転前のオブジェクトの座標を反映します。</p>
-
- </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> の位置がトレースされます。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- import flash.display.Sprite;
- import flash.events.MouseEvent;
- var square:Sprite = new Sprite();
- square.graphics.beginFill(0xFF0000);
- square.graphics.drawRect(0, 0, 200, 200);
- addChild(square);
- square.addEventListener(MouseEvent.CLICK, traceCoordinates);
- function traceCoordinates(event:MouseEvent):void {
- trace(square.mouseX, square.mouseY);
- }
- </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 ">
- 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 オーサリングツールで、タイムライン上に配置されたオブジェクトに対して、このプロパティを設定しようとした場合
-
- </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 の名前です。
-
- </apiTipText></apiTipTexts></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
- DisplayObject のインスタンス名を示します。親表示オブジェクトコンテナの子リスト内でオブジェクトを識別するには、表示オブジェクトコンテナの <codeph class="+ topic/ph pr-d/codeph ">getChildByName()</codeph> メソッドを呼び出します。
-
- </apiDesc><example conref="examples\DisplayObject.name.1.as" class="- topic/example "> 次のコードでは、2 つの Sprite オブジェクトを作成し、ユーザーがいずれかのオブジェクトをクリックしたときに関連付けられる <codeph class="+ topic/ph pr-d/codeph ">name</codeph> プロパティをトレースします。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- import flash.display.Sprite;
- import flash.events.MouseEvent;
- var circle1:Sprite = new Sprite();
- circle1.graphics.beginFill(0xFF0000);
- circle1.graphics.drawCircle(40, 40, 40);
- circle1.name = "circle1";
- addChild(circle1);
- circle1.addEventListener(MouseEvent.CLICK, traceName);
- var circle2:Sprite = new Sprite();
- circle2.graphics.beginFill(0x0000FF);
- circle2.graphics.drawCircle(140, 40, 40);
- circle2.name = "circle2";
- addChild(circle2);
- circle2.addEventListener(MouseEvent.CLICK, traceName);
- function traceName(event:MouseEvent):void {
- trace(event.target.name);
- }
- </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 ">
- 表示オブジェクトが特定の背景色で不透明であるかどうかを指定します。</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 ">
- 表示オブジェクトが特定の背景色で不透明であるかどうかを指定します。透明のビットマップにはアルファチャンネルデータが含まれ、透明に描画されます。不透明のビットマップには、アルファチャンネルがありません(したがって透明のビットマップより速くレンダリングされます)。ビットマップが不透明の場合、使用する独自の背景色を指定する必要があります。
-
- <p class="- topic/p ">数値が設定された場合、これは数値によって指定される RGB 背景色を持つ不透明な(透明でない)サーフェスになります。<codeph class="+ topic/ph pr-d/codeph ">null</codeph>(デフォルト値)に設定された場合、表示オブジェクトの背景は透明になります。</p>
-
- <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>
-
- <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>
-
- <p class="- topic/p ">不透明な背景領域は、マウスイベントに反応しません。</p>
-
- </apiDesc><example conref="examples\DisplayObject.opaqueBackground.1.as" class="- topic/example "> 次のコードでは、青色の円の Shape オブジェクトを作成し、その <codeph class="+ topic/ph pr-d/codeph ">opaqueBackground</codeph> プロパティを赤色(0xFF0000)に設定します。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- import flash.display.Shape;
- var circle:Shape = new Shape();
- circle.graphics.beginFill(0x0000FF);
- circle.graphics.drawCircle(40, 40, 40);
- circle.opaqueBackground = 0xFF0000;
- addChild(circle);
- </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 ">
- この表示オブジェクトを含む 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> メソッドを呼び出すことにより、このような状況を避けることができます。
-
- </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 ">
- この表示オブジェクトを含む DisplayObjectContainer オブジェクトを示します。表示リスト階層内の現在の表示オブジェクトの上位にある表示オブジェクトへの相対パスを指定するには、<codeph class="+ topic/ph pr-d/codeph ">parent</codeph> プロパティを使用します。
-
- <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">parent</codeph> を使用して表示リストの複数のレベルを上に移動するには、次のようにします。</p>
-
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- this.parent.parent.alpha = 20;
- </codeblock>
-
- </apiDesc><example conref="examples\DisplayObject.parent.1.as" class="- topic/example "> 次のコードでは、3 つの Sprite オブジェクトを作成し、<codeph class="+ topic/ph pr-d/codeph ">parent</codeph> プロパティに表示リスト階層が反映されるしくみを示します。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- import flash.display.Sprite;
- var sprite1:Sprite = new Sprite();
- sprite1.name = "sprite1";
- var sprite2:Sprite = new Sprite();
- sprite2.name = "sprite2";
- var sprite3:Sprite = new Sprite();
- sprite3.name = "sprite3";
- sprite1.addChild(sprite2);
- sprite2.addChild(sprite3);
- trace(sprite2.parent.name); // sprite1
- trace(sprite3.parent.name); // sprite2
- trace(sprite3.parent.parent.name); // sprite1
- </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 ">
- 読み込まれた 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 ">このオブジェクトのルート表示オブジェクトを返します。
-
- </apiTipText></apiTipTexts></apiValueDef><apiDesc class="- topic/section reference/section apiRef/apiDesc ">
- 読み込まれた 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 ファイルの最上位の表示オブジェクトの子である表示オブジェクトコンテナに追加されていている場合は除きます。
-
- <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>
-
- <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>
-
- </apiDesc><example conref="examples\DisplayObject.root.1.as" class="- topic/example "> 次のコードでは、Stage オブジェクト、表示リストに追加される前と後の両方の表示オブジェクト(Loader オブジェクト)、およびロードされたオブジェクト(ロードされた Bitmap オブジェクト)の <codeph class="+ topic/ph pr-d/codeph ">root</codeph> プロパティの違いを表示します。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- import flash.display.Loader;
- import flash.net.URLRequest;
- import flash.events.Event;
- trace(stage.root); // [object Stage]
- var ldr:Loader = new Loader();
- trace (ldr.root); // null
- addChild(ldr);
- trace (ldr.root); // [object ...]
- var urlReq:URLRequest = new URLRequest("example.jpg");
- ldr.load(urlReq);
- ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, loaded);
- function loaded(event:Event):void {
- trace(ldr.content.root); // [object Bitmap]
- }
- </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 ">
- 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 ">
- DisplayObject インスタンスの 3D 親コンテナを基準にした元の位置からの x 軸の回転角を度単位で示します。時計回りに回転させる場合は 0 ~ 180 の値を指定します。反時計回りに回転させる場合は 0 ~ -180 の値を指定します。この範囲を超える値は、360 を加算または減算して、範囲内に収まる値になるように調整されます。
-
- </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 つ目の楕円は、外部のポイントを軸にして回転します。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- package {
- import flash.display.MovieClip;
- import flash.display.Shape;
- import flash.geom.*;
- import flash.display.Graphics;
- import flash.events.TimerEvent;
- import flash.utils.Timer;
- public class RotationExample1 extends MovieClip {
- private var ellipse:Shape = new Shape();
- private var speed:int = 10;
- private var ellipse1:Shape;
- private var ellipse2:Shape;
-
- public function RotationExample1():void {
- ellipse1 = drawEllipse(-50, -40, (this.stage.stageWidth / 2),
- (this.stage.stageHeight / 2));
-
- ellipse2 = drawEllipse(30, 40, (this.stage.stageWidth / 2),
- (this.stage.stageHeight / 2));
- this.addChild(ellipse1);
- this.addChild(ellipse2);
- var t:Timer = new Timer(50);
- t.addEventListener(TimerEvent.TIMER, timerHandler);
- t.start();
- }
- private function drawEllipse(x1, y1, x2, y2):Shape {
-
- var e:Shape = new Shape();
- e.graphics.beginFill(0xFF0000);
- e.graphics.lineStyle(2);
- e.graphics.drawEllipse(x1, y1, 100, 80);
- e.graphics.endFill();
- e.x = x2;
- e.y = y2;
- e.z = 1;
- return e;
- }
- private function timerHandler(event:TimerEvent):void {
- ellipse1.rotationY += speed;
- ellipse1.rotationX -= speed;
- ellipse2.rotationY += speed;
- ellipse2.rotationX -= speed;
- }
- }
- }
- </codeblock></example><example conref="examples\Slider_rotationX.as" class="- topic/example "> 次の例では、Flash Professional、ActionScript 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> で作成された例。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- //Requires:
- // - Slider control UI component in Flash library.
- // - Publish for Flash Player 10.
- //
-
- [SWF(width="400", height="300")]
-
- import fl.controls.Slider;
- import fl.controls.SliderDirection;
- import fl.events.SliderEvent;
-
- var slider:Slider = new Slider();
- slider.direction = SliderDirection.HORIZONTAL;
- slider.minimum = 0;
- slider.maximum = 360;
- slider.value = 45;
- slider.tickInterval = 45;
- slider.snapInterval = 1;
- slider.liveDragging = true;
- slider.addEventListener(SliderEvent.CHANGE, slider_change);
- slider.move(10, 10);
- addChild(slider);
-
- var spr:Sprite = new Sprite();
- spr.graphics.lineStyle(2, 0xFF0000);
- spr.graphics.drawRect(0, 0, 100, 80);
- spr.x = Math.round((stage.stageWidth - spr.width)/2);
- spr.y = Math.round((stage.stageHeight - spr.height)/2);
- spr.rotationX = 45;
- addChild(spr);
-
- function slider_change(evt:SliderEvent):void {
- spr.rotationX = evt.value;
- }
- </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 ">
- 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 ">
- DisplayObject インスタンスの 3D 親コンテナを基準にした元の位置からの y 軸の回転角を度単位で示します。時計回りに回転させる場合は 0 ~ 180 の値を指定します。反時計回りに回転させる場合は 0 ~ -180 の値を指定します。この範囲を超える値は、360 を加算または減算して、範囲内に収まる値になるように調整されます。
-
-
- </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 つ目の楕円は、外部のポイントを軸にして回転します。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- package {
- import flash.display.MovieClip;
- import flash.display.Shape;
- import flash.geom.*;
- import flash.display.Graphics;
- import flash.events.TimerEvent;
- import flash.utils.Timer;
- public class RotationExample1 extends MovieClip {
- private var ellipse:Shape = new Shape();
- private var speed:int = 10;
- private var ellipse1:Shape;
- private var ellipse2:Shape;
-
- public function RotationExample1():void {
- ellipse1 = drawEllipse(-50, -40, (this.stage.stageWidth / 2),
- (this.stage.stageHeight / 2));
-
- ellipse2 = drawEllipse(30, 40, (this.stage.stageWidth / 2),
- (this.stage.stageHeight / 2));
- this.addChild(ellipse1);
- this.addChild(ellipse2);
- var t:Timer = new Timer(50);
- t.addEventListener(TimerEvent.TIMER, timerHandler);
- t.start();
- }
- private function drawEllipse(x1, y1, x2, y2):Shape {
-
- var e:Shape = new Shape();
- e.graphics.beginFill(0xFF0000);
- e.graphics.lineStyle(2);
- e.graphics.drawEllipse(x1, y1, 100, 80);
- e.graphics.endFill();
- e.x = x2;
- e.y = y2;
- e.z = 1;
- return e;
- }
- private function timerHandler(event:TimerEvent):void {
- ellipse1.rotationY += speed;
- ellipse1.rotationX -= speed;
- ellipse2.rotationY += speed;
- ellipse2.rotationX -= speed;
- }
- }
- }
- </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 ">
- 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 ">
- DisplayObject インスタンスの 3D 親コンテナを基準にした元の位置からの z 軸の回転角を度単位で示します。時計回りに回転させる場合は 0 ~ 180 の値を指定します。反時計回りに回転させる場合は 0 ~ -180 の値を指定します。この範囲を超える値は、360 を加算または減算して、範囲内に収まる値になるように調整されます。
-
-
- </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 ">
- 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 ">
- 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> と同義です。
-
- </apiDesc><example conref="examples\DisplayObject.rotation.1.as" class="- topic/example "> 次のコードでは、Sprite オブジェクトを作成し、ユーザーがそれをクリックすると、オブジェクトが回転します。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- import flash.display.Sprite;
- import flash.events.MouseEvent;
- var square:Sprite = new Sprite();
- square.graphics.beginFill(0xFFCC00);
- square.graphics.drawRect(-50, -50, 100, 100);
- square.x = 150;
- square.y = 150;
- addChild(square);
- square.addEventListener(MouseEvent.CLICK, rotate);
- function rotate(event:MouseEvent):void {
- square.rotation += 15;
- }
- </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 ">
- 現在有効な拡大 / 縮小グリッドです。</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)
- and a gradient fill. The movie clip scales based on the mouse position, and because of the
- <code>scale9Grid</code> set for the movie clip, the thickness of the 20-pixel line does not
- vary when the clip scales (although the gradient in the movie clip <em>does</em> scale):
-
- <listing version="2.0">
- import flash.geom.Rectangle;
- import flash.geom.Matrix;
-
- this.createEmptyMovieClip("my_mc", this.getNextHighestDepth());
-
- var grid:Rectangle = new Rectangle(20, 20, 260, 260);
- my_mc.scale9Grid = grid ;
-
- my_mc._x = 50;
- my_mc._y = 50;
-
- function onMouseMove()
- {
- my_mc._width = _xmouse;
- my_mc._height = _ymouse;
- }
-
- my_mc.lineStyle(20, 0xff3333, 100);
- var gradient_matrix:Matrix = new Matrix();
- gradient_matrix.createGradientBox(15, 15, Math.PI, 10, 10);
- my_mc.beginGradientFill("radial", [0xffff00, 0x0000ff],
- [100, 100], [0, 0xFF], gradient_matrix,
- "reflect", "RGB", 0.9);
- my_mc.moveTo(0, 0);
- my_mc.lineTo(0, 300);
- my_mc.lineTo(300, 300);
- my_mc.lineTo(300, 0);
- my_mc.lineTo(0, 0);
- my_mc.endFill();
- </listing>
-
- </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 ">メソッドに無効な引数を渡した場合
-
- </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 ">
- 現在有効な拡大 / 縮小グリッドです。<codeph class="+ topic/ph pr-d/codeph ">null</codeph> に設定されている場合、拡大または縮小変換が適用されると表示オブジェクト全体は通常どおりに拡大または縮小されます。
-
- <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>
-
- <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>
-
- <p class="- topic/p ">矩形で定義される、中心以外の 8 つの領域は、拡大 / 縮小時に特別な規則が適用される額縁のようなものと考えることができます。</p>
-
- <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">scale9Grid</codeph> プロパティが設定されているときに表示オブジェクトを拡大 / 縮小すると、テキストとグラデーションはすべて通常どおり拡大 / 縮小しますが、それ以外の種類のオブジェクトには次のような規則が適用されます。</p>
-
- <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>
-
- <p class="- topic/p ">表示オブジェクトが回転されると、それ以降の拡大 / 縮小はすべて通常どおりになり、<codeph class="+ topic/ph pr-d/codeph ">scale9Grid</codeph> プロパティは無視されます。</p>
-
- <p class="- topic/p ">例えば、次のような表示オブジェクトと、その表示オブジェクトの <codeph class="+ topic/ph pr-d/codeph ">scale9Grid</codeph> として適用される矩形があるとします。</p>
-
- <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 "/>
- <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 "/>
- <p class="- topic/p ">赤の矩形は <codeph class="+ topic/ph pr-d/codeph ">scale9Grid</codeph> を表します。</p></entry></row></tbody></tgroup></adobetable>
-
- <p class="- topic/p ">表示オブジェクトを拡大 / 縮小または伸縮すると、矩形内のオブジェクトは通常どおり拡大 / 縮小しますが、矩形外のオブジェクトは <codeph class="+ topic/ph pr-d/codeph ">scale9Grid</codeph> の規則に従って拡大 / 縮小します。</p>
-
- <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>
-
- <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">scale9Grid</codeph> 設定の一般的な使用法は、拡大 / 縮小時にエッジ領域が同じ幅に保たれるコンポーネントとして表示オブジェクトをセットアップすることです。</p>
-
- </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 オブジェクトに適用されるため、矩形の境界線は拡大 / 縮小されず、グラデーションの塗りのみが拡大 / 縮小されます。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- import flash.display.Shape;
- import flash.display.GradientType;
- import flash.display.SpreadMethod;
- import flash.display.InterpolationMethod;
- import flash.geom.Matrix;
- import flash.geom.Rectangle;
- import flash.utils.Timer;
- import flash.events.TimerEvent;
- var square:Shape = new Shape();
- square.graphics.lineStyle(20, 0xFFCC00);
- var gradientMatrix:Matrix = new Matrix();
- gradientMatrix.createGradientBox(15, 15, Math.PI, 10, 10);
- square.graphics.beginGradientFill(GradientType.RADIAL,
- [0xffff00, 0x0000ff],
- [100, 100],
- [0, 0xFF],
- gradientMatrix,
- SpreadMethod.REFLECT,
- InterpolationMethod.RGB,
- 0.9);
- square.graphics.drawRect(0, 0, 100, 100);
- var grid:Rectangle = new Rectangle(20, 20, 60, 60);
- square.scale9Grid = grid ;
- addChild(square);
- var tim:Timer = new Timer(100);
- tim.start();
- tim.addEventListener(TimerEvent.TIMER, scale);
- var scaleFactor:Number = 1.01;
- function scale(event:TimerEvent):void {
- square.scaleX *= scaleFactor;
- square.scaleY *= scaleFactor;
-
- if (square.scaleX > 2.0) {
- scaleFactor = 0.99;
- }
- if (square.scaleX < 1.0) {
- scaleFactor = 1.01;
- }
- }
- </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 ">
- 基準点から適用されるオブジェクトの水平スケール(パーセンテージ)を示します。</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 ">
- 基準点から適用されるオブジェクトの水平スケール(パーセンテージ)を示します。 デフォルトの基準点は (0,0) です。1.0 は縮尺 100% と同等です。
-
- <p class="- topic/p ">ローカル座標系を拡大 / 縮小すると、<codeph class="+ topic/ph pr-d/codeph ">x</codeph> および <codeph class="+ topic/ph pr-d/codeph ">y</codeph> プロパティの値が変化します。この変化は、整数のピクセル数で表されます。 </p>
-
- </apiDesc><example conref="examples\DisplayObject.scaleX.1.as" class="- topic/example "> 次のコードでは、Sprite オブジェクトを作成し、その <codeph class="+ topic/ph pr-d/codeph ">graphics</codeph> プロパティで矩形を描画します。ユーザーがスプライトをクリックすると、スプライトは 10% 拡大されます。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- import flash.display.Sprite;
- import flash.events.MouseEvent;
- var square:Sprite = new Sprite();
- square.graphics.beginFill(0xFFCC00);
- square.graphics.drawRect(0, 0, 100, 100);
- addChild(square);
- square.addEventListener(MouseEvent.CLICK, scale);
- function scale(event:MouseEvent):void {
- square.scaleX *= 1.10;
- square.scaleY *= 1.10;
- }
- </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 ">
- オブジェクトの基準点から適用されるオブジェクトの垂直スケール(パーセンテージ)を示します。</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 ">
- オブジェクトの基準点から適用されるオブジェクトの垂直スケール(パーセンテージ)を示します。 デフォルトの基準点は (0,0) です。1.0 は縮尺 100% です。
-
- <p class="- topic/p ">ローカル座標系を拡大 / 縮小すると、<codeph class="+ topic/ph pr-d/codeph ">x</codeph> および <codeph class="+ topic/ph pr-d/codeph ">y</codeph> プロパティの値が変化します。この変化は、整数のピクセル数で表されます。 </p>
-
- </apiDesc><example conref="examples\DisplayObject.scaleX.1.as" class="- topic/example "> 次のコードでは、Sprite オブジェクトを作成し、その <codeph class="+ topic/ph pr-d/codeph ">graphics</codeph> プロパティで矩形を描画します。ユーザーがスプライトをクリックすると、スプライトは 10% 拡大されます。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- import flash.display.Sprite;
- import flash.events.MouseEvent;
- var square:Sprite = new Sprite();
- square.graphics.beginFill(0xFFCC00);
- square.graphics.drawRect(0, 0, 100, 100);
- addChild(square);
- square.addEventListener(MouseEvent.CLICK, scale);
- function scale(event:MouseEvent):void {
- square.scaleX *= 1.10;
- square.scaleY *= 1.10;
- }
- </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 ">
- オブジェクトの基準点から適用されるオブジェクトの奥行きスケール(パーセンテージ)を示します。</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 ">
- オブジェクトの基準点から適用されるオブジェクトの奥行きスケール(パーセンテージ)を示します。デフォルトの基準点は (0,0) です。1.0 は縮尺 100% です。
-
- <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>
-
-
- </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 ">
- 表示オブジェクトのスクロール矩形の境界です。</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 ">
- 表示オブジェクトのスクロール矩形の境界です。表示オブジェクトは矩形で定義されたサイズにトリミングされ、<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> オブジェクトのプロパティ)を変更すると、表示オブジェクトは矩形の内部でスクロールします。
-
- <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">scrollRect</codeph> 矩形オブジェクトのプロパティは、表示オブジェクトの座標空間を使用し、表示オブジェクト全体と同じように拡大および縮小されます。スクロールしている表示オブジェクト上のトリミングされたウィンドウの隅の境界は、表示オブジェクトの原点 (0,0)、および矩形の幅と高さによって定義されるポイントです。これらは原点を中心に配置されるのではなく、原点を使って領域の左上隅を定義します。スクロールされる表示オブジェクトは、常にピクセル増分全体の中でスクロールします。 </p>
-
- <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>
-
- </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> オブジェクトのプロパティ)のプロパティ)を調整し、結果としてオブジェクトが下にスクロールします。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- import flash.display.Sprite;
- import flash.geom.Rectangle;
- import flash.events.MouseEvent;
- var circle:Sprite = new Sprite();
- circle.graphics.beginFill(0xFFCC00);
- circle.graphics.drawCircle(200, 200, 200);
- circle.scrollRect = new Rectangle(0, 0, 200, 200);
- addChild(circle);
- circle.addEventListener(MouseEvent.CLICK, clicked);
- function clicked(event:MouseEvent):void {
- var rect:Rectangle = event.target.scrollRect;
- rect.y -= 5;
- event.target.scrollRect = rect;
- }
- </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 ">
- 表示オブジェクトのステージです。</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 ">
- 表示オブジェクトのステージです。Flash ランタイムアプリケーションには Stage オブジェクトが 1 つだけあります。例えば、複数の表示オブジェクトを作成して表示リストにロードすることができます。その場合、(ロードされた SWF ファイルに表示オブジェクトが属する場合であっても)それぞれの表示オブジェクトの <codeph class="+ topic/ph pr-d/codeph ">stage</codeph> プロパティは、同じ Stage オブジェクトを参照します。
-
- <p class="- topic/p ">表示オブジェクトが表示リストに追加されていない場合、<codeph class="+ topic/ph pr-d/codeph ">stage</codeph> プロパティは <codeph class="+ topic/ph pr-d/codeph ">null</codeph> に設定されます。</p>
-
- </apiDesc><example conref="examples\DisplayObject.stage.1.as" class="- topic/example "> 次のコードは、2 つの TextField オブジェクトを作成し、Stage オブジェクトの <codeph class="+ topic/ph pr-d/codeph ">width</codeph> プロパティを使用して、テキストフィールドを配置します。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- import flash.text.TextField;
- var tf1:TextField = new TextField();
- tf1.text = "Text Field 1";
- tf1.border = true;
- tf1.x = 10;
- addChild(tf1);
- tf1.width = tf1.stage.stageWidth / 2 - 10;
- var tf2:TextField = new TextField();
- tf2.text = "Text Field 2";
- tf2.border = true;
- tf2.x = tf1.x + tf1.width + 5;
- addChild(tf2);
- tf2.width = tf2.stage.stageWidth / 2 - 10;
- trace(stage.stageWidth);
- </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 ">
- 表示オブジェクトのマトリックス、カラー変換、ピクセル境界に関係するプロパティを持つオブジェクトです。</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 ">
- 表示オブジェクトのマトリックス、カラー変換、ピクセル境界に関係するプロパティを持つオブジェクトです。特定のプロパティつまり matrix、colorTransform、および 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 クラスの最初の部分で説明します。
-
- <p class="- topic/p ">変形オブジェクトの各プロパティは、それ自身がオブジェクトです。この概念は重要です。matrix オブジェクトまたは colorTransform オブジェクトの新しい値を設定する唯一の方法は、新しいオブジェクトを作成し、そのオブジェクトを transform.matrix プロパティまたは transform.colorTransform プロパティにコピーすることです。</p>
-
- <p class="- topic/p ">例えば、表示オブジェクトのマトリックスの <codeph class="+ topic/ph pr-d/codeph ">tx</codeph> 値を増やすには、次のようにして matrix オブジェクト全体のコピーを作成した後、新しいオブジェクトを変形オブジェクトの matrix プロパティにコピーする必要があります。</p>
-
- <pre xml:space="preserve" class="- topic/pre "><codeph class="+ topic/ph pr-d/codeph ">
- var myMatrix:Matrix = myDisplayObject.transform.matrix;
- myMatrix.tx += 10;
- myDisplayObject.transform.matrix = myMatrix;
- </codeph></pre>
-
- <p class="- topic/p "><codeph class="+ topic/ph pr-d/codeph ">tx</codeph> プロパティを直接設定することはできません。次のコードは <codeph class="+ topic/ph pr-d/codeph ">myDisplayObject</codeph> に影響を与えません。 </p>
-
- <pre xml:space="preserve" class="- topic/pre "><codeph class="+ topic/ph pr-d/codeph ">
- myDisplayObject.transform.matrix.tx += 10;
- </codeph></pre>
-
- <p class="- topic/p ">また、変形オブジェクト全体をコピーし、それを別の表示オブジェクトの transform プロパティに割り当てることもできます。例えば、次のコードでは、変形オブジェクト全体を <codeph class="+ topic/ph pr-d/codeph ">myOldDisplayObj</codeph> から <codeph class="+ topic/ph pr-d/codeph ">myNewDisplayObj</codeph> にコピーします。</p>
- <codeph class="+ topic/ph pr-d/codeph ">myNewDisplayObj.transform = myOldDisplayObj.transform;</codeph>
- <p class="- topic/p ">生成される表示オブジェクト <codeph class="+ topic/ph pr-d/codeph ">myNewDisplayObj</codeph> のマトリックス、カラー変換、ピクセル境界は、古い表示オブジェクト <codeph class="+ topic/ph pr-d/codeph ">myOldDisplayObj</codeph> と同じ値になります。</p>
-
- <p class="- topic/p ">テレビ用 AIR デバイスでは、ハードウェアアクセラレーションが使用可能な場合、これがカラー変換に自動的に使用されます。</p>
-
- </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> プロパティのプロパティ)が調整されます。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- import flash.display.Sprite;
- import flash.geom.ColorTransform;
- import flash.geom.Matrix;
- import flash.geom.Transform;
- import flash.events.MouseEvent;
- var square:Sprite = new Sprite();
- square.graphics.lineStyle(20, 0xFF2200);
- square.graphics.beginFill(0x0000DD);
- square.graphics.drawRect(0, 0, 100, 100);
- addChild(square);
- var resultColorTransform:ColorTransform = new ColorTransform();
- resultColorTransform.alphaMultiplier = 0.5;
- resultColorTransform.redOffset = 155;
- resultColorTransform.greenMultiplier = 0.5;
- var skewMatrix:Matrix = new Matrix(1, 1, 0, 1);
- square.addEventListener(MouseEvent.CLICK, transformer);
- function transformer(event:MouseEvent):void {
- var transformation:Transform = square.transform;
- var tempMatrix:Matrix = square.transform.matrix;
- tempMatrix.concat(skewMatrix);
- square.transform.colorTransform = resultColorTransform;
-
- square.transform.matrix = tempMatrix;
- }
- </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 ">
- 表示オブジェクトが可視かどうかを示します。</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 ">
- 表示オブジェクトが可視かどうかを示します。非可視の表示オブジェクトは無効になります。例えば、ある InteractiveObject インスタンスが <codeph class="+ topic/ph pr-d/codeph ">visible=false</codeph> に設定されている場合、これをクリックすることはできません。
-
- </apiDesc><example conref="examples\DisplayObject.visible.1.as" class="- topic/example "> 次のコードでは、Timer オブジェクトを使用して、表示オブジェクトの <codeph class="+ topic/ph pr-d/codeph ">visible</codeph> プロパティを定期的に変更する関数を呼び出して、点滅効果を達成します。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- import flash.text.TextField;
- import flash.utils.Timer;
- import flash.events.TimerEvent;
- var tf:TextField = new TextField();
- tf.text = "Hello.";
- addChild(tf);
- var tim:Timer = new Timer(250);
- tim.start();
- tim.addEventListener(TimerEvent.TIMER, blinker);
- function blinker(event:TimerEvent):void {
- tf.visible = !tf.visible;
- }
- </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 ">
- 表示オブジェクトの幅を示します(ピクセル単位)。</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 ">
- 表示オブジェクトの幅を示します(ピクセル単位)。この幅は、表示オブジェクトのコンテンツの境界に基づいて計算されます。次のコードに示すように、この <codeph class="+ topic/ph pr-d/codeph ">width</codeph> プロパティを設定すると、それに合わせて <codeph class="+ topic/ph pr-d/codeph ">scaleX</codeph> プロパティの値が調整されます。
-
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- var rect:Shape = new Shape();
- rect.graphics.beginFill(0xFF0000);
- rect.graphics.drawRect(0, 0, 100, 100);
- trace(rect.scaleX) // 1;
- rect.width = 200;
- trace(rect.scaleX) // 2;</codeblock>
-
- <p class="- topic/p ">TextField と Video オブジェクトを除いて、<codeph class="+ topic/ph pr-d/codeph ">width</codeph> を別の値に設定しようとしても、コンテンツのない表示オブジェクト(例えば、空のスプラインなど)の幅は 0 になります。</p>
-
- </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> プロパティを増加します。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- import flash.display.Sprite;
- import flash.events.MouseEvent;
- var square:Sprite = new Sprite();
- square.graphics.beginFill(0xFF0000);
- square.graphics.drawRect(0, 0, 100, 100);
- addChild(square);
- square.addEventListener(MouseEvent.CLICK, widen);
- function widen(event:MouseEvent):void {
- square.width += 10;
- }
- </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 ">
- 親 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 ">
- 親 DisplayObjectContainer のローカル座標を基準にした DisplayObject インスタンスの <i class="+ topic/ph hi-d/i ">x</i> 座標を示します。変形されている DisplayObjectContainer にオブジェクトが含まれる場合、そのオブジェクトの座標系は、それを囲む DisplayObjectContainer のローカル座標系になります。したがって、反時計回りに 90 度回転した DisplayObjectContainer の場合、その DisplayObjectContainer の子は、反時計回りに 90 度回転した座標系を継承します。オブジェクトの座標は、基準点の位置を参照します。
-
- </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 ミリ秒ごとに変更します。
- <codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
- import flash.display.Sprite;
- import flash.utils.Timer;
- import flash.events.TimerEvent;
- var circle:Sprite = new Sprite();
- circle.graphics.beginFill(0xFF0000);
- circle.graphics.drawCircle(100, 100, 100);
- addChild(circle);
- var tim:Timer = new Timer(50);
- tim.start();
- tim.addEventListener(TimerEvent.TIMER, bounce);
- var xInc:Number = 2;
- function bounce(event:TimerEvent):void {
- circle.x += xInc;
- if (circle.x > circle.width) {
- xInc = -2;
- }
- if (circle.x < 0) {
- xInc = 2;
- }
- }
- </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