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 JSFL ExternalInterface issue

I can’t get a call from JSFL to a SWFPanel to work via the ExternalInterface API. I am following the instructions here as follows: In the SWF Panel, in scene 1 action 1, I register a callback function with…
John Wright
  • 2,418
  • 4
  • 29
  • 34
0
votes
1 answer

flash external ExternalInterface call in as2

I have an external interface call which should retrieve some text from the html that the swf is embedded in. var name:Object = flash.external.ExternalInterface.call( "function(){return JSObject.get('Resource', 'name');}"); When I put the…
Dave
  • 1
  • 1
  • 2
0
votes
1 answer

Can I call a function in flash projector from windows app?

Can I call a function in flash projector from windows app? Like when using ExternalInterface on a browser to comunicate between JS and SWF, only that now I have an windows app and a Flash projector (.exe file).
marius
  • 35
  • 5
0
votes
1 answer

How do I use Flex's ExternalInterface with IFrames?

I have a simple html doc with a flex app and an iframe side-by-side (using a 1x2 table). There is a button in the flex app that, when clicked, sets the "src" property of the iframe to a URL by using the ExnternalInterface.call method to call a…
Dan
  • 974
  • 7
  • 11
0
votes
2 answers

External Interface not available

Im testing a program in FlashDevelop, which uses Flash player 10. Need externalInterface to work, but on running this simple test program, it displays "ExternalInterface is not available". What might be the problem here? How do I get…
Pranav
  • 3,340
  • 8
  • 35
  • 48
0
votes
1 answer

Call Flash As3 function from Javascript In Google Chrome Extension

I am developing Radio player extension For Google Chrome. I am using flash in my application and want to call method Mute from my Javascript code. I know that i can use ExternalInterface, but it's not working in local Environment. How can i call…
0
votes
1 answer

Dynamic publishing swfobject external interface callback method undefined

Could some genius help on this issue to sort it out!!! It will be much appreciated Actually I have flash music player loaded by means of config file named config.xml Flash player Action script…
0
votes
1 answer

ActionScript3 (AS3) External Interface call to javascript/jquery function not working

I am working on a project that is intended to track users using Local Shared Objects. The user first visits page A, which has an embedded .swf that plants a Local Shared Object. I know it works by testing it my own flash cookies. Upon visiting page…
Kev
  • 62
  • 1
  • 6
0
votes
1 answer

Catch errors from ExternalInterface when script access is not allowed?

I have a swf that runs on many sites, most of which allow script access. For those that don't, I'm trying to catch errors but having no luck. (I'm also checking to see if ExternalInterface.available is true, but the Flash Player always tells me it…
Seanonymous
  • 1,304
  • 10
  • 30
0
votes
1 answer

"ExternalInterface" - How to list all data/variables received? (for debugging purposes)

I am building an application in C# which calls Flash SWF (AS3) and that flash file, things are going fine so far and i can receive info from c program easily by using ExternalInterface.addCallback(); But to tackle some errors, i was wondering if…
Aamir Siddique
  • 334
  • 3
  • 15
0
votes
0 answers

swfObject embed attribute and external interface

i know that swfObject still works with html5, but since the code is much shorter, and because only 1% of my visitors use older browsers, I would like to use the embed attribute instead. But will the externalInterface still work?
Joe Cade
  • 357
  • 1
  • 2
  • 13
0
votes
1 answer

How do I use externalInterface to allow Flash to call javascript to update a value on the screen?

I have a Flash movie that is embeded in a PHP page. The PHP page displays a value to the user (the number of images they have uploaded). When the user uploads a new image I want the value on the PHP page to reflect the change without refreshing the…
undefined
  • 5,190
  • 11
  • 56
  • 90
0
votes
2 answers

ExternalInterface-passing dynamic arguments to Javascript function

I'm having a problem passing dynamic variables to a Javascript function using ExternalInterface. The variables don't seem to be resolved correctly //CODE START var customInfo :String='some custom info' ExternalInterface.call("funcName", 'arg1Name',…
Bachalo
  • 6,965
  • 27
  • 95
  • 189
0
votes
1 answer

AS3 actionscripting

I'm embedding a flash file from an external domain and there is some JSON data in the page I would like to use in the movie. Whats the best method to get these variables without passing them on as a flashvars (I don't have control of the page it's…
0
votes
0 answers

Flash not responding via javascript API on IE10 on WIN8

I'm trying to achieve the following: I have a javascript object that fetches two flash objects. The two flash objects are then added to the page, the first one I set with play=true and the second one I set with play=false. I'm presenting the one…