Questions tagged [externalinterface]

The ActionScript ExternalInterface class enables communication between ActionScript and the SWF container. For example, ExternalInterface can be used to call an ActionScript function in Flash, from JavaScript in an HTML page. This is often use for sending variables from a container HTML page to an SWF file.

The ActionScript ExternalInterface class enables communication between ActionScript and the SWF container. For example, ExternalInterface can be used to call an ActionScript function in Flash, from JavaScript in an HTML page. This is often use for sending variables from a container HTML page to an SWF file.

308 questions
4
votes
1 answer

How to call a FileReference.browse() from JavaScript?

I am trying to call the browse() method of the FileReference class from JavaScript (a user clicks on a text that uses the ExternalInterface to call a method in Flash). Unfortunately, I receive an error that tells me it has to be a direct action of…
Rudy
  • 259
  • 1
  • 13
4
votes
1 answer

How to tell when ExternalInterface is available when hiding and showing a swf

I've got a swf with some js callbacks registered using ExternalInterface. I hide and show the swf repeatedly, and I've learned that ExternalInterface is not available when the swf is hidden. I also noticed that the swfs constructor is called every…
Rob Allsopp
  • 3,309
  • 5
  • 34
  • 53
4
votes
2 answers

Flash AS2.0 and JavaScript/jQuery (ExternalInterface) Communication

Im trying to use JS to send data to my Flash AS2.0 music player with ExternalInterface, except there are no good tutorials or guides on ExternalInterface that I can find. I want to be able to change the current song in the player by clicking a…
abysslogic
  • 321
  • 3
  • 6
  • 15
4
votes
1 answer

Using an Actionscript external interface call to initiate a jQuery function on a HTML page

I have a project building an expandable web banner and I'm having trouble with using Flash's external interface call. What I'm trying to do is initiate a jQuery function on my HTML page by clicking a button inside of my .swf banner. The jQuery…
4
votes
2 answers

How to list available callbacks exposed by a flash element

Is there a way to query an embedded flash element to determine the available methods that can be executed on it via JavaScript? Edit: It appears that in IE it's as simple as for ( i in flashNode ) { alert(i); } After much clicking, they will…
Justin Johnson
  • 30,978
  • 7
  • 65
  • 89
3
votes
2 answers

External interface and Internet Explorer 9 issue

Boy-oh-boy do I hate external interface. I have a video player that utilizes external interface to control the flash object and to allow the flash object to pass messages to the same javascript. For a time it worked well in all browsers. Then a…
3
votes
1 answer

Flash ExternalInterface sniffer

I want to see all the calls that a Flash object is making to the Javascript on my browser. Is there an ExternalInterface sniffer?
Dans
3
votes
2 answers

Adobe ExternalInterface not working in IE9

I am calling an Actionscript function from JavaScript and it works in all browsers except for IE9. I narrowed it down to the js function that retrieves the movie object: