0 Replies Latest reply: Sep 18, 2009 5:35 PM by DavidSalahi RSS

    Cant' Call Flash ExternalInterface in SWFs Embedded in Dreamweaver

    DavidSalahi Community Member

      After a frustrating day I've learned that the way that Dreamweaver embeds Flash files into HTML pages breaks the ability to use the ActionScript ExternalInterface language feature. This is typically used for communicating between JavaScript on the page and the ActionScript inside the SWF.

       

      The correct way to embed a SWF file in this case is to use the embedding code generated by either FlashBuilder (nee FlexBuilder) or Flash's Publish menu option. Each of the three programs has a different way of generating the embed code and only FlashBuilder and Flash generate it correctly for use with ExternalInterface.

       

      For more details, read this thread in the ActionScript forum:

      http://forums.adobe.com/message/2259236#2259236

       

      David Salahi