I'm developing an aplication in Flex which mainly contains a
user interface.I have already a Flash swf file which was embedded
in a html page where there was the same user interface, and the
interface in ActionScript.Now, I want to embed the swf developed in
Flash in the aplication in Flex, and I want to send commands (using
Flex to the swf embedded.
I have read in the documentation, that there is a class
called Local Connection to communicate two SWFs but I think that
this is in the case when the two SWFs are running in different
applications, for example one in a html page and the other in a
No, Local Connection is almost certainly the best solution.
It is fine for swf's in the same browser. It is even fine for swfs
in the same application, and is in fact the only way to control a
Flash 8(AS2) swf from a Flex 2(AS3) app.
However, if the Flash swf is already set up to be scriptable,
then perhaps ExternalInterface would be the best. It lets you
Do you mean that I can use ExternalInterface in the
communication with flex?The Flash swf is prepared to communicate
functions in the flash swf (AS2) in the same way as I call them