PDA

View Full Version : having trouble importing fl.controls.ComboBox


halfasleeps
04-24-2008, 03:12 PM
I keep getting this error:

1046: Type was not found or weas not a compile-time contanst: ComboBox.
1172: Definition fl.controls.ComboBox could not be found.


but I am importing the class


here is my class:

package {
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.utils.*

import fl.controls.ComboBox;

public class BandInterface extends MovieClip {

private var _preview:RingLoader;
private var _colorBox:ComboBox;
private var _fitBox:ComboBox;
private var _typeBox:ComboBox;
private var _thickBox:ComboBox;

private var _bmpFolder:String;

public function BandInterface (color:String, fit:String, type:String, thicks:Array) {

_bmpFolder = "BandBmps";

_preview = new RingLoader(color, fit, type, "4mm", _bmpFolder);
addChild(_preview);


}

}
}


Any suggestions?
THANKS!

xwielder
04-24-2008, 03:20 PM
Did you drag the ComboBox component from the component window into your Library?

halfasleeps
04-24-2008, 03:28 PM
Thanks. I did realize i still needed to do that if I was importing it into a class.

Thanks!

xwielder
04-24-2008, 03:44 PM
Welcome. :)

dr_zeus
04-24-2008, 06:36 PM
The Flash CS3 components require special skin assets that are included when you drag them to the library. That's why it doesn't work when you simply try to import the classes without the component(s) in your library.