externalinterface

Problem accessing ExternalInterface exposed method in Google Chrome

泄露秘密 提交于 2019-11-27 11:00:49
问题 My simple ActionScript I am trying to use Flash's ExternalInterface to setup a callback so that JavaScript can call a method on my Flash object. Everything works fine in Safari, Firefox and in IE, but I cannot get Chrome working. When I try the code on Chrome, I get the following error: Uncaught TypeError: Object #<an HTMLObjectElement> has no method 'setText' Here is the example HTML I am using (again, works fine in Safari, FF and IE) <html><body> <div id="mycontent"></div> <script type=

Security Error when trying to call ActionScript function from JS

别等时光非礼了梦想. 提交于 2019-11-27 07:02:43
问题 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 error: SecurityError: Error #2060: Security sandbox violation: ExternalInterface caller file: c:/externalinterface.swf cannot access file: c:\myhtml.html at flash.external:

Using ExternalInterface in Flash

别来无恙 提交于 2019-11-27 06:18:52
问题 I'm trying to edit some flash to make an external javascript function call, but with no success. Here's my actionscript 2.0 code: //testing external .js calls import flash.external.ExternalInterface; //attempting to make external js call ExternalInterface.call("createPlaylist","It's my Life!"); and here's my javascript; function createPlaylist(mess){ alert("called createPlaylist: " + mess); } I've seen lots of examples and I'm mainly confused about the use of ExternalInterface.addCallback . I

Cross Domain ExternalInterface “Error calling method on NPObject”

点点圈 提交于 2019-11-27 01:20:35
问题 I am trying to enable communication between Javascript and Flash via ExternalInterface across domains. The Javascript works great when it is located on the same domain as the SWF. But in one case, the HTML resides on domain A, the javascript and the flash both reside on domain B. I have done all of the following: The embed tag has allowScriptAccess="always" (and the object has that as a param) My SWF file's actionscipt has Security.allowDomain("*") My SWF also calls Security

How to get the data from a USB port in VB.NET

本小妞迷上赌 提交于 2019-11-26 21:19:15
问题 I have developed a software for managing the details of patients, the software stores the data into MSsql database.... However, the data I need to get stored has to be read from an external device which transmits data... Now my query is how I can read that data using VB.NET 2010. I have searched on net and found that I can use My.Computer.Port to read data from USB connected device, but I am unable to get its logic and any example to get this practically done... I also been through many books