ruffle icon indicating copy to clipboard operation
ruffle copied to clipboard

Actionscript Tracking: flash.external.ExternalInterface

Open Dinnerbone opened this issue 5 years ago • 2 comments

This is the tracking issue for flash.external.ExternalInterface in AVM1. We will check off each item of progress as appropriate, and fill in any relevant or missing information as we continue development of Ruffle.

Legend

Each checkbox is independent of another. It's entirely possible for something to be tested but not exist yet, or for us to believe that it's completely functional but we haven't made enough tests to prove it.

"Property Exists"

This means the item exists, but may not necessarily be fully implemented.

"Has Test Coverage"

This means that we believe that we have a good test coverage of this item, regardless of if those tests pass. It's okay to have tests available but not implement the item yet.

"Completely Functional"

This means we believe that the item is completely implemented, and no more work needs to be done towards making it functional.

flash.external.ExternalInterface

Static Properties

available : Boolean

  • [x] Property Exists
  • [x] Has Test Coverage
  • [x] Completely Functional

Static Methods

addCallback(methodName, instance, method)

  • [x] Property Exists
  • [x] Has Test Coverage
  • [x] Completely Functional

call(methodName, parameter1)

  • [x] Property Exists
  • [x] Has Test Coverage
  • [x] Completely Functional

Methods

_addCallback()

  • [ ] Property Exists
  • [ ] Has Test Coverage
  • [ ] Completely Functional

Dinnerbone avatar Jan 11 '20 22:01 Dinnerbone

How do I get addCallback working in the js? I tried document.getElementById("rufflePlayer").asFunctionName(param); but that doesn't work and I get an error saying the function doesn't exist. @Dinnerbone @Herschel

Aprimez avatar Sep 03 '22 21:09 Aprimez

you must use the ID of the swf itself, not rufflePlayer element.

ROBERT-MCDOWELL avatar Sep 04 '22 00:09 ROBERT-MCDOWELL