"Definition of mx.utils: Base64Encoder could not be found" in Flex Builder 3

I am trying to edit an existing AS3 application (which was created using Flash Develop) in Flex Builder 3.

The application uses Base64Encoder (using "import mx.utils.Base64Encoder"). This compiles without problems in Flash Develop, but trying to create it in Flex Builder 3 (Mac version) gives an error:

"Definition of mx.utils: Base64Encoder could not be found"

In fact, when using code completion (ctrl + space) in flex, on "import mx.utils." only 4 utils are shown in the list.

I tried this with the Flex 3.2.0 sdk that came with Flex Builder 3 and the Flex 3.5.0 SDK, which I downloaded from the adobe site.

Does anyone know why this could be? and how could i solve this?

Thanks.

+4
source share
3 answers

I fixed this by adding 'framework.swc' to my library build path.

Instruction:

  • Right-click the project and select "Properties"

  • Choose ActionScript Build Path

  • Select the Library Path tab

  • Click the "Add SWC ..." button

  • Enter [path to your sdk] /frameworks/libs/framework.swc

  • Click OK to add swc

  • Click OK to close the properties.

  • Restore a project

+15
source

You need to include the [SDK] /frameworks/libs/rpc.swc file from the Flex SDK

+1
source

It is probably borrowed from the Flash class lib, and not from Flex. There are many base64 options that you can replace.

0
source

All Articles