Flash ExternalInterface gotcha

If you are using the Flash externalInterface class to communicate with the containing web page, there is a little snippet that may cause you lots of grief. When you embed the swf using Dreamweaver it inserts both the id and name parameters in the object tag. If you leave it ‘as is’ the externalInterface won’t work with the example javascript. Just take out the name= parameter and leave the id= one and all should be well.


About this entry