This page was saved using jaction on 2006-09-04 8:34:14.
Address: http://flexdocs.kr/docs/flex2/langref/mx/effects/Zoom.html
Title: mx.effects.Zoom (Flex™ 2 레퍼런스 가이드)  •  Size: 60204
Packagemx.effects
Classpublic class Zoom
InheritanceZoom Inheritance TweenEffect Inheritance Effect Inheritance EventDispatcher Inheritance Object

Zoom effect는, 중심점을 기준에 object를 확대 또는 축소합니다.

시스템 폰트를 사용해 렌더링 된 텍스트에 Zoom effect를 적용하면, Flex 에서는 정수 포인트 크기 단위로 텍스트를 확대·축소합니다. Zoom effect를 텍스트에 적용할 경우에 포함(Embed)되어 있는 폰트를 사용할 필요는 없습니다만, 포함(Embed)되어 있는 폰트에 적용하면 Zoom 가 보다 순조롭게 됩니다.

메모:Container.autoLayout property가 false 의 경우, Zoom effect는 기능하지 않습니다.

MXML 문장구조법expandedMXML 문장구조법의 비표시

<mx:Zoom> 태그는, Super 클래스의 모든 태그 속성을 Inheritance해, 다음의 태그 속성을 추가합니다.

 <mx:Zoom id="ID" captureRollEvents="false|true" originX="계산된 값" originY="계산된 값" zoomWidthFrom="0.01" zoomWidthTo="1.0" zoomHeightFrom="0.01" zoomHeightTo="1.0" /> 

View the examples

See also

mx.effects.effectClasses.ZoomInstance
mx.managers.LayoutManager


Public property
 property정의
  captureRollEvents : Boolean
true 의 경우, 마우스가 이동되어 있지 않으면 Flex 는 rollOutrollOver 이벤트를 dispatch하지 않습니다.
Zoom
 InheritedclassName : String
"Fade" 등, effect 클래스의 이름입니다.
Effect
 Inheritedconstructor : Object
특정의 object 인스턴스의 클래스 object 또는 constructor    함수에의 참조입니다.
Object
 InheritedcustomFilter : EffectTargetFilter
effect를 재생하는 타겟을 특정하기 위해서, effect에 의해 사용되는 타입 EffectTargetFilter 의 custom 필터 object를 지정합니다.
Effect
 Inheritedduration : Number
effect의 계속 시간을 나타냅니다 (밀리 세컨드 단위).
Effect
 InheritedeasingFunction : Function = null
애니메이션의 이징 함수를 나타냅니다.
TweenEffect
 Inheritedfilter : String
effect의 타겟을 필터링 하는 알고리즘을 지정합니다.
Effect
 InheritedinstanceClass : Class
이 effect 클래스의 effect 인스턴스 클래스를 지정하는 Class 형의 object를 나타냅니다.
Effect
 InheritedisPlaying : Boolean
effect의 인스턴스중 한쪽이 현재 재생중의 경우에 true, 그렇지 않은 경우에 false 가 되는 읽기 전용(read-only) 플래그입니다.
Effect
  originX : Number
이 수치는, Canvas 컨테이너 등, 절대 배치를 지원(support)하는 컨테이너에 effect 타겟이 있는 경우에 줌 원점의 X 위치를 나타냅니다.
Zoom
  originY : Number
이 수치는, Canvas 컨테이너 등, 절대 배치를 지원(support)하는 컨테이너에 effect 타겟이 있는 경우에 줌 원점의 Y 위치를 나타냅니다.
Zoom
 Inheritedprototype : Object
[static] 클래스 또는 함수 object의 prototype object에의 참조입니다.
Object
 InheritedrelevantProperties : Array
필터링 실행시에 사용하는 property명의 배열을 나타냅니다.
Effect
 InheritedrelevantStyles : Array
필터링 실행시에 사용하는 스타일명의 배열을 나타냅니다.
Effect
 InheritedrepeatCount : int = 1
effect를 반복하는 회수를 나타냅니다.
Effect
 InheritedrepeatDelay : int = 0
effect를 반복하기 전의 대기 시간을 나타냅니다 (밀리 세컨드 단위).
Effect
 InheritedstartDelay : int = 0
effect를 개시하기 전의 대기 시간을 나타냅니다 (밀리 세컨드 단위).
Effect
 InheritedsuspendBackgroundProcessing : Boolean = false
true 의 경우, effect의 재생중에 모든 백그라운드 처리를 블록 합니다.
Effect
 Inheritedtarget : Object
이 effect가 적용되는 UIComponent object를 나타냅니다.
Effect
 Inheritedtargets : Array
effect의 타겟인 UIComponent object의 배열을 나타냅니다.
Effect
  zoomHeightFrom : Number
0.01 에서 1.0 의 퍼센트 표기로, 높이 줌 개시시의 배율을 나타내는 수치를 나타냅니다.
Zoom
  zoomHeightTo : Number
0.01 에서 1.0 의 퍼센트 표기로, 높이 줌 종료시의 배율을 나타내는 수치를 나타냅니다.
Zoom
  zoomWidthFrom : Number
0.01 에서 1.0 의 퍼센트 표기로, 폭줌 개시시의 배율을 나타내는 수치를 나타냅니다.
Zoom
  zoomWidthTo : Number
0.01 에서 1.0 의 퍼센트 표기로, 폭줌 종료시의 배율을 나타내는 수치를 나타냅니다.
Zoom
Public Methods
 Methods정의
  Zoom (target:Object = null)
constructor   .
Zoom
 InheritedaddEventListener (type:String , listener:Function , useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
event listener objects를 EventDispatcher object에 등록해, listener가 이벤트의 통지를 받도록(듯이) 합니다.
EventDispatcher
 InheritedcaptureStartValues ():void
effect의 타겟으로 두어 관련하는 property의 현재가를 capther 합니다.
Effect
 InheritedcreateInstance (target:Object = null):EffectInstance
1 개의 effect 인스턴스를 작성해, 그것을 초기화합니다.
Effect
 InheritedcreateInstances (targets:Array = null):Array
타겟 object의 배열을 취득해, 각 타겟으로 createInstance() Methods를 호출합니다.
Effect
 InheriteddispatchEvent (event:Event ):Boolean
이벤트를 event 플로우(flow)에 dispatch합니다.
EventDispatcher
 Inheritedend (effectInstance:EffectInstance = null):void
현재 재생중의 effect를 모두 중단해, 즉시 effect의 끝나에 점프 합니다.
Effect
 InheritedgetAffectedProperties ():Array
string의 배열을 돌려줍니다. 각 string는, 이 effect에 의해 변경되는 property의 이름입니다.
Effect
 InheritedhasEventListener (type:String ):Boolean
EventDispatcher object에, 특정의 event 타입에 대해서 등록된 listener가 있을지 어떨지를 확인합니다.
EventDispatcher
 InheritedhasOwnProperty (name:String ):Boolean
object로 지정된 property가 정의되고 있는지 어떤지를 나타냅니다.
Object
 InheritedisPrototypeOf (theClass:Object ):Boolean
Object 클래스의 인스턴스가, Parameters로서 지정된 object의 prototype 체인내에 있을지 어떨지를 나타냅니다.
Object
 Inheritedpause ():void
resume() Methods를 호출할 때까지, effect를 일시정지합니다.
Effect
 Inheritedplay (targets:Array = null, playReversedFromEnd:Boolean = false):Array
effect의 재생을 개시합니다.
Effect
 InheritedpropertyIsEnumerable (name:String ):Boolean
지정된 property가 존재해, 열거 가능한가 어떤가를 나타냅니다.
Object
 InheritedremoveEventListener (type:String , listener:Function , useCapture:Boolean = false):void
EventDispatcher object로부터 listener를 삭제합니다.
EventDispatcher
 Inheritedresume ():void
pause() Methods를 호출해, effect를 일시정지한 후, 재개시킵니다.
Effect
 Inheritedreverse ():void
effect가 현재 재생중의 경우에, effect의 현재 위치로부터 개시해, 역순서로 effect를 재생합니다.
Effect
 InheritedsetPropertyIsEnumerable (name:String , isEnum:Boolean = true):void
루프 처리에 대한 다이나믹 property의 가용성을 설정합니다.
Object
 InheritedtoString ():String
지정된 object의 string 표현을 돌려줍니다.
Object
 InheritedvalueOf ():Object
지정된 object의 원시적치를 돌려줍니다.
Object
 InheritedwillTrigger (type:String ):Boolean
지정된 event 타입에 대해, 이 EventDispatcher object 또는 그 조상에게 event listener가 등록되어 있는지 어떤지를 확인합니다.
EventDispatcher
Protected Methods
 Methods정의
 InheritedapplyValueToTarget (target:Object , property:String , value:* , props:Object ):void
effect 인프라스트럭쳐에 의해 내부적으로 사용됩니다.
Effect
 InheritedeffectEndHandler (event:EffectEvent ):void
effect 인스턴스의 재생 종료시에 불려 갑니다.
Effect
 InheritedeffectStartHandler (event:EffectEvent ):void
이 Methods는, effect 인스턴스의 재생 개시시에 불려 갑니다.
Effect
 InheritedfilterInstance (propChanges:Array , targ:Object ):Boolean
effect 인스턴스의 필터링에 필요한 논리를 결정합니다.
Effect
 InheritedgetValueFromTarget (target:Object , property:String ):*
타겟으로부터 property의 값을 취득하기 위해서 captureStartValues() 에 의해 불려 갑니다.
Effect
 InheritedinitInstance (instance:EffectInstance ):void
effect 인스턴스에 effect의 property를 복사합니다.
Effect
 InheritedtweenEventHandler (event:TweenEvent ):void
TweenEffect 로부터 TweenEvent 가 dispatch되었을 때에 불려 갑니다.
TweenEffect
이벤트
 이벤트일람정의
 InheritedeffectEnd effect의 재생 정지시 (effect의 재생 완료시, 또는 effect가 end() Methods의 호출에 의해 중단되었을 때)에 dispatch됩니다. Effect
 InheritedeffectStart effect의 재생 개시시에 dispatch됩니다. Effect
 InheritedtweenEnd tween effects 의 종료시에 dispatch됩니다. TweenEffect
 InheritedtweenStart onTweenUpdate() Methods의 최초의 호출해에 대응하는, tween effects 의 개시시에 dispatch됩니다. TweenEffect
 InheritedtweenUpdate tween effects 에 의해 타겟이 갱신될 때마다 dispatch됩니다. TweenEffect
property의 상세
captureRollEventsproperty
public var captureRollEvents:Boolean

true 의 경우, 마우스가 이동되어 있지 않으면 Flex 는 rollOutrollOver 이벤트를 dispatch하지 않습니다. Zoom effect를 사용해 타겟의 크기를 바꾸는 경우는, 이 property를 true 로 설정합니다.

예를 들어,rollOverEffect 로 Zoom effect를 방아쇠 해, 타겟의 크기를 축소한다고 합니다. 타겟이 축소해 마우스 포인터가 타겟상으로부터 빗나가면,rollOut event 및 대응하는 rollOutEffect 가 방아쇠 됩니다. captureRollEvents property를 true 로 설정하는 것에 의해, 마우스를 이동시켰을 경우를 제외해, Flex 가 rollOut 이벤트를 dispatch하지 않게 할 수 있습니다.

디폴트치false.

originXproperty 
public var originX:Number

이 수치는, Canvas 컨테이너 등, 절대 배치를 지원(support)하는 컨테이너에 effect 타겟이 있는 경우에 줌 원점의 X 위치를 나타냅니다. 줌 원점이란, Zoom effect가 중심점의 기준으로 하는 타겟상의 위치입니다.

값의 범위는 0 으로부터 타겟 컴퍼넌트의 폭이 됩니다.

디폴트치는 target.width / 2 로, 이것은, 타겟의 중심입니다.
originYproperty 
public var originY:Number

이 수치는, Canvas 컨테이너 등, 절대 배치를 지원(support)하는 컨테이너에 effect 타겟이 있는 경우에 줌 원점의 Y 위치를 나타냅니다. 줌 원점이란, Zoom effect가 중심점의 기준으로 하는 타겟상의 위치입니다.

값의 범위는 0 으로부터 타겟 컴퍼넌트의 높이가 됩니다.

디폴트치는 target.height / 2 로, 이것은, 타겟의 중심입니다.
zoomHeightFromproperty 
public var zoomHeightFrom:Number

0.01 에서 1.0 의 퍼센트 표기로, 높이 줌 개시시의 배율을 나타내는 수치를 나타냅니다. 디폴트치는 0.01 입니다. 이것은, 매우 작은 배율입니다.

zoomHeightToproperty 
public var zoomHeightTo:Number

0.01 에서 1.0 의 퍼센트 표기로, 높이 줌 종료시의 배율을 나타내는 수치를 나타냅니다. 디폴트치는 1.0 입니다. 이것은, object의 표준의 크기입니다.

zoomWidthFromproperty 
public var zoomWidthFrom:Number

0.01 에서 1.0 의 퍼센트 표기로, 폭줌 개시시의 배율을 나타내는 수치를 나타냅니다. 디폴트치는 0.01 입니다. 이것은, 매우 작은 배율입니다.

zoomWidthToproperty 
public var zoomWidthTo:Number

0.01 에서 1.0 의 퍼센트 표기로, 폭줌 종료시의 배율을 나타내는 수치를 나타냅니다. 디폴트치는 1.0 입니다. 이것은, object의 표준의 크기입니다.

constructor    의 상세
Zoom()constructor   
public 함수 Zoom(target:Object = null)

constructor   .

Parameters
target:Object (default = null) — 이 effect로 애니메이션화하는 object를 나타냅니다.
Examples
ZoomEffectExample
<? xml version="1.0" encoding="utf-8"? >
<! -- Simple example to demonstrate the Zoom effect.  -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">

    <mx:Script>
        <! [CDATA[        
            import flash.events.MouseEvent;
        
            public function doZoom(event:MouseEvent) :void {
                if (zoomAll.isPlaying) {
                    zoomAll.reverse();
                }
                else {
                    // If this is a ROLL_OUT event, play the effect backwards.  
                    // If this is a ROLL_OVER event, play the effect forwards.
                    zoomAll.play([event.target], event.type == MouseEvent.ROLL_OUT ?  true : false);
                }
            }
        ]]>    
    </mx:Script>

    <mx:Zoom id="zoomAll" zoomWidthTo="1" zoomHeightTo="1" zoomWidthFrom=". 5" zoomHeightFrom=". 5"  />
    
    <mx:Panel title="Zoom Effect Example" width="95%" height="95%" horizontalAlign="center"
        paddingTop="5" paddingLeft="10" paddingRight="10" paddingBottom="5">

        <mx:Text width="100%" color="blue"
            text="Move the mouse over the image to enlarge it.  Move the mouse off of the image to shrink it. "/>

        <mx:Image id="img"
            source="@Embed(source='assets/Nokia_6630.png')"
            scaleX=". 5" scaleY=". 5"
            rollOver="doZoom(event)"
            rollOut="doZoom(event)"/>

    </mx:Panel>
</mx:Application>






 

코멘트가 추가되었을 경우, 메일로 받기. | 코멘트 리포트

현재의 페이지: http://flexdocs.kr/docs/flex2/langref/mx/effects/Zoom.html