The following example shows how you can create a multiline CheckBox control in Flash by setting the wordWrap property on the CheckBox component’s internal textField property.
Full code after the jump.
// ActionScript 3.0 /* Requires: * - A CheckBox control in your Flash library. */ import fl.controls.CheckBox; var checkBox:CheckBox = new CheckBox(); checkBox.label = "The quick brown fox jumps over the lazy dog."; checkBox.textField.wordWrap = true; checkBox.move(10, 20); checkBox.width = 200; addChild(checkBox);
{ 2 comments… read them below or add one }
Need to submit an enhancement request to Adobe to have this ability added to Flash/Flex..
Nice,
Flash enhancement requests/bug reports can be filed using the “Feature Request/Bug Report Form” at http://www.adobe.com/go/wish (select “Flash” from the Product name drop down menu)
Flex enhancement requests/bug reports can be filed using the public bug base at http://bugs.adobe.com/flex/
Peter