Setting the wordWrap on the Checkbox component
by __icarus__ » Fri, 28 Dec 2007 11:12:52 GMT
Anyone know how to get a flash quiz template checkbox to set to multi line? I
have tried:
onClipEvent (load) {
this.checkbox.labelPath.multiline = true;
this.checkbox.labelPath.wordWrap = true;
}
and also on the keyframe that contains the checkbox text fields:
checkbox1.labelPath.multiline = true;
checkbox1.labelPath.wordWrap = true;
Any ideas?
Similar Threads:
1.checkbox wordwrap,multiline
Hi all,
Pls help me to extend the flash mx 2004 checkbox component with wordwrap,multiline,autosize feature.
srinath
2.XP/Web Component in IE 6.x : Can't Check or Uncheck Data Checkboxes
The setup :
IE 6.x
Windows xp machine
Web/XP components from Office XP installed
On a subnet of the WAN.
User given Admin/Domain Admin privileges.
The problem :
This machine loads the web/xp component fine.
But, when the user tries to check or uncheck
checkboxes within the loaded component, it's no go.
Can only see the data group and cannot drill-
down into the data.
Tried reinstalling the web component.
Tried using the IP Address of the intranet
site where the code exists rather than
by name.
Tried logging in as Domain Administrator.
Gave the browser 'trusted site' permissions
for that web site.
Brought the security permissions of the
browser down to level 0.
Any ideas or insight would be greatly appreciated !
Best,
-- B.
3.Problem with checkbox component label and word wrap
I'm trying to create a checkbox using a checkbox component that has a
multiline label, wraps, and allows me to set the amount of area between
the label and the right edge of the check box (where the checkmark is
placed in a square).
The problem is that rollovers cause the text to redisplay narrower each
time the mouse is moved on or off the checkbox - rewrapping the text to
the new width. Very strange.
To recreate:
New fla (MX2004) with checkbox instance on stage named vChkBox.
Frame 1:
vChkBox.setStyle("marginLeft", 20); //adds space between chkbox and
label
vChkBox.labelPath.multiline = true;
vChkBox.labelPath.wordWrap = true; // causes the text shortening
problem when used with marginLeft
vChkBox.labelPath.autoSize = "left";
vChkBox.setLabel("this is a test of a very very ... long field");
stop();
setting the maringLeft to 0 prevents the problem but removes the
spacing I want between the checkbox and it's label.
Any ideas?
Thanks,
Steve
4.cannot set multiline and wordwrap on uitextfield
hello, this is my first post here, I have a problem with making radiobutton
text automatically wrap text into multiple lines when the text is longer than
the radiobutton's width.
the text never wraps nor creates a second line, please help !
this is my code :
// ActionScript file
package myComponents
{
import mx.containers.Canvas;
import mx.controls.RadioButton;
import mx.core.UITextField;
public class MyComponent extends Canvas
{
public function MyComponent():void
{
super();
var mybutton:RadioButton = new RadioButton();
mybutton.label = "this is a considerably long line of text, which is
supposed to be truncated into 2 lines";
// set its height, I have no idea if there's a way to autosize this height
mybutton.height = 50;
//mybutton.percentHeight = 100;
mybutton.width = 300;
// make sure all buttons have the same group name
mybutton.groupName = "grpname";
addChild(mybutton);
var tf:UITextField = mybutton.getChildAt(0) as UITextField;
tf.wordWrap = true;
tf.multiline = true;
}
}
}