Why can't I import mx.controls into a Flex ActionScript project

I am trying to make a simple import into an ActionScript project that I created in Flex Builder:

import mx.controls.Label;

This will not allow me. The code hint does not show "controls" after mx.

Any idea what is going on?

Thanks.

+4
source share
1 answer

To access the mx libraries in an Actionscript project, you need to point Flex Builder to the source path.

Right click on your project -> Properties -> ActionScript Build Path -> source path tab -> Add folder ... -> 'C: \ Program Files \ Adobe \ Flex Builder 3 \ sdks \ SDK_VERSION_NUMBER_HERE \ frameworks \ source \'

and now you can access all mx classes. *.

+6
source

All Articles