Setting the wordWrap on the Checkbox component

FLASH

    Next

  • 1. same button inside MC, diferent actions?
    Hi, How can I use different actions on buttons which are in a MC??? I mean, it is inside a mc and when I try to use an actions it takes for all of them. They should be the same button to work propely I need diferent actions to load different movies or goto a frame/labels. I tried doClick(), but i don?t know what i?m doing wrong. It?s hard to explain I?m using MX Thanks a lot.
  • 2. Drag and Drop in Flash?
    Ok this is somewhat complicated, but ill try to be as concise and clear as possible. Basically I am trying to do drag and drop in flash, but a 'smart' drag and drop. So here is the scenario: Two windows, both with 5 objects vertically listed, all aligned left in their respective windows. - When an object is dragged from window one to window two, the objects need to restack and the object should get ordered in wherever it was dropped. So im using some arrays, and attachMovie to create and keep track of the objects. I am using _droptarget to determine where the new item should be placed in the order. My question is, if i have an object from window one, and i get it to window two, i can make it stack and sort as planned but in essence it is still a 'child' of window one... is there a way to make it a child of window two so that when i move the parent windows the correct objects move with the window? Very complicated i know, hope that someone can help!
  • 3. Moveable flashlight?
    Hi, I have created a flashlight effect by drawing a simple circle on/in a mask layer. I know want to be able to move "the circle" with the mouse. I know that I can make an objekt moveable with startDrag ( ) but doesn't I have to convert the circle to a symbole and if I do that the mask effect disapears. What am I doing wrong? Anita
  • 4. Mozilla not showing my flash???
    My Flash app doesn't work in Mozilla brouser (but works in IE). The problem I know is associated to loading external SWF and JPG files when using a BASE folder. Here is some syntax I use: loadMovie('sun.swf', _root.father); /Prakashan
  • 5. LoadMovie problem in Mozilla Firefox
    My Flash app doesn't work in Mozilla brouser (but works in IE). The problem I know is associated to loading external SWF and JPG files when using a BASE folder. Here is some syntax I use: loadMovie('sun.swf', _root.father); /Prakashan

Setting the wordWrap on the Checkbox component

Postby __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;
 		}
 	}
 }



Return to FLASH

 

Who is online

Users browsing this forum: No registered users and 58 guest