View Full Version : components too heavy want to write in AS3
mainegate
12-04-2008, 07:42 PM
I'm looking to add a checkbox and a combobox but it adds a huge amount of filesize to my project. How can I just import the basics?
I have tried:
var cb:ComboBox = new ComboBox();
cb.move(10,10);
cb.setSize(300,25);
cb.rowCount = 12;
addChild(cb);
However, I'm getting a type not found...is it because I'm not importing right? What is the correct import?
nyghtrunner
12-04-2008, 08:18 PM
The path would be:
fl.controls.ComboBox
I've never had any luck with importing any of the "fl." classes though... For some reason, it never recognizes them. Of course, I gave up about 6 months ago when I was building SWC components for Flex. I couldn't ever get it to recognize the UIComponent Class when I published. Someone else here might know more about this than I do, but I've never had any luck with it... Even though the code helper is tripped when you type "fl.", it never seems to be a compile time compatible pathing method. :(
Robbus
12-05-2008, 09:18 AM
Have you put an instance of the component in the library as well as adding the import fl.controls.ComboBox line to the code?
Cheers,
Rob
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.