| Package | mx.effects |
| Class | public class Parallel |
| Inheritance | Parallel CompositeEffect Effect EventDispatcher Object |
MXML 에서는 다음의 예의 같게 Paralell effect를 작성할 수 있습니다.
<mx:Parallel id="WipeRightUp">
<mx:children>
<mx:WipeRight duration="1000"/>
<mx:WipeUp duration="1000"/>
</mx:children>
</mx:Parallel>
<mx:VBox id="myBox" hideEffect="{WipeRightUp}" >
<mx:TextArea id="aTextArea" text="hello"/>
</mx:VBox>
<mx:children> 태그는 옵션입니다.
통상, ActionScript 에서의 Parallel effect의 개시는 다음의 5 개의 순서로 실시합니다.
myFadeEffect = new mx.effects.Fade(target);
duration 등, 개개의 effect object의 property를 설정합니다. myParallelEffect = new mx.effects.Parallel();
addChild() Methods를 다음의 예의 같게 호출합니다.
myParallelEffect.addChild(myFadeEffect);
play() Methods를 다음의 예의 같게 호출합니다.
myParallelEffect.play();
MXML 문장구조법의 비표시
<mx:Parallel> 태그는 Super 클래스의 모든 태그 속성을 Inheritance해, 다음의 태그 속성을 추가합니다.
<mx:Parallel id="식별자"> <mx:children> <! -- child effect 태그를 지정 --> </mx:children> </mx:Parallel>
See also
| Methods | 정의 | ||
|---|---|---|---|
| Parallel (target:Object = null)
constructor .
| Parallel | ||
![]() | addChild (childEffect:Effect ):void
새로운 child effect를, 이 조합한 effect에 추가합니다.
| CompositeEffect | |
![]() | addEventListener (type:String , listener:Function , useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
event listener objects를 EventDispatcher object에 등록해, listener가 이벤트의 통지를 받도록(듯이) 합니다.
| EventDispatcher | |
![]() | captureStartValues ():void
effect의 타겟으로 두어 관련하는 property의 현재가를 capther 합니다.
| Effect | |
![]() | createInstance (target:Object = null):EffectInstance
1 개의 effect 인스턴스를 작성해, 그것을 초기화합니다.
| Effect | |
![]() | createInstances (targets:Array = null):Array
타겟 object의 배열을 취득해, 각 타겟으로
createInstance() Methods를 호출합니다. | Effect | |
![]() | dispatchEvent (event:Event ):Boolean
이벤트를 event 플로우(flow)에 dispatch합니다.
| EventDispatcher | |
![]() | end (effectInstance:EffectInstance = null):void
현재 재생중의 effect를 모두 중단해, 즉시 effect의 끝나에 점프 합니다.
| Effect | |
![]() | getAffectedProperties ():Array
string의 배열을 돌려줍니다. 각 string는, 이 effect에 의해 변경되는 property의 이름입니다.
| Effect | |
![]() | hasEventListener (type:String ):Boolean
EventDispatcher object에, 특정의 event 타입에 대해서 등록된 listener가 있을지 어떨지를 확인합니다.
| EventDispatcher | |
![]() | hasOwnProperty (name:String ):Boolean
object로 지정된 property가 정의되고 있는지 어떤지를 나타냅니다.
| Object | |
![]() | isPrototypeOf (theClass:Object ):Boolean
Object 클래스의 인스턴스가, Parameters로서 지정된 object의 prototype 체인내에 있을지 어떨지를 나타냅니다.
| Object | |
![]() | pause ():void
resume() Methods를 호출할 때까지, effect를 일시정지합니다. | Effect | |
![]() | play (targets:Array = null, playReversedFromEnd:Boolean = false):Array
effect의 재생을 개시합니다.
| Effect | |
![]() | propertyIsEnumerable (name:String ):Boolean
지정된 property가 존재해, 열거 가능한가 어떤가를 나타냅니다.
| Object | |
![]() | removeEventListener (type:String , listener:Function , useCapture:Boolean = false):void
EventDispatcher object로부터 listener를 삭제합니다.
| EventDispatcher | |
![]() | resume ():void
pause() Methods를 호출해, effect를 일시정지한 후, 재개시킵니다. | Effect | |
![]() | reverse ():void
effect가 현재 재생중의 경우에, effect의 현재 위치로부터 개시해, 역순서로 effect를 재생합니다.
| Effect | |
![]() | setPropertyIsEnumerable (name:String , isEnum:Boolean = true):void
루프 처리에 대한 다이나믹 property의 가용성을 설정합니다.
| Object | |
![]() | toString ():String
지정된 object의 string 표현을 돌려줍니다.
| Object | |
![]() | valueOf ():Object
지정된 object의 원시적치를 돌려줍니다.
| Object | |
![]() | willTrigger (type:String ):Boolean
지정된 event 타입에 대해, 이 EventDispatcher object 또는 그 조상에게 event listener가 등록되어 있는지 어떤지를 확인합니다.
| EventDispatcher | |
| Parallel | () | constructor |
public 함수 Parallel(target:Object = null)constructor .
Parameterstarget:Object (default = null) — Parallel effect의 경우, 이 인수는 무시됩니다. 이 Parameters는, 다른 종류의 effect와의 일관성을 유지하는 목적으로 준비되어 있습니다.
|
<? xml version="1.0"? >
<! -- Simple example to demonstrate the Parallel effect. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Parallel id="expand" target="{img}">
<mx:Move xTo="{canvas.width/2 - 50}" yTo="{canvas.height/2 - 100}"/>
<mx:Resize widthTo="100" heightTo="200"/>
</mx:Parallel>
<mx:Parallel id="contract" target="{img}">
<mx:Move xTo="20" yTo="20"/>
<mx:Resize widthTo="30" heightTo="60"/>
</mx:Parallel>
<mx:Panel title="Parallel Effect Example" width="100%" height="100%"
paddingTop="10" paddingLeft="10" paddingRight="10" paddingBottom="10">
<mx:Text width="100%" color="blue"
text="Use the Button controls to move and resize the phone image in parallel. "/>
<mx:Canvas id="canvas" width="100%" height="100%">
<mx:Image id="img" x="20" y="20" width="30" height="60"
source="@Embed(source='assets/Nokia_6630.png')"/>
</mx:Canvas>
<mx:ControlBar>
<mx:Button label="Expand" click="expand.end(); expand.play();"/>
<mx:Button label="Contract" click="contract.end(); contract.play();"/>
</mx:ControlBar>
</mx:Panel>
</mx:Application>
코멘트가 추가되었을 경우, 메일로 받기. | 코멘트 리포트
현재의 페이지: http://flexdocs.kr/docs/flex2/langref/mx/effects/Parallel.html