How can I find out how many checkboxes are checked, please!
Hello everyone,
I have been at it for hours and pretty much cannot think straight and would highly apprecaite your help on this. I have an array called myArr which has 5 elements in it. I then generate checkboxes and the number of checkboxes are matched with the myArr.length(); I would like to be able to find out what checkboxes are check/selected before moving to the next screen. User will need to click on a "NEXT' button in order to move to the next screen. Next button is disabled until user selects the checkbox(s).
here is the code:
var cb:CheckBox;
captionArr:Array = new Array('img1' , 'img2', 'img3', 'img4', 'img5');
myArr:Array = new Array('c1', 'c2', 'c3', 'c4', 'c5');
for(var i:Number=0; i < myArr.length; i++)
cb = new CheckBox();
cb.y = i * 25;
cb.label = captionArr[i]; // CHECKBOX LABELS
addChild(cb);
cb.addEventListener(MouseEvent.CLICK, clickHandler);
function clickHandler(e:MouseEvent):void
if(e.target.selected)
trace(''SELECTED");
else if(!e.target.selected)
trace("NOT SELECTED");
Thanks.
use checkCBF():
var cb:CheckBox;
captionArr:Array = new Array('img1' , 'img2', 'img3', 'img4', 'img5');
myArr:Array = new Array('c1', 'c2', 'c3', 'c4', 'c5');
var cbA:Array=[];
for(var i:Number=0; i < myArr.length; i++)
cb = new CheckBox();
cb.y = i * 25;
cb.label = captionArr[i]; // CHECKBOX LABELS
cbA.push(cb);
addChild(cb);
cb.addEventListener(MouseEvent.CLICK, clickHandler);
function clickHandler(e:MouseEvent):void
if(e.target.selected)
trace(''SELECTED");
else if(!e.target.selected)
trace("NOT SELECTED");
function checkCBF(){
for(var i:Number=0; i < cbA.length; i++){
if(cbA[i].selected){
//cbA[i] selected
} else {
//cbA[i] not selected
Similar Messages
-
How can i find out how many users can login as sysdba using password file
can any one please tell me how can i find out how many users can login as sysdba using password file
please reply
asifSYS@db102 SQL> select * from v$pwfile_users;
USERNAME SYSDB SYSOP
SYS TRUE TRUE
SYS@db102 SQL> -
How can I find out how much space my photo library is taking up on my hard drive?
How can I find out how much space my photo library is taking up on my hard drive?
Lizz Holmes wrote:
How can I find out how much space my photo library is taking up on my hard drive?
Locate iPhoto Library (the default location is <~/Documents/Pictures/iPhoto Library>), select it, and choose File > Get Info. -
How can one find out how much hard drive space the apps and media are using?
how can one find out how much hard drive space the apps and media are using?
See Here > Where did my Disk Space go?
And Here > The Storage Display -
HT2736 How can I find out how much is left on my ITunes gift card?
How can I find out how much is left on my ITunes gift card?
My account's balance shows at the top left of the store's page on my computer's iTunes, and by logging in to view my account on it (via the Store > View Account menu option). On my iPad and iPhone it shows at the bottom of, for example, the Featured tab in the App Store app under my account id (or you can view your account via Settings > iTunes & App Stores and it should show on the screen that you are taken to)
-
How can i find out how much memory is left on macbook pro
how can i find out how much memory is left on macbook pro
From the memory tab in Activity Monitor.
-
HOW CAN I FIND OUT HOW MY ACCOUNT WAS BILLED 14 GB OVERAGE AND MOST OF IT WAS IN 24 HOURS?
it sure sounds like the battery is defect
-
i wanna get my ipod touch 4g 8gb screen repaired. how can i find out how much it will cost? anyone know?
Apple wil exchange your iPod for a refurbished one for $99.
Apple - Support - iPod - Repair pricing
For how see:
Apple - Support - iPod - Service FAQ
That is about the same price as a third-party place like this one.
iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens -
How can I find out how much space left on a hard drive connected to an airport?
When I go into the finder and choose the AirPort, the external drive that's hooked up to the airport shows up just fine, though its icon is a folder, not a "hard drive" icon. But if I try to do "info" on the drive, it says "zero KB on disk." I know this isn't true, since my entire iTunes library is on that disk. How can I find out how much room is left on that hard drive?
You should be able to see both the total capacity and remaining available on the Disks tab within the AirPort Utility.
ref: AirPort Utility > Select the Extreme > Manual Setup > Disks > Disks tab, and then, click on the shared disk volume name.
Although the following is an AirPort Utility screen-shot of a Time Capsule, it should look identical for the AirPort Extreme. -
HT1689 How can I find out what 5 devices are connected to my itunes account
How can I find out what 5 devices are connected to my iTunes account?
There is no list available from your end.
(78933) -
How can I find out how far away I am from my junct...
How can I find out how far away I am from my junction box?
My post code is KT198UB
If you find out is that a good distance?Jhey wrote:
According to SamKnows you are around 824 metres away, mine is correct at 100m.
Jhey, I'm very interested in knowing where you can get this distance from SamKnows becuase as far as I am aware this information is not held with the OpenReach databases and the only way you can find out exactly is to have an OpenReach engineer come to you home and measure it with the test euipment they normally carry. It's also not on the standrad screen they use for installation or testing either.
Infinidim
Megadodo Publications
Ursa Minor Beta
If you want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side
If the the reply answers your question then please mark as ’Mark as Accepted Solution’ -
How can I find out what apple IDs are tied to an email address
We are trying to set up FaceTime and got the verification error on the email address. We went in to the Apple ID account and when we verify the email address, it tells us that it's tied to another AppleID. My daughter has 3 other AppleIDs and we've checked each one of them and the email address is not tied to any of them.
How can we find out what apple ID is tied to this email address?
We have used the "Forgot my Apple ID" function and used all 3 of the different email addresses she's used on the accounts and when we access the one that says there's a duplicate, it takes us to the account and it's the one with the email address that I noted above.
Any thougts or help?
Thanks!Itunes limit includes computers.
http://www.ilounge.com/index.php/articles/comments/managing-devices-in-your-itun es-store-account/ -
How can I find out how much space iMovie content is taking up on my iMac?
My hard drive is almost full. I have begun deleting photos, but I think my videos are taking up the majority of the space on my iMac's hard drive. How can I find out exactly how much space my videos are taking up?
Thanks!, About This Mac, then click on the Storage tab at the top to see a simple graphic display, with detailed numbers below.
(This example is from a new Mac with very little installed.) -
My Mac is telling me that my hard drive is almost full, i have used 7.65 GB for Audio. 16.58 GB for Movies, 9.89 GB for photos, 788.6 MB for Apps and 284.03 GB for Other. how can i find out what "other" is so I can delete it? I hope someone can help me.
If OS X is reporting you need to remove some items you obviously have a more severe issue.
To fix your issue is likely too complicated and lengthy to go into all of it here as it sounds like a OS X issue, it will require the services of person very familiar and experienced with Mac's to first recover your data and then restore OS X back to a functional state which may or may not require new hardware/software installed.
If your under warranty or AppleCare, take it in for service.
You can also hire the services of a local Mac computer support technician experienced in these matters.
Have them look at your Wifi, RAM amount, extra storage and computer backup proceedures in the process.
Good Luck. -
How can i find out which apple ids are associated with my ipad
When I sync my iPad I get the message that some songs cannot be updated because only 5 Apple IDs can be associated with an iPad. I am aware of three that we use in my family - mine and my two sons. How can I find out what other Apple IDs are associated with my iPad?
Itunes limit includes computers.
http://www.ilounge.com/index.php/articles/comments/managing-devices-in-your-itun es-store-account/ -
How can i find out how much bandwidth my server has?
I have a mac pro running os x leopard server and im using this for my companies server. How can i find put how much bandwidth the server has?
Thanks Sam xWhat you are asking really doesnt mean much. Well, it actually means too many different things:
either Available network bandwidth: The internet, or local area connection (where are your clients?)
or Available network bandwidth: How much data will your ISP allow you to transmit as part of your plan?
Can you be more specific?
Maybe you are looking for
-
ICloud with personal email - Calendar Event Sharing
Calendar event sharing seems to be a pain for a lot of people especially because of the new iCloud and even more so if you are a legacy .Me or .Mac user. First of all if you are a first time iCloud user and you entered your own personal e-mail addres
-
QoS / Native VLAN Issue - Please HELP! :)
I've purchased 10 Cisco Aironet 2600 AP’s (AIR-SAP2602I-E-K9 standalone rather than controller based). I’ve configured the WAP’s (or the first WAP I’m going to configure and then pull the configuration from and push to the others) with 2 SSID’s. One
-
3d render in NVIDIA 5500FX (Adobe photoshop cs5)
Hello Adobe team... I have a problem in my adobe photoshop cs5.. I cannot render 3d using my NVIDIA 5500 Fx... help me pls.. Is there any patch or update for this???
-
Save a Response as a PDF File - Help
I've imported a PDF form and have it functioning. I understood I could download selectted individual responses with the fields embedded in the original form design. A great idea. However although the help pages tell me I should be able to see an opti
-
When I open CS6 I get the following error: The procedure entry point ?initialize@Library@OGL@AIF@@SAXPEAVContext@23AEBVInitOptions@ExtensionManager@23@@Z could not be located in the dynamic link library aif_ogl.dll How can I repair this? Thanks, Terr