View Single Post
  #1 (permalink)  
Old 04-22-2009, 06:09 AM
kittykat kittykat is offline
Junior Member
 
Join Date: Apr 2009
Posts: 2
Default Quick Question about Using SWFKit in Flex Builder

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>
Reply With Quote