Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I'm trying to edit an existing AS3 application (which was built 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 build it in Flex Builder 3 (Mac version) gives an error:

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

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

I've tried this using 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 website.

Does anyone know why this might be? and how I could resolve this?

Thanks.

like image 378
Dean Avatar asked Dec 06 '22 01:12

Dean


2 Answers

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

Instructions:

  1. Right-click project and select 'properties'

  2. Select Actionscript Build Path

  3. Select 'Library Path' tab

  4. Click 'Add SWC...' button

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

  6. Click 'OK' to add swc

  7. Click 'OK' to close properties

  8. Re-build your project

like image 53
Dean Avatar answered Feb 07 '23 04:02

Dean


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

like image 40
Deyan Vitanov Avatar answered Feb 07 '23 04:02

Deyan Vitanov