2 Replies Latest reply on Jul 11, 2007 8:15 AM by in480

    Call Function From MXML Component

    in480 Level 1
      I am using MXML to create components that I use within my application. I have one MXML file that contains a list with a custom itemRenderer that is in another MXML file. I have an actionscript file with a function that I want to call from the itemRenderer.

      If I call the function from my main application, everything works fine. If I try to call it from one of the other MXML files, I get a 1180 Call to a possibly undefined function error.

      Is there a special way that I need to use to call the function?

      The main MXML file is in the root directory, the actionscript file is in a folder called functions, and the MXML files are in a folder called components.

      Thank you for any help.