Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Checkbox Component Text Color



The default Text color for the CheckBox Component is black... If I have a form on a dark color, how do I change the CheckBox text to another color?

Thanks.



FlashKit > Flash Help > Flash MX
Posted on: 06-27-2003, 11:53 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Checkbox Component Color Change?
Folks,

I'm trying to change the color of a checkbox component. I have managed to add a shadow and change the check color but I can't seem to change the color of the check box itself.

I used the following code for the shadow and check:

A.setStyleProperty("check", 0x0025500);
A.setStyleProperty("shadow", 0x0025500);

Any ideas for the actual checkbox?

Many thanks - this forum is helping me a great deal

CheckBox - Text Color ?
Hi
I have this script and i'm wondering if can be integrate in the _global style, becouse i have like a million checkBoxes

code: MyCheckBox.onRollOver = function() {
this.setStyle("color", 0xFF0000);
}
MyCheckBox.onRollOut = function() {
this.setStyle("color", 0x336699);
}

//My _global.style
code:
_global.style.setStyle("color", 0x336699);
_global.style.setStyle("fontFamily" , "verdana");
_global.style.setStyle("fontSize" , 10);
_global.style.setStyle("marginLeft" , 5);
_global.style.setStyle("disabledColor", 0x000000);

And can i make the color of the text diferent when the checkBox is checked?

Thank you very muck, and please excuse my english.

Color Of Checkbox Text
This seems like a really stupid question but can anyone tell me where in the checkbox component you change the text color? I can't seem to locate it when I drill down into it.

Thanks!

Color Of Checkbox Text
This seems like a really stupid question but can anyone tell me where in the checkbox component you change the text color? I can't seem to locate it when I drill down into it.

Thanks!

Change Text Color Of CheckBox?
I cant figure out how?

I tried this:

ActionScript Code:
compare_checkbox.textField.setTextFormat( new TextFormat(null,null,0xFFFFFF) );

Thanks

Background Color For Checkbox Text
Is there some way I can change the background color for the text portion of the checkbox component? It doesn't respond to the backgroundColor style.

Component Checkbox And Set Text Dynamically
I have an MC with a checkboc component in it. I am using a duplicate clip to create a series of MCs. I want to dynamically set the text on the checkbox comonent when I duplicate the MC.
Anyone know how to do that?

Thanks in advance,
hyper

Change Text Properties Of Checkbox Component
I am trying to change the text properties(font, color, size) of the text appears next to the checkbox component. I am not interested in doing a global change to the component. I've read the flash tutorials, and tried a few things, but haven't got it to work yet. Thanks for the help!

Changing Of The Font And Text Size In CheckBox Component
hi,

Components are very useful, but they seem difficult to customize.

Is it possible to change the font and maybe color of the text in CheckBox components. Under their "Parameters", I can only see a few options.

thank a million.

Lawrence

Component Text Color
Hello

I've made a couple of "checkboxes", and would like to change the color
of the text from the standard blue to white.

can anyone help me with that ?

thanks in advance
J

Checkbox Component To Toggle ComboBox Component
I've got a script that dynamically generates a grid of checkboxes and combo boxes. I'm trying write a handler to toggle the Combo boxes on or off when a user clicks on the corresponding checkbox. To do this, I add a property called "bound_to" when duplicating the checkboxes. The "bound_to" property contains the instance name of the combo box that I want the checkbox to control. So here's my onChange handler:


Code:
function toggleComboBox(component) {
trace(component._name+" has been selected ");
trace("bound to "+ eval(component.bound_to));

if (eval(component.bound_to).getEnabled == true) {
trace("enabled must be true for the target");
eval(component.bound_to).setEnabled(false);
} else {
trace("enabled is false for the target");
eval(component.bound_to).setEnabled(true);
}

}
My trace actions show that the correct instance names are saved correctly and this function works to enable the combo boxes, but it won't disable them. The problem is with the IF statement I think. It always returns false so I can only toggle the combo boxes on, but not off again. Is my syntax wrong or am I doing this the wrong way?

CheckBox Color
Hi

I am dynamically generating a list of checkboxes from code. However they all have a blue theme.

Does anybody know how to change the color scheme from code?

Can anybody tell me how to set up the label so that the text wraps onto two lines rather than getting truncated.

Thanks





























Edited: 07/10/2008 at 04:34:01 AM by charlie656

[F8] Text Color In A List Component
I have searched for this and nobody seems to know the answer!

I have a list and want to change the text color of individual rows.

The background color can be changed thus:

Code:
list.setPropertiesAt(number, {backgroundColor:0x999999});
but replace 'backgroundColor' with 'textColor' or even just 'color' and nothing happens! Surely I am not alone in thinking that changing the text color would be more desirable than changing the background color!

Anyone got any thoughts?

Text Color In A List Component
I have searched for this and nobody seems to know the answer!

I have a list and want to change the text color of individual rows.

The background color can be changed thus:

Code:
list.setPropertiesAt(number, {backgroundColor:0x999999});
but replace 'backgroundColor' with 'textColor' or even just 'color' and nothing happens! Surely I am not alone in thinking that changing the text color would be more desirable than changing the background color!

Anyone got any thoughts?

Change Component Text Color
I am working with flash CS3 in AS3 and I'm currently skinning my component. The component I'm working with is a list box and I have visually changed all the colors of button states from the library, which is a breeze. However, some of the colors I used do not work well with the standard black text. I was wondering how to make text in my listbox change with the button state changes that I've made.

Thanks,

Aubrey

Component Text Color, Multi-choice
Im trying to change the text color and attributes in a multiple choice quiz, but i have no clue where that is located in the macromedia premade templetes...plz help...

Rollover Text Color - Combo Box Component
How do you change the "rolled over" text color in the combo box component? I just don't know how to reference the style in the code.

[CS3] Changing Text Color In List Component?
Hallo,

Just switched over to CS3, still adjusting to the many many changes.

How on earth do you change the text color styles of a List component in AS3? I know it was easier to directly access the .color, .rollOverColor properties in AS2, but I can't find *ANY* comparable feature in AS3. I can see how everything else is skinned, by navigating the layers of symbols within the component. Can anyone help me, or explain how I'm thinking about this wrong?

Thanks,
Dylan

Changing The Text Color On The List Component
It's my understanding that using listInstance.setStyle( "color", myColor ); should change the colour of the text in my list component, but I'm having a difficult time getting this to work. I've tried a variety of different things where 'myColor' is but nothing seems to be working.

List Component Text Color RollOver
Ahhhhrrrrg!!!!!

For the life of me i cannot figure this out or cannot find simple straight forward documentation.

Previously in AS2, to set the style for a List Component when the mouse was over an item you would simple set it with
Code:

setStyle("rollOverColor", 0x000000);



I've been trying to find info on how the heck you do this in AS3, cause the above dont work.

i've been playing with the following code, but it does not have a rollOver property

Code:


var tf:TextFormat = new TextFormat();
tf.color = 0x00FF00;
tf.font = "Andale Mono";
tf.size = 14;



So please help, does anyone have a clue?

PS, normally when a programing language is changed, is is done at an easing speed, but AHHH! NO!!! not with AS3, it has changed 101%

Sorry just letting some frustration out.

Thanks for the help.

Changing The Text Color In A Radio Button Component
Hi,
I'm using a background in my frame , so I need to know how to change the color of the Radio Button Component. I tried using the Property Inspector , but in that the color option is disabled. The Flash version I'm using is Flash 8. Kindly provide me a solution for this.

Thanks In Advance,
Lokesh R

How Do I Change Background Color On MM Rich Text Editor Component?
I am trying to change the background color on Macromedia's Rich Text Editor component but I'm having no luck. I know I need to muck around in the library once I add the component to my project and I think it has something to do with skins but other than that, I'm lost!

Thanks in advance.

Update Text Size, Color And Font Of A TextArea Component
Hi All,

I'm using Adobe CS3 and writing in AS3. Many people are having the same problem as me, all across internet land, so if you can resolve this you will be helping a lot of people.

I have two textarea components that I'd like to change the font, size and colour of the text in each. Both have to remain editable, and if possible I'd like to do it from within the CS3 IDE.

Here's one of them:


Code:
var playerlist:TextArea = new TextArea();

playerlist.move(530.5,375.9);
playerlist.setSize(200,173);

playerlist.editable=false;
Can anyone give me (a newbie to this!) step by step instructions as to how to do this please?

Please do not direct me to the Adobe help pages or anywhere else. I have scoured the web and cannot find/understand anything that helps me resolve this problem. Among the solutions I've tried include:

1) Accessing the TextField component within the TextArea directly (I thought I was on to a winner with this, but found out the variable is protected)

2) Setting the style directly e.g.
Code:
playerlist.setStyle("fontFamily", "Times");
(for some reason, simply doesn't work)

3) Setting up a TextFormat object and applying that to the textarea (doesn't work)

And probably a whole lot more that I can't remember...

Your help... ANY help that gets me closer to a solution.. IS very much appreciated, thanks!

Thanks,

Dave

[F8] Changing The Color Of A Button/checkbox/radiobutton...
How would I go about (even if it's via actionscript) changing the default green "glow" on the button, checkbox, and radiobutton components to the color #B50C00? Thanks!...

[f8] Product Color Chooser: Checkbox Option
I'm making a product color chooser that is intended to allow customers to preview different color combinations of a product. (see image)

The product has three areas that can have customized colors. I've made these areas movie clips with the following instance names: LowerPanel, UpperPanel and Valance. There are twenty-four instances of a swatch button with various tints applied to them, (twelve for the UpperPanel and twelve for the LowerPanel). The code for each of the swatch buttons is as follows, but with different color values and instance names as needed.


Code:
on (press) {
var fabricColor = new Color("_root.UpperPanel");
fabricColor.setRGB(0xf6ecc7);
}
Very simple and it works fine. Click a swatch color and the corresponding area of the product changes.

Here's where I'm lost...
The third area, the Valance, isn't supposed to work in quite the same way.
For that, I'd like to have a checkbox that when checked, makes the Valance color match that of the LowerPanel. But I'm not sure how to go about doing this. I've added a checkbox component, gave it an instance name of ValanceCheckBox, and now I've spent a couple of days trying to find a way to make it do what I need without success.

If anyone could give me some suggestions of methods to achieve this I'd be extremely grateful. A stripped down .FLA file can be downloaded here.

Checkbox Component
I'm using the Checkbox component but my text for the checkbox is longer than i can fit in only 1 line of text. Can i somehow make the checkbox component to display the text in 2 lines?
thanx

Checkbox Component
Hi Anyone know how to:

Ive got a checkbox that

on (click) {
_root.figure.gotoAndStop("go");
}


So now when Cliked its checkmarked in my move

but I also want to uncheck the box and have it go back
_root.figure.gotoAndStop(1);

Regards
Flemming

Checkbox Component
Hi Anyone know how to:

Ive got a checkbox that

on (click) {
_root.figure.gotoAndStop("go");
}


So now when Cliked its checkmarked in my move

but I also want to uncheck the box and have it go back
_root.figure.gotoAndStop(1);

Regards
Flemming

Help With CheckBox Component
Hi there,

I was just wondering if someone could help me with some code.
I am using the new Flash MX 2004 checkBox component and this code in the first frame of the movie

tallValueListener = new Object();
tallValueListener.click = function (evt){
appendQuery = (appendQuery add "&tall=true");
trace(appendQuery);
}
tallValue.addEventListener("click", tallValueListener);

What I want to have happen is if the checkBox component is selected (ticked) then the "&tall=true" gets added to the appendQuery. If not selected (ticked) then it doesn't get added. Also, once it has been added it doesn't get added again.

I need this as I have a search application that has lots of these checkboxes and I only want to send the values that are selected and not the ones that aren't. Also whilst on the subject, does anyone know how I can add all the names of the checkBox components, lets say :

tall
long
short
wide

and then check them all at once and add the "&tall=true" etc code if needed. I would find this exceptionally helpful as then I wouldn't have to keep on repeating the code above (when it works properly!!) umpteen times for each checkBox component.

I hope someone understood some of this and can offer some help.

Regards,

Mark Bowen

info@kingfishergraphics.com
http://www.kingfishergraphics.com/phpBB/

Can't Get Value Of Checkbox Component - Why?
This is so simple yet it's making me crazy. I'm simply trying to get the value of a component checkbox with the instance name of "check1".

I have one line of actionscript that reads:

Code:
check1_value = check1.getValue();
Shouldn't this assign the true/false value to the "check1_value" variable? Why doesn't it work?

Checkbox Component
hi,
i want to use multicheckbox in my flash file...
and on a button press i want to display all
checked values ...
plz help me to do so ..........

Using The Checkbox Component
i need help i am making a flash form that sends variables to a php script and the php script mails it to me. What i need help with is how to get the checkbox component i am using to when clicked sets a variable so i can send it to my php script. For something that is supposed to be so easy components are annoyingly hard to use.

Thanks guys the is the best flash help site i have ever used.

Help With Checkbox Component
Hi

I need some help plz, I buildt a flash picture gallery but I want people to be able to click on their favourate pics (sort of like a catalouge) and the info of the pic and maybe a small thumb must be extracted to a html page or flash movie for review later on.
I was thinking of using a checkbox but I have no clue as to where to begin with this task and I don't know if this is even possible without alot of effort

thanx for any help and here is the code for one of the frames in the gallery.

//Invitations page
stop();

Fuse.AUTOSTOP = true;
Fuse.AUTOCLEAR = true;

this.classic_mc.slideTo('260', '0', .8, 'easeInOutBack');
this.handmade_mc.slideTo('260', '0', .9, 'easeInOutBack');
this.unique_mc.slideTo('260', '0', 1, 'easeInOutBack');
this.back_mc.slideTo('260', '0', 1.1, 'easeInOutBack');
this.classic_mc.alphaTo(100, .8, 'easeInOutBack');
this.handmade_mc.alphaTo(100, .9, 'easeInOutBack');
this.unique_mc.alphaTo(100, 1, 'easeInOutBack');
this.back_mc.alphaTo(100, 1.1, 'easeInOutBack');

//code wat images load van xml
var x:XML = new XML();
x.ignoreWhite = true;
var urls:Array = new Array();
var captions:Array = new Array();
var wis:Number;

x.onLoad = function() {
urls = new Array;
var photos:Array = this.firstChild.childNodes;
for (i=0;i<photos.length;i++) {
urls.push(photos[i].attributes.url);
captions.push(photos[i].attributes.caption);
}
holder.loadMovie(urls[0]);
caption.text = captions[0];
wis = 0;
}


classic_mc.onRelease = function() {
x.load("XML/gallery/invitations/iClassic.xml");
}
handmade_mc.onRelease = function() {
x.load("XML/gallery/invitations/iHandmade.xml");
}
unique_mc.onRelease = function() {
x.load("XML/gallery/invitations/iUnique.xml");
}


/////////////////////////////////////
p = 0;
this.onEnterFrame = function() {

filesize = holder.getBytesTotal();
loaded = holder.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {

preloader.preload_bar._xscale = 100*loaded/filesize;

} else {

preloader._visible = false;
if (holder._alpha<100) {

holder._alpha += 10;

}

}

};

/////////////////////////////////////////////////

//previous button
previous_btn.onRollOver = over;
previous_btn.onRollOut = out;
previous_btn.buttText.buttonText.text = "previous";

function over () {
this.gotoAndPlay(2);
}

function out () {
this.gotoAndPlay(7);
}
previous_btn.onRelease = function() {
if(wis > 0) {
wis--;
holder.loadMovie(urls[wis]);
caption.text = captions[wis];
}
}
//next button
next_btn.onRollOver = over;
next_btn.onRollOut = out;
next_btn.buttText.buttonText.text = "next";

function over () {
this.gotoAndPlay(2);
}

function out () {
this.gotoAndPlay(7);
}

next_btn.onRelease = function() {
if(wis < urls.length-1) {
wis++;
holder.loadMovie(urls[wis]);
caption.text = captions[wis];
}
}


//submenu settings

back_mc.subText.subbText.text = "Home";
classic_mc.subText.subbText.text = "Classic";
handmade_mc.subText.subbText.text = "Handmade";
unique_mc.subText.subbText.text = "Unique";

back_mc.onRollOver = over;
back_mc.onRollOut = out;
classic_mc.onRollOver = over;
classic_mc.onRollOut = out;
handmade_mc.onRollOver = over;
handmade_mc.onRollOut = out;
unique_mc.onRollOver = over;
unique_mc.onRollOut = out;

back_mc.onRelease = function() {
gotoAndPlay(2);
}

//about us button en contact us
aboutUs_btn.onRollOver = over;
aboutUs_btn.onRollOut = out;
function over () {
this.gotoAndPlay(2);
}

function out () {
this.gotoAndPlay(7);
}
aboutUs_btn.onRelease = function() {
gotoAndPlay(8);
}
contactUs_btn.onRollOver = over;
contactUs_btn.onRollOut = out;
function over () {
this.gotoAndPlay(2);
}

function out () {
this.gotoAndPlay(7);
}

contactUs_btn.onRelease = function(){
gotoAndPlay(10);
}

Checkbox Component
I have created a movie clip which contains a checkbox with the instance name of cb.

If I drag the movieclip to the stage and give it an instance name of option1 and then type '_root.option1.cb.selected = true;' in the actionscript window, the checkbox is checked.

However, if I use 'attachMovie' to place the movieclip on the stage using:-
'_root.attachMovie('checkboxclip', 'option1', _root.getNextHighestDepth());
_root.option1.cb.selected = true;'
This does not place a tick in the checkbox.

Why is this?

Thanks in advance

[CS3] How To Use The Checkbox Component?
I have a page where I need to I need to have people pick from a few diffrent options and I'm looking for ways to do that. At this point I'm using the CheckBox Component. If I do use those then how do I submit the value from that check box. Is there a better way to do collect data like this using flash.
Idealy I would like to take the values of the checkboxes and a few feilds with contact information and have it passed into an email.

Thx for the help

JT

Help With Checkbox Component
Hi there, I've created a VLA E-learning course in flash CS3 that uses the checkbox component for test questions at the end of the course. Problem is that it seems to be working fine when I export it. I've tested it on a PC using stand alone Flash Player v9 and v8 but I've sent it to the client to preview and they have come back saying that the question where I've used the checkbox component aren't visible and that in there place there appears to be a blank text box.

Can anyone help?

Help With Checkbox Component
Hi there, I've created a VLA E-learning course in flash CS3 that uses the checkbox component for test questions at the end of the course. Problem is that it seems to be working fine when I export it. I've tested it on a PC using stand alone Flash Player v9 and v8 but I've sent it to the client to preview and they have come back saying that the question where I've used the checkbox component aren't visible and that in there place there appears to be a blank text box.

Can anyone help?

Checkbox Component?
I am trying to use a check box to set a cookie for a login. I need to decrease the size of the text that is next to the checkbob. But when I right click the check box to edit the component, that option is grayed out. Any thoughts?

Component Checkbox Help?
Hey.
Probably a simple quesiotn but i cant figure it out..
i have a checkbox Component, i named it check1
now all i want to get out of it ( about all u can do with a checkbox)
is a variable say, checkboxVar, to true or false depending on if the box is clicked or not...

Thanks

(all coding is happening on maintimeline please)


//VoS

Checkbox Component Help
hey all,

when i click on my checkbox component it selects but i am unable to deselect when clicked again for some reason??
this is the code i have relating to it it may have something to do with it? here is the code:


Code:
var agreement:Object = new Object();
agreement.click = function(oEvent:Object):Void {
if(oEvent.target.selected = true) {
trace("user agrees to the capture of their information");
} else if(oEvent.target.selected = false){
trace("user disagrees with the capture of their information");
}
};


agreement_terms.addEventListener("click", agreement);
cheers in advance peeps

Checkbox Component?
I am trying to use a check box to set a cookie for a login. I need to decrease the size of the text that is next to the checkbob. But when I right click the check box to edit the component, that option is grayed out. Any thoughts?

MX Checkbox Component
I am using an older MX Checkbox component. I am trying to insert it into a flash template I am modifying with and email form. Once the post data is sent to the PHP script I can handle it, but how do I send it?
I name the checkbox check1.
What I want to do I guess is somehow say if check1's value = true send this to PHP "Yes I have checked this box", if not then send nothing.
Anyone have any idea how I would script this? (Below is the code I am adding it to just for completeness sake.


Code:
rec="jennk@san.rr.com";
serv="php";

var fields_descriptions= Array ("",
Array("t1", "your_name", "Your Name:"),
Array("t2", "your_email", "Your Email:"),
Array("t3", "phone", "Phone"),
Array("t4", "message", "Message:"),
Array("t5", "field_2", "E-mail:"),
Array("t6", "field_3", "Address:"),
Array("t7", "field_4", "fax:")
);

function reset_txt(name,name2,value) {
path=eval(_target);
path[name2]=value;

this[name].onSetFocus=function() {
path=eval(_target);
if(path[name2]==value) { path[name2]="";}
}

this[name].onKillFocus=function() {
path=eval(_target);
if(path[name2]=="") { path[name2]=value;}
}
}


for (i=1; i<=fields_descriptions.length; i++) {
reset_txt("t"+i, fields_descriptions[i][1], fields_descriptions[i][2]);
}

CheckBox Component
Hello,
i made a form which include checkBox components,i'm using this code to trace the selected lable

Code:

Form1 = _root.for_text.contents;
// create a common group for our
// checkboxes by setting a property called group
GROUP_NAME_STR1 = "firstQuestion1";
_root.for_text.contents.BasicSES.group = GROUP_NAME_STR1;
_root.for_text.contents.CompleteSERC.group = GROUP_NAME_STR1;
_root.for_text.contents.emailC.group = GROUP_NAME_STR1;
_root.for_text.contents.BannerAds.group = GROUP_NAME_STR1;
_root.for_text.contents.Other.group = GROUP_NAME_STR1;
for (var a in Form1) {
   var currentFormItem1 = Form1[a];
   // is the current form item a checkbox that is
   // part of our group that contains adjectives?
   // is the checkbox checked?
   var isChecked1 = currentFormItem1.selected;
   if (isChecked1) {
   // add the current adjective to the message
   theSite_promotion = currentFormItem1.label;
         
   trace(theSite_promotion);

   senderLoad.site_promotion = currentFormItem1.label;
   }
   }


so i get always the Site promotions but when i send it into the form i receive only one item not all values??

Checkbox Component Initial Value
Does anyone know how you can set the initial value of a checkbox component at runtime, without calling the change handler for the box. The MX manual rather obscurely refers to it:

Although calling this method overrides the Initial Value parameter value specified in authoring, do not use the method for this purpose because it also triggers the associated change handler function. To set the Initial Value parameter of a check box at runtime, use FCheckBox.setStyleProperty.

, but which styleproperty should be set?

Any clues?

cheers

PBH

Checkbox Component Not Working
This is my first time using the new MX components and I am having trouble. I am trying to create 3 different check boxes. I have assigned each one a name. I am trying to retrieve the "true" or "false" values that are created by the checkbox either being checked or not. The properties panels says the default value is "false" but when I "trace" the check box's name, it comes up undefined whether the box is checked or not. I had assumed that when you named the checkbox, that Flash was declaring a variable by that name (like it does with dynamic text fields) Is this not true? How would I declare the variable manually?

Thanks

Checkbox In DataGrid Component
Hey all,

I have searched the documentation to no avail. Maybe one of you can help.

I have a dataGrid component that has a column named "Remove". I use .setCellSymbol() to make that column use checkboxes to represent the boolean values. However, when I do this it becomes impossible to edit the value. The editHandler that I set with .setEditHandler executes when I edit a text field, but not when I check/uncheck a box. Also, when I loop through the rows, the original boolean value is returned, not what I checked or unchecked.

Any ideas as to how to make the changes to the checkbox carry over to the data?

Thanks in advance.

Remember CheckBox-component Value?
Hi, What I want to do in FlashMX is simple.

A flash-form out of two frames. First frame has a next button, while the second has a back (and submit) button.

The firstframe has a checkbox-component with the name : checkFOOD

The function NextStep is called when the next button is pressed and looks like this:

function NextStep () {
var FOODChecked=checkFOOD.getValue();
nextFrame();
}

I was hoping to store the value from checkFOOD in the variable FOODChecked. That way I could restore the situation if a user needs to go back from the second frame to the first.

However two simple trace-statements, one just before the nextframe-statement in the function NextStep and another on line 1 of frame 2 have learned me that the variable FOODchecked is always set to false when we go to the following frame.

Strange no?? Or is it me??

How can I remember the value of a checkbox?

Checkbox Component V2 And Getting Values
So I have the latest and greatest Flash MX 2004 Pro and have dragged a checkbox component onto my stage and called it: selectAll_ch .

With V2 components, there is no change handler so in order to get the value I try adding this code directly to the instance of the checkbox:

on(click){
trace(selectAll_ch.getValue());
trace(this.getValue());
this.setLabel(this.getValue());
}

This results in two "undefined"s being printed to the trace window and the label being set to "undefined".

How do you get an on click event to give you the true / false value for the checkbox.

I am stumped!

Much thanks in advance,
Matt

Checkbox Component Variables
so i have been searching and can't really find anything good on how to send variables w/ the checkbox component. I have a contact form, which emails the variables via php using:

loadVariablesNum(mailform, 0, "POST");


works great, no problem. But i want to include a checkbox sections so users can check products of interest. How can i send that (checkbox) information to the php for emailing??

Copyright © 2005-08 www.BigResource.com, All rights reserved