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
0
votes
3 answers

Javascript Global Keyboard Handling, not hearing A-Z Keys?

I am trying to use Javascript to intercept keyboard events, so I can do CMD-W for "close-window" and whatnot, inside a Flash application, so the Browser doesn't get to use them. Well, I am able to listen for ALT, CTRL, and CMD onKeyDown/onKeyPress…
Lance
  • 75,200
  • 93
  • 289
  • 503
0
votes
1 answer

ExternalInterface problems with UnrealScript

i'm trying to call a function in UnrealScript through ActionScript using ExternalInterface.call but for some reason it wont work when i test it. the actionscript: this.onRollOver =…
0
votes
1 answer

Error 2060 occured in Chrome and FireFox but not IE when calling ExternalInterface.addCallBack()

I search almost the internet but not find the solution. I just use ExternalInterface.addCallBack() in AS3, and it throws exception when I loaded this swf by Chrome or FireFox. But it's ok with IE. The code I used( the last example in this AS3…
Zachary
  • 127
  • 1
  • 2
  • 15
0
votes
1 answer

Flash object function is undefined in my JavaScript

I've an asp.net website, where i have a flash object embedded. Flash object have some functions registered via ExternalInterface, so it should be accessible from JavaScript. And they are, but only when i call it when site completely loaded and i…
igorGIS
  • 1,888
  • 4
  • 27
  • 41
0
votes
0 answers

Calling a function on swf in facebook from javascript

I have a game on facebook which is talking to its javascript container. I am using ExternalInterface to pass parameters to the JS - this is working flawlessly. The problem starts when I want to pass data to the SWF - when running the game outside of…
Luoruize
  • 579
  • 2
  • 7
  • 25
0
votes
1 answer

swfobject.embedswf ExternalInterface.addCallback not working

i am working with JS and AS3 to get default mic. below is my html code js on head $(document).ready(function(){ $("#setupMic").click(function() { try{ document.getElementById('test').setupMic(); } catch(err) { …
abduIntegral
  • 521
  • 4
  • 7
  • 21
0
votes
1 answer

jquery flash externalinterface

I'm a quiet despaired by now. I'm trying like many others here to get the externalinterface thing to work with my page. It doesn't matter what I do or how I change the code in a correct way, I'm always getting the 'has no method' report from firefox…
Peter
  • 13
  • 3
0
votes
1 answer

Facebook App Error Showing Up For One User But Not Others

I have a Flash app set up in a Facebook canvas and it's using ExternalInterface to call a JavaScript function, then calling a Flash function from JavaScript when the first function completes: Flash objects & vars: this.dBug.text += "\ngetting user…
Eric
  • 2,061
  • 8
  • 28
  • 37
0
votes
2 answers

ExternalInterface not working in AS3 with Flash 11

I'm trying to create a button which will close a flash overlay using javascript and actionscript. I have found on many websites to use ExternalInterface however I cannot seem to get it to work. Any ideas? Flash AS: import…
Stefan Dunn
  • 5,363
  • 7
  • 48
  • 84
0
votes
1 answer

File dialog is not showing from flex function

I am trying to execute flex function from javascript with ExternalInterface and addCallback:
croppio.com
  • 1,823
  • 5
  • 28
  • 44
0
votes
1 answer

My ActionScript's ExternalInterface callback function isn't going through. How can I debug it?

Help, please? It appears that my callback function isn't being called...back. I'm using jQuery, and Flash 8. To access the Flash object, I'm using the jquery swfobject plugin, c.f. (http://jquery.thewikies.com/swfobject/examples). If you think that…
Zack Burt
  • 8,257
  • 10
  • 53
  • 81
0
votes
1 answer

Trying to register ExternalInterface.addCallback() in swf

I am not a flash developer. I am trying to wire up communication from javascript to a .swf file. I found here and other places that the simplest method was to use ExternalInterface.addCallback(). I have used the above link as well as the official…
davehale23
  • 4,374
  • 2
  • 27
  • 40
0
votes
0 answers

AIR Embeded SWF says it's a function

I am working on an AIR HTML app that needs to display a live stream from a media server on the localhost. My colleague created a Flash app for me that connects to the stream and displays the video and used ExternalInterface.addCallback to expose the…
Adrian
  • 1,370
  • 11
  • 21
0
votes
1 answer

Handle ExternalInterface Call, comming from local swf file, in Adobe Air 3.4 Actionscript 3 application

So We got a playlist with various swf files, some old as2 animations, some newer. We download them to a local folder, and can play them fullscreen. all with one AIR (actionscript) application. Now we know that in the newer files there are…
Daanvl
  • 608
  • 1
  • 9
  • 24
0
votes
1 answer

ExternalInterface as3 and ajax (jQuery) not working in IE

this part of code works in all browsers but not in IE. Can you help me fix this? function getData(userId, instrumentId, minStep) { alert(1); // worked! console.log(userId, instrumentId, minStep); $.ajax({ type: "POST", …