Multiple ExternalInterface function with the same name in IE8 / IE7

First I’d like to say that I left out IE6 because it’s a stupid browser and does not matter to me.

Recently I have been working on a html5 audio player. Obviously I need to provide a fallback for IE8 browser. But I did not want to redesign the whole player again in flash so the plan was to create a swf container that just plays music and gets commands from the current UI.

All went awesome, the swf totaled a whooping 1.77 kb and was receiving commands fine via ExternalInterface. Tested even in IE8 and worked fine from the first time. But then I decided to place multiple players on the page. Then all broke loose. Only one player worked. So I thought, and thank God I thought well, ExternalInterface does not allow multiple callbacks with the same name. So I passed the id that should be unique of the audio player container via FlashVars to the swf and within the Swf I created functions with ExternalInterface that had the ID appended to their namespaces.

Took a little time, but the story had a happy ending.

  • zellina
    March 2, 2015 at 10:42 pm

    Foals can get it from their mothers or their mothers’ milk. While other horses may get it from sharing needles used for other treatment or maintenance medications.

  • natickhouse
    March 26, 2015 at 7:22 pm

    I have been waiting for someone to share this post. This has actually made me think and I hope to read more. Thanks a lot for sharing with us.

  • Business Break
    June 1, 2015 at 10:21 pm

    You may post on the professional credentials for the blog owner. You could express it’s outstanding. Your blog experience can springboard your click through.

  • Forte School
    June 5, 2015 at 9:48 am

    Forte schools offer a FREE trial lessons for classes and some offer a Free Trial private lesson.

    June 6, 2015 at 9:11 am

    This post contain a lot of information about recent wheel of events.i hope this article will be helpful for the reader’s.thank you very much for sharing with us.

Leave a comment

Your email address will not be published

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

− 6 = 4

{"type":"main_options","images_arr":"'#ffffff'","enable_ajax":"off","soundcloud_apikey":"","bg_isparallax":"off","bg_slideshow_time":"0","bg_transition":"slidedown","site_url":"http:\/\/","theme_url":"http:\/\/\/wp-content\/themes\/qucreative\/","blur_ammount":"26","width_column":"50","width_section_bg":"","width_gap":"30","border_width":"0","border_color":"#ffffff","translate_leave_a_comment":"Leave a comment","translate_leave_a_comment_to":"Leave a comment to","is_customize_preview":"off","width_blur_margin":"30","gallery_w_thumbs_autoplay_videos":"off","enable_native_scrollbar":"on","content_enviroment_opacity":"30","menu_enviroment_opacity":"70"}