Adobe Dreamweaver Forums



Last 10 THreads :         Charts: Gap between Vertical Axis and the chart area (Last Post : flexisawesome - Replies : 1 - Views : 2 )           »          Dragging components (Last Post : hsfrey - Replies : 4 - Views : 5 )           »          Pop up window using AS3 (Last Post : retsnomrev - Replies : 3 - Views : 4 )           »          can a combobox contain two different list seperated byvdivider ? (Last Post : v-Jay - Replies : 2 - Views : 6 )           »          Refreshing xml data in flex (Last Post : PiyushGiri01 - Replies : 2 - Views : 19 )           »          Integrating Captivate with ASP - SQL? (Last Post : bikturisint - Replies : 19 - Views : 131 )           »          Re: IPhone (Last Post : MiLSaN99 - Replies : 0 - Views : 1 )           »          Re: IPhone (Last Post : MiLSaN99 - Replies : 0 - Views : 1 )           »          Re: IPhone (Last Post : MiLSaN99 - Replies : 0 - Views : 1 )           »          Re: IPhone (Last Post : MiLSaN99 - Replies : 0 - Views : 1 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Macromedia Software > Director > Lingo
 
Tags:



Reply
  #1 (permalink)  
Old 11-10-2008, 04:03 PM
Almudever
 
Posts: n/a
Diggs:
Default Uing check boxes

Hello,

I am searching information about check boxes for create test quetions. If need to have some examples.
I would like one page to looking for them.

Thank's



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-17-2008, 04:04 PM
matthewmaday
 
Posts: n/a
Diggs:
Default Re: Uing check boxes

I am not sure if you posted the other question as well but the answer is the
same.

-- To detect the state of a check box
sprite(1).selected -- this will return boolean values (1 selected, 0 not
selected)

I created 3 functions for you which will show you how to work with check boxes.

on QUESTION_multipleChoice pSelect, pStartSN, pEndSN

-- this function will only allow the selection of one check box

-- pSelect [INT] the number of the sprite that was just selected
-- pStartSN [INT] the number of the first sprite in the range of check
boxes
-- pEndSN [INT] the number of the last sprite in the range of check
boxes

repeat with i = pStartSN to pEndSN

sprite(i).selected = (i=pSelect)

end repeat

end
--------
on QUESTION_returnSelectedCheckboxes pStartSN, pEndSN

-- this function will return all of the check boxes that are selected
between the defined range

-- pStartSN [INT] the number of the first sprite in the range of check
boxes
-- pEndSN [INT] the number of the last sprite in the range of check boxes

pList = []

repeat with i = pStartSN to pEndSN
if sprite(i).selected then append pList, i
end repeat

return pList

end
--------
on QUESTION_clearSelectionBoxes pStartSN, pEndSN

-- this function will set all of the check boxes, within a defined range, to
not selected

-- pStartSN [INT] the number of the first sprite in the range of check
boxes
-- pEndSN [INT] the number of the last sprite in the range of check boxes

repeat with i = pStartSN to pEndSN
sprite(i).selected = 0
end repeat

end


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 07:38 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk