15 June 2007

Another ExternalInterface Bug - Affects ASP.NET Sites in IE6/7

Written by Richard Leggett ( Contact the author of this post )
Published on June 15th, 2007 @ 03:59:51 am, using 134 words, 520 views
Categories: Flash

There appears to be a bug with ExternalInterface when your Flash movie is inside a FORM tag, which is what ASP.NET does by default.

You will get a "null has no properties" type error because the JavaScript that ExternalInterface generates at runtime is unable to reference the Flash movie.

It appears to be due to IE not putting the form in the same place as other browsers' DOMs (specifically the window object).

Either way, the workaround is to take it out of the form, or if not possible you can try several other things such as this SWFObject fix. Worst case scenario is to reference the Flash movie using document.forms[0].moviename.

There are many solutions and some discussion in the livedocs.

I have another ExternalInterface bug listed here in a previous post.

Comments, Pingbacks:

Comment from: Marcelo Volmaro
Hi,

I've found this error a long time ago, and posted a solution you can use with swfobject, UFO or Adobe´s Active Content.


PermalinkPermalink 16/06/07 @ 12:23

Comments are closed for this post.

About

Richard Leggett is a Freelance RIA and Web Developer (download CV, skills/portfolio coming soon). He is co-author of Foundation Flash Applications for Mobile Devices (Friend of ED), an Adobe Community Expert and speaker at industry conferences and user groups.



July 2008
Mon Tue Wed Thu Fri Sat Sun
 << <   > >>
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

Categories

Miscellany

XML Feeds

Information

Contact the admin  /   b2evo template by Two18 Media