-
Public function problem
In my main app, I have this button:
<mx:Button id="list2Done" label="Done" click="step2Handler()"/>
And in my component, step2.mxml, I have a public function:
public function step2Handler():void {
// called when user clicks DONE
currentState = "";
next2.enabled = true;
}
Flex Builder shows an error, undefined function. Why?
And do I need to do anything special to target next2 or the state, which are both defined in the main app?
Thanks.
-
This keeps happening. There's a call to a function in the main app, as above "click=step2handler()"
The step2handler code is in the script block of the step2.mxml component, as a public function.
Am I missing something? Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|