ESFlashZoomPreview

Inherits fromNSView : NSResponder : NSObject
FrameworkFlashInApp.framework
Declared in ESFlashZoomPreview.h
Companion guideFlash’In’App Programming Guide 
Required system version Mac OS X 10.4 and higher

 

Class description of ESFlashZoomPreview


ESFlashZoomPreview is the class, which displays original SWF size and current visible area size.

 

Tasks of ESFlashZoomPreview


Getting and Setting ESFlashView

Getting and Setting Delegate

Setting display attributes

Displaying

Examing and changing current preview state

Dragging behaviour

 

Instance Methods of ESFlashZoomPreview


setFlashView:

Sets ESFlashView, whose value is taken to display image and size.

–(void) setFlashView:(ESFlashView *)value;

Parameter

value – ESFlashView, from whose image and size is taken.

 

flashView

Gets ESFlashView, whose value is taken to display image and size.

– (ESFlashView *) flashView;

Return Value

ESFlashView, from which image and size is taken.

 

setDelegate:

Sets the receiver’s delegate to a given object or removes an existing delegate.

 – (void) setDelegate:(id)value;

Parameters

value – the delegate for the receiver. Pass nil to remove an existing delegate.

Discussion

An ESFlashZoomPreview object’s delegate is informed about dragging.

 

delegate

Returns the receiver’s delegate.  

– (id) delegate;

Return Value

The receiver’s delegate, or nil if it doesn’t have a delegate.

 

setImageInterpolation:

Sets the interpolation, which will be applied while resizing/drawing image.

– (void)setImageInterpolation:(NSImageInterpolation)value;

Parameters

value – A constant specifying the image-interpolation behavior. The NSImageInterpolation constants are described in NSImageInterpolation.

 

setUpdateSpeed:

Sets image refresh rate.

– (void)setUpdateSpeed:(int)value;

Parameters:

value – sec * 20

 

updateSpeed

Returns image refresh rate.

– (int)updateSpeed;

Return Value

Image refresh rate

 

updateZoomView

Updates movie zoom preview.

– (void)updateZoomView;

 

clearZoomView

Clears movie zoom preview.

– (void)clearZoomView;

 

isStarted

Checks if zoom preview is running.

 – (BOOL)isStarted;

Return value

The method returns YES when the zoom preview is started, otherwise NO.

 

restart
The restart command restarts zoom preview drawing.
– (void)restart;
 

stop

The stop command stops zoom preview drawing.

– (void)stop;

Discussion

If stop method is applied, then zoom preview will display the last image, which was taken. In order to clear it, please, use stopAndClear method.

 

stopAndClear

The stopAndClear command stops and clears the preview window.

– (void)stopAndClear;

 

Delegate Methods of ESFlashZoomPreview


flashZoomPreview:didChangeZoomRectTo:

This message will be sent to delegate when dragging is active.

– (void))flashZoomPreview:(ESFlashZoomPreview *)zoomView didChangeZoomRectTo:(NSRect)newRect

Parameters

zoomView – zoom preview that sent the message

newRect – new zoom rectangle that was set to corresponding ESFlashView.