I have been testing Flex SWFs embedded in PDF files against Flash 
SWFs embedded in same using arbitrated script messaging.

When a frame seek command is sent from the PDF to the embedded Flash 
SWF and the Flash SWF has a web service connector present, the Flash 
movie correctly processes the seek message as being a direct client-
client message. When the same frame seek command is sent from the 
PDF to the embedded Flex SWF which has a web service present it 
makes a response back to the PDF, generating a status message. The 
message can be seen in Acrobat 6 Editor. An enormous delay is 
essentially the result when doing even a simple arbitrated command 
like setting a basic TextArea component's text property as each 
character in the command stream gets a response from the Flex SWF.

Flash SWFs don't have this problem. The delay also show up with 
Remote Object data services in Flex SWFs using AMF messaging. Also 
no problem with AMF messaging present in Flash SWFs.

You can see what I mean by tring the following PDF with Adobe Reader 
6.0 and the current Flash Player. (Windows Platform only)

http://24.71.76.197:8080/flex/soapExample.pdf

Play around with the Flash portion first. Notice everything works 
lickety split. Then try the Flex portion. It delays everything when 
messaging from the PDF buttons. The Soap services themselves are not 
affected. Only commands going from the PDF to the Flex SWF from the 
PDF command buttons.

Any insight here would be helpful. Also remember that the 
significant delay only happens in the Flex SWFs when data services 
are present in the file. Although there is a modest delay even 
without the data services. (Flex about a second) No problem with 
Flash at all, only about 3-4 milliseconds lag time)

Craig





Reply via email to