# Definition could not be found?

**URL:** https://forum.kirupa.com/t/definition-could-not-be-found/256386
**Category:** flash
**Created:** [April 2, 2008, 5:41pm UTC](https://forum.kirupa.com/t/definition-could-not-be-found/256386 "2008-04-02T17:41:24Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Maqrkk](https://avatars.discourse-cdn.com/v4/letter/m/35a633/32.png) [@Maqrkk](https://forum.kirupa.com/u/Maqrkk)
#### Post date: [April 2, 2008, 5:41pm UTC](https://forum.kirupa.com/t/definition-could-not-be-found/256386/1 "2008-04-02T17:41:24Z")

</div>

Hello,

I’m just messing around in Flash and I’ve come across an error I could not fix.

```auto
1172: Definition fl.controls:ColorPicker could not be found.

```

This is the code for my ActionScript

```auto
import fl.controls.ColorPicker;

var cp:ColorPicker = new ColorPicker();
cp.colors = [ 0x001100, 
              0x003300, 
              0x005500, 
              0x007700, 
              0x009900, 
              0x00BB00, 
              0x00DD00, 
              0x00FF00 ];
addChild(cp);

```

This code comes from an example in the Flash-help, ColorPicker class.  
It seems Flash can’t find the Colorpicker class (and as far as I know all classes that start with fl.). If this is the case, how can I fix this?
