This project is archived and is in readonly mode.

#767 ✓wontfix
synax

Swiff: ExternalInterface callbacks not attached to SWF in IE

Reported by synax | October 13th, 2009 @ 07:30 PM | in 1.3.0 rc2 (closed)

ExternalInterface.addCallback() doesn't seem to work in IE.

window.addEvent('domready', function() {
  var swf = new Swiff('path/to/swf', {
    id: 'swiff',
    callBacks: {
      load: alert(this.myASCallback); // returns 'undefined' in IE
    }
  });
});
// buried inside an AS3 class
if( ExternalInterface.available ) {
  ExternalInterface.addCallback('myASCallback', function( whatever:String ):void
  {
    trace('myASCallback', whatever);
  });

  ExternalInterface.call(this.root.loaderInfo.parameters['load']);
}

The JavaScript callback ('load' in this example) will be executed, but the ActionScript callback will not be.

Comments and changes to this ticket

  • fakedarren

    fakedarren February 8th, 2010 @ 01:58 PM

    • State changed from “new” to “hold”
    • Assigned user set to “fakedarren”
    • Milestone changed from 2.0 to 1.3.0 rc2

    I'm afraid I am putting all Swiff issues on hold until we know whether we will be supporting Swiff in future releases.

    We know that whilst Swiff does actually work we need to be much more clear in our documentation. I believe our docs pages are actually incorrect. It's the way the callbacks are defined in the AS3 which is the problem, I believe.

  • fakedarren

    fakedarren February 8th, 2010 @ 01:58 PM

    Oh and sorry it took so long to get a response :D

  • Christoph Pojer

    Christoph Pojer November 9th, 2010 @ 07:25 PM

    • State changed from “hold” to “wontfix”
    • Milestone order changed from “0” to “0”

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket

Pages