Flash'In'App - ESFlashView - Delegate Methods

flashView:wasDraggedFrom:to:

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

– (void) flashView:(ESFlashView *)flashView wasDraggedFrom:(NSPoint *)fromPoint to:(NSPoint *)toPoint;

Parameters

flashView – flash view that sent the message

fromPoint – start point for drag

toPoint – final point for drag

Discussions  

This is the method, which you should use to perform dragging of the whole movie window when user drags it. You can see the sample of how this method works in our GUI sample.

 

flashView:callFunction:

This is the method, which informs the delegate that SWF file performed ExternalInterface.call.

– (id) flashView:(ESFlashView *)flashView callFunction:(NSString *)xmlString;

Parameters

xmlString - function name and arguments are represented as <invoke name="asFunc"><arguments><string>Hello from Cocoa</string></arguments></invoke>
Return Value: Since Flash'In'App 2.5, you should return object (e.g. NSString), not xml string as it was before
NOTE: if you implement flashView:callFunction: and flashView:callFunction:withArguments: methods, only second one will be called.

 

flashView:callFunction:withArguments:

This method informs the delegate that swf file performed ExternalInterface.call.

- (id) flashView:(ESFlashView *)flashView callFunction:(NSString *)aName withArguments:(NSArray *)anArguments;

Parameters
aName - function name that was called
anArguments - arguments of function call

Return value

Since Flash'In'App 2.5, you should return object (e.g. NSString), not xml string as it was before.

NOTE: if you implement flashView:callFunction: and flashView:callFunction:withArguments: methods, only second one will be called.

 

flashView:invokeFSCommand:withArguments:

This message will be sent to delegate when movie calls an FSCommand.

– (id) flashView:(ESFlashView *)flashView invokeFSCommand:(NSString *)commandName withArguments:(NSArray *)arguments;

Parameters

flashView – flash view that sent the message

commandName – command name

arguments – an array of arguments that can be used

Return Value

The object which will be sent to the plugin as return value of FSCommand().

 

flashView:didDisplayRect:

This message will be sent to delegate when ESFlashView changes visible rect of movie.

– (void) flashView:(ESFlashView *)flashView didDisplayRect:(NPSignedRect)aDisplayedRect;

Parameters

flashView – flash view that sent the message

aDisplayedRect – new visible rectangle


See also: