views:

1576

answers:

3

Today's my first day with Flex and FlashDevelop. In my ActionScript file, I have this line...

import flash.display.SimpleButton;

...and FlashDevelop is aware. Code-completion works.

But, when I have this line...

import mx.controls.Button;

... code-completion doesn't work.

Am I missing something? Am I misunderstanding something?

+2  A: 

Works perfectly well for me w/o doing anything special. But maybe your project's properties got borked. Do this:

Open Project Properties
Go to Compiler Options tab
In Advanced -> Intrinsic Libraries add the following
Library\AS3\frameworks\Flex3

Scott Evernden
A: 

It seems like you are missing the Flex framework in your build path. Have you looked at the libraries being included?

Christophe Herreman
+1  A: 

I had the same problem. Your AS3 class path is pointing at a directory to low in the flashdevelop library folder structure to pick the mx class prototypes.

1.) Within Flashdevelop press F10 to open the 'Settings' window.

2.) In the list on the left click on the 'AS3Context' option.

3.) Imediately Under the group title of 'Language' on the right hand side of the window, find the 'AS3 Classpath' option. Its value is typically set to 'Library\AS3\Intrinsic'. Change the the 'AS3 Classpath' value to read 'Library\AS3'.

4.) FIXED. Flashdevelop should now be aware of the mx libraries, thus autocomplete should now also work.