AS3 CheckBox Wont Work
Hey all, basically i have an empty AS3 fla file with just the following code:
import fl.controls.CheckBox;
var cb1 = new CheckBox();
cb1.label = "Beets";
cb1.y = 10;
addChild(cb1);
But when i run it, i keep getting this error:
TypeError: Error #1009: Cannot access a property or method o开发者_如何学Pythonf a null object reference.
at fl.controls::CheckBox/drawLayout()
at fl.controls::LabelButton/draw()
at fl.core::UIComponent/callLaterDispatcher()
What am i doing wrong? :S
Hey all, basically i have an empty AS3 fla file with just the following code:
Did you add to your library a checkbox component?
精彩评论