To get started you will need to download the library JSInterface from http://code.google.com/p/jsinterface/ Then, create a project and add(Properties -> ActionScript Build Path -> Library path -> Add SWC…) the library to the project. It is necessary to initialize JSInterface, prior to use. To do so you need call the method JSInterface.initialize(). This method as the first argument accepts any object which can tell URL from which loaded this flash/flex program.
阅读全文——共2078字
转载于:https://www.cnblogs.com/laan860102/archive/2009/02/22/1509218.html