Adobe Flash ExternalInterface issues with Internet Explorer


Hits: 4696  

I was working for HTML5 Audio.js Player… I really like calling ExternalInterface when using SWFObject on Windows XP IE 8. You can’t use an actionscript callback for a certain set of keywords (“play”, “stop”, “tags”, “item”, “length” etc.) will break in IE and cause a javascript error.

Object doesn’t support this property or method

public function audiojs():void {
Security.allowDomain(“*”);

this.playerInstance = root.loaderInfo.parameters.playerInstance+’.’;

ExternalInterface.addCallback(‘init’, init);
ExternalInterface.addCallback(‘load’, load);
ExternalInterface.addCallback(‘playPause’, playPause);
ExternalInterface.addCallback(‘pplay‘, play);
ExternalInterface.addCallback(‘ppause‘, pause);
ExternalInterface.addCallback(‘skipTo’, skipTo);
ExternalInterface.addCallback(‘setVolume’, setVolume);

ExternalInterface.call(this.playerInstance+’loadStarted’);
}

Audio.js
IE doesn’t allow a method named play() to be exposed through ExternalInterface, so lets go with pplay().
Use ppause() for consistency with pplay(), even though it isn’t really required.

Avoid common names like play & pause when using ExternalInterface Call. 😉

Published by

Sandeep Verma

I’m an Entrepreneur. I’m proud to work as Blogger, LAMP Programmer, Linux Admin, Web Consultant, Cloud Manager, Apps Developer, Searcher. Concentrate > Observe > Imagine > Launch

18 thoughts on “Adobe Flash ExternalInterface issues with Internet Explorer”

  1. May I just say what a relief to find somebody who truly understands what
    they’re discussing online. You definitely know how to
    bring a problem to light and make it important.
    More people should check this out and understand this side of your story.
    I can’t believe you aren’t more popular since you certainly
    have the gift.

  2. Everything is very open with a clear description of the challenges.
    It was truly informative. Your site is very helpful.
    Thank you for sharing!

  3. Fantastic goods from you, man. I’ve take into accout your stuff prior to
    and you are simply too great. I actually like what you’ve bought here, certainly like what you are stating and the way
    by which you are saying it. You make it entertaining and you continue to care for
    to stay it sensible. I can not wait to read much more from you.

    That is really a terrific site.

  4. It’s truly very difficult in this full of activity life to listen news on TV, so I just
    use internet for that purpose, and take the latest information.

  5. Simply desire to say your article is as surprising. The clarity in your put up is just nice and i can suppose you’re knowledgeable in this subject.
    Fine together with your permission allow me to clutch your RSS
    feed to stay up to date with drawing close post. Thanks one
    million and please keep up the rewarding work.

  6. I do not even know how I finished up here, but I believed this publish was once
    great. I don’t recognise who you might be however certainly you are going to a
    famous blogger in case you aren’t already. Cheers!

  7. Thank you for the good writeup. It in fact was a amusement account it.

    Look advanced to far added agreeable from you! By the way, how can we
    communicate?

  8. Link exchange is nothing else however it is just placing the other person’s web site link on your page at proper place and other person will also
    do same in support of you.

Leave a Reply

Your email address will not be published.

*