3
votes

I'm trying to use the Flex 4 SDK's mx.rpc package in a Flash application. I imported Flex's rpc.swc (Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\rpc.swc) into my project by adding it to the list in Flash's "Publish Settings/Flash/ActionScrip 3.0 Settings/Library Path". It seems like I have access to the classes, however when I compile I get this error:

1046: Type was not found or was not a compile-time constant: [mx.rpc]::IResponder.

There's no location or line for the error either. Any idea how to get this to work? TIA!

Notes: I'm using Flash Builder 4 and Flash CS5

2

2 Answers

4
votes

Importing the rpc.swc wasn't enough. I added the entire Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\ folder to the library path, and that fixed the problem.

1
votes

The IResponder Interface is included in the framework.swc. That one and rpc.swc should be enough if those are the only flex features you are using.