externalinterface

How to get/obtain Variables from URL in Flash AS3

So I have a URL that I need my Flash movie to extract variables from: example link: http://www.example.com/example_xml.php?aID=1234&bID=5678 I need to get the aID and the bID numbers. I'm able to get the full URL into a String via ExternalInterface var url:String = ExternalInterface.call("window.location.href.toString"); if (url)...

calling actionScript 2 function from C# help!

I want calling actionScript 2.0 function from c# , I using ExternalInterface.addCallback; In flash: ExternalInterface.addCallback("test", function (text : String) : Void { //code }); in C#: I using shockwave flash object player.CallFunction("<invoke name=\"test\" retu...

ExternalInterface

Hey, so I'm having a bunch of trouble getting ExternalInterface to work, which is odd, because I use it somewhat often. I'm hoping it's something I just missed because I've been looking at it too long. The flash_ready function is correctly returning the objectID, and as far as I can tell, everything else is in order. Unfortunately, wh...

Flash SWF not initializing until visible - can I force them to initialize?

I have an application that needs to render about 100 flash graphs (as well as other DOM stuff) in a series of rows that vertically extend many times beyond the current visible window - in other words, the users have to scroll down see see all the different graphs. This application is also dynamic and when a user changes a value in the D...

Flex/Flash 4 ExternalInterface.call - trying to get a string from HTML to Actionscript.

Dear all, I need to obtain a string from HTML and put it into Actionscript. the actionscript: import flash.external.ExternalInterface; protected function getUserName():void{ var isAvailable:Boolean = ExternalInterface.available; var findUserName:String = "findUserName"; if(isAvailable){ ...

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

Hello, 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 the user (like clicking a button). I have searched through Google and realized thi...

Generic way to handle exceptions between JavaScript and Flash?

Hello all, I am currently using the ExternalInterface to communicate between JavaScript and Flash. I need throw exceptions from Flash that JavaScript has to interpret. I know you can receive and handle exceptions in JavaScript but I was wondering if there were some kind of built-in generic way to handle exceptions, so I could use someth...

IE popup an "object doesent support this propety o method" when using ExternalInterface.call

hi, i"m getting nuts in here. everytime i try to do even an ExternalInterface.call('alert','abc'); (which will work on every browser) i get an object doesent support this propety or method after the alert appears. it even happens in the HTML generated by flash without me touching it... there is any solution?! thanks! ...

Throwing an error in ActionScript and catching it with JavaScript

Hello, I am using the ExternalInterface to communicate between Flash and JavaScript using callbacks and the call method. I would like to throw an exception in ActionScript 3.0 and catch it in JavaScript and I was please wondering if there was anyway to do that? Thank you very much, Rudy ...

Controlling the scope of a document.write call coming from a third party

Dear all, I'm writing a webpage that relies on an external javascript file (that I have no control of), which returns data by using document.write's. Is there any way to dynamically call the function without it overwriting the whole document? Here's the most concise code I can think of: <html> <head> <script type="text/javascript">...

Queue ExternalInterface calls to Flash Object in UpdatePanel - Needs Improvement?

A Flash (actually Flex) object is created on an ASP.Net page within an Update Panel using a modified version of the embedCallAC_FL_RunContent.js script so it can be written in dynamically. It is re-created with this script with each partial postback to that panel. There are also other Update Panels on the page. With some postbacks (...

ExternalInterface issue on loadup with FireFox

Hello, I have an issue with my ExternalInterface. The way it is currently set up is, on the page load up, a boolean is set to true in JavaScript and then checked by ActionScript constructors (using a timer) until it is true. This marks that JavaScript is ready to get calls from AS3. At this point, AS3 will add the callback and do some...

Communication between Flash and C# Using ExternalInterface without TLF text

I'm communicating from a flash application using a command like the following: ExternalInterface.call("hello", "world") This is handled on the C# end by something like: string swfPath = Directory.GetCurrentDirectory() + Path.DirectorySeparatorChar + "test.swf"; this.axFlash.LoadMovie(1, swfPath); this.axFlash.FlashCall += new AxShockwa...

calling jQuery function from Flash

Hi, i have a problem only with IE: if i try to invoke a JS function from Flash using ExternalInterface i cannot get result if Flash is embedded inside a JQuery dialog; when i make the same thing from a normal html page it runs. How can i invoke ExternalInterface.call to run a function even if flash is inside a dialog? Thanks in advance ...

Chrome only: AS2 ExternalInterface calls return null / cross-domain iframes

I'm using the cross-domain hack "marathon version" (explained here: http://softwareas.com/cross-domain-communication-with-iframes) to append a swf to a top-level window from within an iframe, as follows: Page on domain A hosts our javascript, on domain B, in an iframe. Our js on domain B creates a proxy iframe pointing to a file on...

Actionscript 3 Facebook API limitations

I'm creating a Flash-based (AS3) Facebook Connect site using the Actionscript 3 API and though I've got basic FB Connect functionality in place in terms of allowing users to login correctly, I'm running into walls when trying to ask for certain extended permissions. I'm not positive, but it appears as though there are two fairly signifi...

FlashVars or ExternalInterface

I've been using ExternalInterface up until now in the rare cases I needed to communicate with HTML. Is FlashVars considered a better/worse or newer/older practice? or when do you use one or the other? What's the logic that I should follow to help me decide which one to use? ...

how to interact with an external script(program)

there is a script that expects keyboard input, i can call that script with os.system('./script') in python, how is it possible to send back an input to the script from another calling script? update: the script is: $ cat script #!/usr/bin/python for i in range(4): name=raw_input('enter your name') print 'Welcome %s :...

receive complex objects from javascript in flash

I'm trying to call a Flash function from javascript passing complex data types as arguments the Flash function is being called correctly but the args have no value, I mean they are both complex data types with propertiesbut in Flash when I try to access those properties I get "undefined" and yes, I'm sure the javascript code is correct a...

Communicating between 2 flash swf's using ExternalInterface

I been suffering with a problem where I can't get one flash swf to work in unison using one javascript. For example 1.swf does ExternalInterface call to js function test var test = function (var) { $("#2ndFlash").get(0).passTest(var); } As you see what I'm trying to do is when 1.swf calls test with some variable pass it to anoth...