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
1 answer

Flash - ExternalInterface calling a JavaScript function inside an AMD/RequireJS module

Is there any way for Flash's ActionScript3 to communicate with a JavaScript function defined inside an AMD module - ie. not directly exposed to the global scope?
gsklee
  • 4,774
  • 4
  • 39
  • 55
0
votes
5 answers

ExternalInterface.call("window.location.host.toString")

I wrote a flex application that get the host string from the browser using this code ExternalInterface.call("window.location.host.toString") This line of code work prefectally to get the host string in both Firefox and Opera. However, when using…
AAA
0
votes
1 answer

AS3 File Reference from javascript

Is it possible to use Actionscript 3 file reference from javascript. I need to code an application that will use javascript to call the browse method of the fileReference. I wanted to be sure this is possible before I put too much time into the…
james
  • 2,595
  • 9
  • 43
  • 70
0
votes
2 answers

A way to synchronize data between an external device and a database?

In the application I am designing, I have to communicate with a device and store a history of data readings in a database. The device is essentially a sensor that spits out numbers via the serial port. The user end of the application is a…
Goro
  • 9,919
  • 22
  • 74
  • 108
0
votes
1 answer

Unknown error when trying to call flash method from javascript

I have the following callback: ExternalInterface.addCallback("wasCalledFromJS", callFromJavaScript); which is implemented like this: public function callFromJavaScript(dir:String):void { try { scriptName = dir.toString(); }…
Geo
  • 93,257
  • 117
  • 344
  • 520
0
votes
1 answer

Javascript throws error when trying to send var to AS3 ExternalInterface

I know there have been tons of questions about this topic already but none of them have solved my issue, perhaps I am just missing something. Anyways, here is the deal. I have a happy little html5 game that plays some audio and sound affects etc and…
MeanMatt
  • 1,545
  • 3
  • 12
  • 23
0
votes
1 answer

AS 2.0 ExternalInterface.call not calling javascript functions

import flash.external.ExternalInterface; //ExternalInterface.call("alert", "what"); ExternalInterface.call("show_alert"); HTML CODE
user689751
0
votes
1 answer

How to make an externalinterface call to a JavaScript file which calls a server to get informtion

I have a javascript file which has a function calling a server (url) to get information. Here is the javascript function: sendQuery = function(devstr) { var baseUrl = 'http://serverurl/' + devstr; alert("the url is " + baseUrl); …
user220755
  • 4,358
  • 16
  • 51
  • 68
0
votes
2 answers

Getting External Interface to work with swf object, can't figure out what I'm doing wrong

I'm using swf object to embed a swf. I'm trying to user external interface to to call a flash function from JS, but having trouble. I've searched all the docs, read a ton of stuff, and I'm convinced I'm doing it right. Can anyone point out where the…
user379468
  • 3,989
  • 10
  • 50
  • 68
0
votes
2 answers

Referencing problem when adding callbacks to Exernal Interface in Flash/ActionScript3

I have a method: myMethod() {} that I want to make accessible to javascript. I've done a bit of research and found out you need to add a callback to ExernalInterface, so here's what I have done: ExternalInterface.addCallback("invokeMyMethod",…
Matt
  • 5,547
  • 23
  • 82
  • 121
0
votes
1 answer

Make use of external hardware Music controls in my custom App

I'm looking for a way to detect the buttons pressed of external music control buttons, I have integrated in my car via bluetooth. Is it possible to make use of them in my App for something else that playing and stoping music? Thanks a lot! Markus
Markus
  • 3,948
  • 8
  • 48
  • 64
0
votes
2 answers

calling JavaScript in AS3

So i have this expandable banner. And everything is ok with it, but when i'm testing it on our system it's not expanding. And here is the problem. Because our system is using this JavaScript for the floating :…
0
votes
1 answer

ExternalInterface.callback not working

I'm trying to do a Facebook app that runs a .swf ion the canvas page. I need to get the Facebook user id, that I tried to do using AS3 Facebook Graph Api, but it didn't work, so I've been trying to get the id by calling the FB.getUserID(); and…
0
votes
3 answers

calling actionscript method from javascript

I am trying to call a actionscript method from javascript, but it says flashObj.method() is not a function. I have declared this method inside a submodule of my flash object. So how to call methods of sub modules
Seeker
  • 2,405
  • 5
  • 46
  • 80
0
votes
1 answer

flashsocket.io or socket.io with flex app + externalinterfaces

I currently have a flex application which is a simple chat and it does long polling. I wanted to improve this by using sockets. I also used flex LCCS(server pushing) after long polling and later realized that LCCS is going to be closed soon, so I…
Dhiraj
  • 33,140
  • 10
  • 61
  • 78
1 2 3
20
21