Trying to learn Flex Builder 3, so I created an mxml component consisting of three checkboxes on a Canvas. I told the dialog to extend Canvas. In my HelloWord example project (WindowedApplication), I refer to this mxml component like this:
<?xml version="1.0" encoding="utf-8"?>
creationComplete = "initApp()" >
and the custom widget with three checkboxes is correctly displayed when I run my HelloWorld WindowedApplication.
So far so good!
Now I wish to implement a public method in that mxml component
So I've inserted into the mxlm definition of TrioCheckBox the following code block:
public function getCheckedValuesAsString():String
and here's how I'm invoking the method in the HelloWorld app:
public function initApp():void
But when I do so, there is this error:
1061: Call to a possibly undefined method getValuesAsString() through a reference with static type MyComponents:TrioCheckBox.
What am I doing wrong? Why is the getValuesAsString() method "possibly undefined"?
Your method is named "getCheckedValuesAsString()" but you are calling getValuesAsString().
If this post answered your question or helped, please mark it as such.
I could have sworn I let the code-complete genie pluck that method name from the list.