1 Reply Latest reply on Jun 8, 2007 6:47 PM by peterent

    Flex - Flash Integration

    oscar7878 Level 1

      I am working on a Flex project that loads dynamicaly a swf file (flash 8 / actionscript 2). I need Flex listening events dispatrched from flash.
      Is that posible?
      I read about the LocalConnection class but this looks like is used to communicate diferent swf files in the same html documments.

      Any ideas will be very apreciated.


        • 1. Re: Flex - Flash Integration
          peterent Level 2
          LocalConnection is the way to go. It is for SWF-to-SWF communication, but ActionScript 2 SWFs loaded into Flash Player 9 occupy a different virtual space than ActionScript 3 SWFs. So you need LocalConnectiton to get them talking.

          If possible, upgrade to Flash CS3 and you'll have ActionScript 3 SWFs which can be loaded into the same virtual space.

          See my blog for details (search LocalConnection): weblogs.macromedia.com/pent