|
|||
|
I can't get SWFKit to work in FlexBuilder 3 with Flash Player 9..
I followed these steps and added the SWF Kit wrapper classes to my Flex Build Path SWF to EXE- Using SWFKit Series 3 Objects in Flex Builder 2 When I try a simple Flex application, it gives me a compile error because it doesn't recognize the Shell class: 1061: Call to a possibly undefined method runAndWait through a reference with static type Class. How do I fix this?? Thanks sooo much! <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Button x="180" y="286" label="Button" id="MyBtn" click="OnClickMyBtn()"/> <mx:Script> <![CDATA[ import SWFKit.*; import SWFKit.Shell; import SWFKit.Application.*; private function OnClickMyBtn():void { Shell.runAndWait("notepad.exe"); } ]]> </mx:Script> </mx:Application> |
|
|||
|
Hmm I tried following your instructions and loading the sample, but nothing showed up when I clicked "Click Me." I'm using Flash Player 10 now, does that matter?
If I click on the FlexShell.swf file, I receive this error. Any ideas? Error: Error #2067: The ExternalInterface is not available in this container. ExternalInterface requires Internet Explorer ActiveX, Firefox, Mozilla 1.7.5 and greater, or other browsers that support NPRuntime. at Error$/throwError() at flash.external::ExternalInterface$/call() at SWFKit::BaseObj/fnBaseObjByName()[C:\Program Files\SWFKit Pro 3\Classes 3\SWFKit\BaseObj.as:10] at SWFKit::Shell()[C:\Program Files\SWFKit Pro 3\Classes 3\SWFKit\Shell.as:6] at FlexShell()[C:\Users\Kat\Documents\Flex Builder 3\FlexShell\src\FlexShell.mxml:9] at _FlexShell_mx_managers_SystemManager/create() at mx.managers::SystemManager/initializeTopLevelWindow()[C:\autobuild\3.2.0\frameworks\projects\framework\s rc\mx\managers\SystemManager.as:3188] at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::docFrameHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\s rc\mx\managers\SystemManager.as:3064] at mx.managers::SystemManager/docFrameListener()[C:\autobuild\3.2.0\frameworks\projects\framework\s rc\mx\managers\SystemManager.as:2916] |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|