Using Component Inspector, I can control input dynamically.
But I can?t find a way to control checkboxes.
[http://www.mobil-e.dk/turbineQ/ho_correct_statement.jpg
I am very thankfull for ansvers to this post
derobinson - 24 Aug 2006 15:10 GMT
Something like this:
if (myVar == "checked") {
myCheckbox.selected = true;
} else {
myCheckbox.selected = false;
}
Hope that helps!
kengen - 25 Aug 2006 07:09 GMT
Thank you very much for your answer
Because I am absolutely new in developing Flash applications, I have
difficulties to find the script area, that controls the checkboxes.
The Component Inspector is very userfriendly, but where is the code behind the
checkboxes?
/KEN - From Denmark
derobinson - 25 Aug 2006 14:50 GMT
Components are defined in Actionscipt classes that are automatically imported
at compile-time. For the most part, you don't really need to mess with that
source code. Instead, you just make use of the properties and methods exposed
by that class. Consulting the Help Docs will give you everything you need to
know there> here's the Live Docs link for the check box:
http://livedocs.macromedia.com/flash/8/main/00003147.html
If you're still interesting in looking at the guts of it all, on a Windows
box, the path to the file is something like this:
C:\Program Files\Macromedia\Flash 8\en\First
Run\Classes\mx\controls\CheckBox.as
Cheers!
kengen - 29 Aug 2006 14:22 GMT
Thank you very much for your time David.
I found a solution using your script id?a in my aspx feed
/Ken
derobinson - 29 Aug 2006 15:16 GMT
Glad to hear it worked Ken!
Good luck!