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
FlashKit > Flash Help > Flash MX
Posted on: 06-10-2003, 12:53 AM
View Complete Forum Thread with Replies
Sponsored Links:
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!
View Replies !
View Related
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?
View Replies !
View Related
Dynamically Loading Text, Within A Mc, Within The Scrollpane Component?
I can load dynamic text fine, using code from a tutorial:
but1.onRelease=function(){
loadVariablesNum ("contact.txt", 0);
}
This loads the text file into _root (level0). Be aware that if your text box is inside an mc you will need to load the text file accordingly
eg
but1.onRelease=function(){
loadVariablesNum ("contact.txt", "_root.mcInstanceName");
}
The second part is the bit I need working. When I run the application, for some odd reason the text file opens up in a separate browser window. Also I want this movie clip which contains the dynamic text to be called in the scrollpane component so the scrollbars are created automatically, because it is a pain in the *** building your own. Surely there is a simple solution to this?
Or is there a way to load a text file directly from the scrollpane component?
Any help is appreciated, thanks a lot.
Jhem
View Replies !
View Related
Scrolling Dynamically Loaded Text Without The Scrollpane Component
Hello, I am wanting to create scrolling dynamically loaded text, but without the scrollpane component in Flash MX. I have tried changing the component look and feel, but this is proving difficult. I created the movie a while ago and the script I have used to scroll the text is:-
onClipEvent (load) {
news_text = "<P ALIGN="Left"><FONT FACE="verdana" SIZE="11" COLOR="#FFFFFF"><B>01/02/02</B> - </P> </FONT>";
}
onClipEvent (enterFrame) {
if (scrolling == "up") {
news_text.scroll--;
}
if (scrolling == "down") {
news_text.scroll++;
}
}
I have put an example of the buttons I want to use at
www.leemawdsley.co.uk/mydesign.swf.
Is there an easy way to adapt this script to dynamically load the text, so it easier to update.
Cheers
max
View Replies !
View Related
Dynamically Create Text Area Component MX04
Hey Peeps,
Is there anyway you can dynamically create TextArea Component in flash?
I mean you can dynamically create a movie clip using AS like
mynew_mc.createEmptyMovieClip("newmc", 0);
I basically want to create a TextArea field using the text field area component on the fly using AS.
View Replies !
View Related
Dynamically Create Text Area Component MX04
Hey Peeps,
Is there anyway you can dynamically create TextArea Component in flash?
I mean you can dynamically create a movie clip using AS like
mynew_mc.createEmptyMovieClip("newmc", 0);
I basically want to create a TextArea field using the text field area component on the fly using AS.
View Replies !
View Related
DYNAMICALLY CREATING CheckBox SmartClip
Hello,
I am trying to dynamically create the CheckBox Smartclip.
I am using the DuplicateMovieClip. This duplicates
the checkbox fine. However, since I am unable (as far as I know) to uniquely assing the _name parameter of this smart clip, the checkbox does not function.
Help!
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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/
View Replies !
View Related
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?
View Replies !
View Related
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.
View Replies !
View Related
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);
}
View Replies !
View Related
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
View Replies !
View Related
[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
View Replies !
View Related
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?
View Replies !
View Related
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?
View Replies !
View Related
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?
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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?
View Replies !
View Related
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]);
}
View Replies !
View Related
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??
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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.
View Replies !
View Related
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?
View Replies !
View Related
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
View Replies !
View Related
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??
View Replies !
View Related
Component Checkbox Issue
Hello,
I am using Flash 2004 and I have built a simple flash component that uses a few check boxes to turn some bullet locations on/off on a map of the U.S.A.
Right now I have 4 checkboxes. One represents "Clubs", one represents "Residences", one represents "Upcoming Locations", and one represents the one's that are a club and also a residence. I was trying to right some conditional code to have the "clubs" checkbox" listen to the "residence" checkbox, and if both the clubs and residence are unchecked, the the bullets for the locations that are both clubs and/or a residence turn off, but the code did not work, it just did the first part of the condition right away which was turn off clubs, or turn off residences, so I had to compromise and add the extra check box "clubs/residences". Is there a conditional statement that would work so I only need 2 check boxes? One for "Clubs, one for "Residences"? so the locations that are both a club and a residence do not go invisible untill both "Clubs" and "Residences" are unchecked? Hope this makes sense. Maybe this will clear it up. Take a look at the demo and you can see that it works. See link below. I want to lose the "Clubs/Resideces" checkbox if I can. Thanks in advance for your help.
http://www.incogneato.tv/realestate/index.html
View Replies !
View Related
Simple Checkbox Component Help
I am building a advanced flash email form and I need to have one checkbox in it that when the email is submitted, it either has True if it was checked upon submission, or False if it wasn't. Can anyone chime in on how to do this or point me in the direction of learning how to do this, as I have only found as2.0 examples of this.
View Replies !
View Related
Component Checkbox In Form
Heres what I am up against!
I have a series of 20 checkboxes to check for certain responses from a simple form. Only problem being that I dont want to have to check each of the 20 checkboxes to get the required values, so I added a loop to check them for me. Initially only the first six and then so on and so on.
Problem being that the variables are always '0'
Anyone worked on something similiar or can point me in the right direction?
Attach Code
getResults.onRelease = function() {
var variablename:Number = 0;
tl = this;
for (var i = 1; i<=6; i++) {
if (tl["selectionBox"+i].selected == "True") {
trace("YIPPEEEEEEEEEE");
// var variablename= (variablename+1);
}
}
//this works
/*if (selectionBox1.selected == true) {
variablename= (variablename+1);
trace("Yippee");
}*/
trace(variablename);
};
View Replies !
View Related
Rollover For Checkbox Component
I'm working with the CheckBox component for making a quiz. I've got CB components labeled A, B, C, etc. with a textfield next to them with the various possible answers. I want to have it so that the user can rollover or click the answer text to check off their answers just as if they had hit the tiny little check box.
I've got the checking/unchecking part working. But I would also like for rolling over the text to provide the same visual feedback as moving the pointer over the checkbox. And here I run into a dead end. I can't quite figure out how to do this.
Poking around a bit I found that if I set the checkboxes phase to rollover and invalidate() it I will see the result I expect. But I'm not sure if that is causing other problems.
Anybody know the "right" way to do this?
View Replies !
View Related
CheckBox Component Aaarrggghh
So I drag the Checkbox component to the stage of my existing movie/form. The Parameters give me three options: label, labelPlacement and selected. I change the label to my own subject but it's not the font or color of font i want to use!
I want to make the three CheckBoxes that I have in my form go through to my PHP script like everything else does on my form.
Here is my submit code
the last three - primary, vacation and investment are the CheckBoxes
on (release) {
if (firstname eq "firstname" or lastname eq "lastname" or address eq "address" or city eq "city" or state eq "state" or zipcode eq "zipcode" or email eq "email" or message eq "message" or primary eq "primary" or vacation eq "vacation" or investment eq "investment") {
stop();
} else {
loadVariablesNum("form.php", 0, "POST");
gotoAndStop(81);
}
}
Here is the PHP code:
<?PHP
$to = "myemail@rockin.com";
$firstname =$_POST['firstname'];
$lastname =$_POST['lastname'];
$address =$_POST['address'];
$city=$_POST['city'];
$state =$_POST['state'];
$zipcode =$_POST['zipcode'];
$email=$_POST['email'];
$message =$_POST['message'];
$primary =$_POST['primary'];
$vacation =$_POST['vacation'];
$investment =$_POST['investment'];
$msg .= "This message has been sent from your Contact Form
";
$msg .= "Firstname: $firstname
";
$msg .= "Lastname: $lastname
";
$msg .= "Address: $address
";
$msg .= "City: $city
";
$msg .= "State: $state
";
$msg .= "Zipcode: $zipcode
";
$msg .= "Email: $email
";
$msg .= "Message: $message
";
$msg .= "Primary: $primary
";
$msg .= "Vacation: $vacation
";
$msg .= "Investment: $investment
";
mail($to, $subject, $msg, "From: Vista Del Lago Form
Reply-To: $email
");
?>
I get the mail but and the CheckBoxs seem to work but Primary, Vacation and Investment are always blank no matter if they are checked or not. I know I am missing somthing but what I don't know. ANY HELP would be so appreciated Thank you!
~IronLion.
View Replies !
View Related
Checkbox Component Wordwrap
Hello,
I am trying to wordwrap the text that appears to the right of the checkbox in the checkbox component.
Basically, I have created a multiple choice quiz and need to make the possible answers wrap. I have tried using this.myCheckbox.label.wordWrap = true, but no dice.
Any help with this would be greatly appreciated.
Thanks!
View Replies !
View Related
CheckBox Component Question
On the MX Checkbox component, how can I change the default "true" and "false" values to "yes" and "no" values?
I have the form results dumping into an email and, due to the number of checkboxes, the true/false values are a little annoying for some people on the distribution list receiving the form results.
Thanks in advance.
View Replies !
View Related
Checkbox Component Scripting?
Hi I am developing a form with check boxes, I use flash mx 2004 pro., I used the predefined components ; just dragged a checkbox component from the components panel and the question is that I want to assig it a variable to be able to send it with the other variables to form.php to be emailed to me, so anyone have a tutorial for that or can explain it??
View Replies !
View Related
Checkbox Component In Emailable Form?
I've got a great php script that sends me an email with content typed in by useres through input text. I'd also like to have checkboxes or radio buttons, which send information through my php script but I don't know what event handler I should put in the checkbox.
View Replies !
View Related
Past Value Of A Checkbox Component To Global
i need to past the value of a checkbox component:
my code
_global.rep1a = q1a.getValue();
_global.rep1b = q1b.getValue();
_global.rep2a = q2a.getvalue();
_global.rep2b = q2b.getvalue();
_global.rep3a = q3a.getvalue();
_global.rep3b = q3b.getvalue();
_global.rep4a = q4a.getvalue();
_global.rep4b = q4b.getvalue();
_global.rep5a = q5a.getvalue();
_global.rep5b = q5b.getvalue();
_global.rep6a = q6a.getvalue();
_global.rep6b = q6b.getvalue();
_global.rep7a = q7a.getvalue();
_global.rep7b = q7b.getvalue();
_global.rep8a = q8a.getvalue();
_global.rep8b = q8b.getvalue();
_global.rep9a = q9a.getvalue();
_global.rep9b = q9b.getvalue();
_global.rep10a = q10a.getvalue();
_global.rep10b = q10b.getvalue();
where q1a, q1b...are instancename of components
I tried this but doesn't work
for (1; i<=10; i++) {
_global["rep"+i+"a"] = "q"+i+"a".getValue();
_global["rep"+i+"b"] = "q"+i+"b".getValue();
trace(_global["rep"+i+"a"])
}
View Replies !
View Related
Checkbox Component Problem ( Label )
Hi,
I have a movieclip in my library with linkage name mcCheck. This movieclip contains a checkbox component with instance name cmpCheckbox. Using the parameter panel for the checkbox i have removed the label text.
Now I am trying yo dynamically populate the checkbox label but it doesnt seem to be working: any help would be appreciated..am i missing somethign obvious?
Code:
var checkbox = _root.attachMovie("mcCheck", "mcCheck", _root.getNextHighestDepth());
trace(checkbox.cmpCheckbox); // this gives _level0.mcCheck.cmpCheckbox hence path is correct
checkbox.cmpCheckbox.label = "hello"; //this does not do anything the label remains empty
trace(checkbox.cmpCheckbox.label); //this traces out "hello"
Any help appreciated..
cheers
View Replies !
View Related
[MX04] Checkbox Component Labels
I've read a number of threads that state checkbox labels can be formatted ... but how is it 'actually' done? Is it actually possible to change the font and size?
I've been able to dynamically change the label text, but not the formatting.
Does anyone have a link to a working example? or am I going to have to make my checkboxes the old fashion way?
View Replies !
View Related
Tween Flash Checkbox Component?
1. Does flash let you apply a tween (move) to a checkbox component? I tried doing it already and it plays correctly on the timeline when I go frame per frame, but when I play/run the .fla file, it doesnt display correctly.
2. The functionality I am trying to get of it is that I have a button that says "Close", while I have another checkbox that gives the user the option to never see the flash menu again. The idea is that if the user checks the checkbox and then clicks the close button, the flash will never pop up again. However, if the user doesnt check the checkbox, the flash menu will keep popping up again everytime the user goes back to the page.
Thanks.
View Replies !
View Related
Checkbox Component To Call Movieclip
I'm trying to call a movieclip dependent on which checkboxes are selected. The user selects checkboxes and the presses a button to call the movie. How do I set the function for the button to check the values (true or false) of the checkboxes to decide which movie it is to play. Each different combination of checkbox selections calls a different movie. I need guidance on how to do this. Do I need to do something specific with the checkboxes? As of now I have something like this..
function dressUp ():Void {
if (head1=true && top1=true && bottom1=true) {
outfit_MC.gotoAndPlay (1);
else (head1=true && top2=true && bottom2=true) {
outfit2_MC.gotoAndPlay (1);
}
}
Any guidance would be greatly appreciated.
Cara
cpeckens@du.edu
View Replies !
View Related
Component Checkbox Uncheck Prob
Hello.
Im tryin to make checkboxes, where if you check one, others uncheck. the only way so far i have seen is to write func for every box, like
if box one checked uncheck all others.
if box two is checked, uncheck all others and so on.
i know this isnt right.
Right would be like this:
func checkIT(box) {
put all boxes false;
put [box] true;
}
but this gives me continuos loop error. i think i know even why it does so : i check the box with mouse, and it tries to check it with code too.
is there any other way, so that i can optimize it?
thank you.
View Replies !
View Related
Checkbox Component Depth Problem
my flash movie shows on some mouseovers tooltip-like text-popups. now i need some checkboxes. but when i use the component (flash8) the whole depth structure gets messed up and the tooltips and other movieclips are shown at other depths than i set in my classes and as-sources.
if i deactivate "export for actionscript" for the checkbox component in my library, everything is working fine.
i need create the checkboxes with as. i also saw a lot of posts about problems like this. but no answer solved this issue. i also tried using DepthManager-class but this is also not working.
any ideas?
i dont want to make my own checkbox-class.
thanks
.mabe
View Replies !
View Related
Checkbox Component Not Working With Form
ok so i;ve gon back to the down a dirty way of doing this...
http://www.lightningmedia.com/form_test.php (technical info tab)
each text field has a Var: Name, email, and company
i've used the CheckBox component
i;ve placed the fallowing code on the submit button
on (release) {
if (!email.length || email.indexOf("@") == -1 || email.indexOf(".") == -1) {
EmailStatus = "Please enter a valid E-mail address";
} else {
loadVariablesNum("includes/techinfo_signup.php", 0, "POST");
this.gotoAndStop(2);
}
}
easy enough right?
everything works fine but the CheckBox......
i'm trying to send a 1 or 0 to the database.
i've given the component a
fieldname: newsletter (the same as the field in the database)
data type: Boolean
required: true
Read only: false
kind: data
formatter:none
encoding:none
default value:1
path: includes/techinfo_signup.php
storage type: simple
so what am i missing? i'm at a loss...
thanks again
View Replies !
View Related
|