calling a method in a custom component
I've created a custom compontent, and in that component, I have an mx-script block with some parameters and methods. However, I can't seem to properly call the method in an instance of the custom compontent. Here is an example of what I'm trying to do:
<v:TopNavButton param1="1" param2="2" creationComplete="method();"/>
I get the error that this is a call to a possibly undefined method. What format should I use to properly use the method?