|
|||
|
Hello, I got trouble. I use the following code in AS as a button
on(release){ import SWFKit.*; Encryption.decFile("aaa", "a.swf", "b.swf"); loadMovie("b.swf", "_root.container"): } I got the following error messages when testing the app, **Error** C:\Program Files\SWFKit Pro 3\Classes\BaseObj.as: Line 8: There is no method with the name 'flash'. var ret = ExternalInterface.call("ffish_new", objName); **Error** C:\Program Files\SWFKit Pro 3\Classes\BaseObj.as: Line 20: There is no method with the name 'flash'. ExternalInterface.call("ffish_delete", this.Identifier); **Error** C:\Program Files\SWFKit Pro 3\Classes\BaseObj.as: Line 26: There is no method with the name 'flash'. ExternalInterface.addCallBack(handlerName, this, handler); **Error** C:\Program Files\SWFKit Pro 3\Classes\BaseObj.as: Line 27: There is no method with the name 'flash'. ExternalInterface.call("ffish_seh", this.Identifier, event, handlerName); I use Flash 8 and SwfKit Pro 3. Could anyone help me, please ? Thanks before |
|
|||
|
I call the encrypt/decrypt function of Swfkit from AS, because in tutorial I found that I could call the Swfkit functions from AS. I already did all the procedures such as
- Setting the class path for ActionScript 2/3 - Defining hot keys for SWFKit plug-in commands - Attaching to a SWFKit project But when I try the example provided by tutorial on (click) { import SWFKit.*; var file = Dialog.fileOpen("All files(*.*)|*.*|"); if (file) { _root.strace(file); } } I got the same error. I already upgrade to Flash 9 and AS3 but the error still exist. Is it really possible to call Swfkit functions from AS? Or Could you please provide more help in setting the flash so that I could call the Swfkit functions using AS? Thanks |
|
|||
|
When I call the ExternalInterface directly like the following
import flash.external.*; var isAvailable:Boolean = ExternalInterface.available; trace(isAvailable); I got the result undefined. Do you have any suggestions? Thanks |
|
|||
|
Thans, I've already found the problem. It is because I published it for flash player 7. When I publish for flash player 8, everything works perfect. Thanks a lot.
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|