I’m in the process of writing a Java Boolean equivalent in Actionscript since Actionscript Boolean does not support null so I have to write my custom boolean.
Does any have any idea how can I do this ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In order to make a custom boolean class, you will need to start by constructing that class.
Here is a link to an Adobe article giving a brief intro on classes.
You will probably want lots of functionality in this class, similar to Java, so look through this page to see exactly what the Java Boolean class can do.
I am unsure if ActionScript has anything similar to the Comparable interface that Java Provides, so your conditional statements may require a method call to the Boolean object to return the primitive data, i.e.:
I hope this helps, as you question was slightly vague.