PDA

Volledige versie bekijken : if (de checkbox == aangevinkt) {


dj_kris
%Europe/Berlin %734 %2005, 18:37
hallo,

ik heb een checkbox in mijn flashmovie staan die heet C1,

en dan wil ik in actionscript zoiets hebben

if (C1 == ?aangevinkt?) {
gotoAndStop("verder");
}

weet iemand hoe ik zoiets kan maken?

alvast bedankt

Dauntless
%Europe/Berlin %740 %2005, 18:46
Druk op F1, typ 'checkbox class' in. Links zie je dan 'CheckBox class' staan. Klik daar op. Scrol door het lijstje van methods en properties tot je iets ziet wat interesant kan zijn (er staat namelijk telkens een handige beschrijving naast).
Zo kom je uit op: CheckBox.selected;

CheckBox.selected
Availability
Flash Player 6 (6.0 79.0).

Edition
Flash MX 2004.

Usage
checkBoxInstance.selected

Description
Property; a Boolean value that selects (true) or deselects (false) the check box.

Example
The following example selects the instance checkbox1:

checkbox1.selected = true;

dj_kris
%Europe/Berlin %749 %2005, 18:59
aha!
ik had zelf if (T1.selected == "100") { gedaan, net als met _visible ensow maar niet true :I

Dauntless
%Europe/Berlin %757 %2005, 19:10
Hehe. Maar ik wou maar zeggen dat je zo'n dingen heel snel in de help files vindt :).