views:

115

answers:

3

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

+1  A: 

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.

Arms
A: 

Many many thanks !

Didn't think to do that since I have two flash develop projects based on the same AS Class, one works with the secific swc files, the other doesn't....

Thanks for your self answer Arms...