We are hosting the ActiveX control in a WinForms application to embed flash.
Is there a good way to get the list of visible ExternalInterface functions that are available for any given swf file?
We are working with a 3rd party swf file, and do not have access to source.
If it's not possible from C# (or code), is there a tool out there...
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 variable name into a textbox I get the correct text.
when I use geturl with a clickTag, unde...
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 ExternalInterface:
ExternalInterface.addCallback("appendTrace", this, appendTrace);
function appendTrace(traceString:String):Voi...
I have a very simple flash program that plays music. It consists of a play pause button and a timer that shows the current position of the song. I'm trying to make it possible to pause or play the song using a regular form button.
<div class="musicplayer_playpause">
<script type="text/javascript">
AC_FL_RunConten...
Can I use ExternalInterface to call a namespaced JavaScript function?
//JavaScript
foo.bar = function(baz) {}
// AS3
import flash.external.ExternalInterface;
ExternalInterface.call('foo.bar', baz);
...
Is there a way for the Flex app to get any information about the HTML document via the ExternalInterface? Can Flex find out if a particular DIV exists, for example?
...
I have a Flash movie embeded with swfobject in a html container.
Through ExternalInterface I have registered a javascript function to fire callback to my flash app.
ExternalInterface.addCallback("notifyClose", notifyOnClose );
The javascript function is added as an event listerner to fire onbeforeunload.
<script language="JavaScript"...
I am having an issues with ExternalInterface.call to return a value in IE. It is working fine in Firefox. Eventhough I changed the "allowscriptaccess" to "always", still it is not working.
Is there any thing that I need to change in Flex or the HTML to make this work? or this is a security setting in IE?
Thanks in advance,
Praveen
...
Hello..
I have a little test swf to test calling an ActionScript(3.0) function from JavaScript. I am using the Flash documentation as a reference:
(http://www.adobe.ca/livedocs/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000340.html)
When the page loads I am presented with a Flash Player err...
Hi All,
I have a Flex application which allows the user to edit a cloud-based document. (Think SlideRocket.) When the user tries to navigate away or close the browser window, I'd like to show them an are-you-sure dialog iff they have unsaved changes.
I'm using the following custom class, which I found at http://stackoverflow.com/questi...
From a button in Flash I just want to call a function written in jQuery.When I place the function outside jQuery's $(document).ready it works fine:
*btw I use SWFObject to embed Flash.
AS3:
import flash.external.ExternalInterface;
function test_fnc(event:Event):void {
ExternalInterface.call("jsFunction", "hello world");
}
test_mc.a...
I just need a "simple" video player that I can manipulate from Javascript (via ExternalInterface). It needs to support RTMP sources.
I like Flowplayer, but I need something that allows for commercial on multiple domains without a hefty license fee.
I was simply going to use FLVPlayback, but I'm having headaches with the skin not proper...
I'm using JQuery with the jQuery flash plugin and trying to send a JS call back to the flash, I keep running into "xxx is not a function" so apparently something is off. I'm new to JQuery and very new to this jquery flash plugin and just can't quite wrap my head around what I am doing wrong.
Here's where I'm lading up the flash:
<div i...
Hi.
I trying to pomp showPermissionDialog for allow the user to post something in a friend Wall.
I have the flowing javascript code:
<script type="text/javascript">
function showStreamPermissions() {
FB.Connect.showPermissionDialog("publish_stream", doResult);
}
</script>
On may as3 class file i have this code t...
Summary
I want to be able to call a JavaScript function from a Flex app using ExternalInterface and pass a reference to a different JavaScript function as an argument.
Base Example
Given the following JavaScript:
function foo(callback)
{
// ... do some stuff
callback();
}
function bar()
{
// do some stuff that should happe...
I'm having issues with loading a SWF that references external SWF files...
The main SWF loads fine if the HTML file is in the same folder as all the SWFs using the following code:
<script type="text/javascript" src="../js/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
var params = { allowScriptAcces...
I have an iPhone app where I'd like to load a remotely served HTML form into a UIWebView and then populate that form as data becomes available from an external accessory using the "External Accessory Framework." Right now the data is entered by hand. The proposed flow is:
Fetch an HTML page containing a form and put it into a UIWebVi...
I have some Flash swfs that are embedded using swfobject and I pass them some vars like user id. How do I prevent people from reading these vars? If someone views the source of the php page that embeds the swfs they can see all the variables that are being passed to flash. Is there a way to hide these vars? What other ways are there to d...
I'm working on a Flash game that needs to call some Javascript on the page and get data back from it. Calling Javascript from Flash works. Calling the Flash functions from Javascript (often) doesn't.
I'm using the Gaia framework.
What happens:
The swf is loaded in with SWFObject
There's a button in the Flash file. On click, it uses ...
hello,
i have a flex application that does a simple ExternalInterface.call("shareOptions"), which calls a shareOptions() javascript method and works absolutely fine with Mozilla and chrome, however when I test with IE i get the following error:
Error: [object Error]
at flash.external::ExternalInterface$/_toAS()
at flash.externa...