A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Public function problem

  1. #1
    Junior Member
    Join Date
    Jul 2007
    Posts
    26

    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.

  2. #2
    Junior Member
    Join Date
    Jul 2007
    Posts
    26
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center