Hello, I am creating a custom component and have 2 questions regarding it:
1) One way, I am thinking is to create actionscript class and use it. I can add controls using addChild method. But how can I set absolute position of the control. 2) The other way was to create MXML component and place all controls through the help of designer. But is it possible, that I can access methods created in MXML component. For example: ========================================================== <?xml version="1.0" encoding="utf-8"?> <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="356" height="38"> <mx:Label x="41" y="8" text="text" fontFamily="verdana" fontSize="12" fontWeight="bold" height="20"/> <mx:Script> <![CDATA[ public function setTempMethod():void { } ]]> </mx:Script> </mx:Canvas> ============================================================= I have tried to access "setTempMethod" from application but it wasnt allowing me to do so. So, I need help so I can create methods in components which can be used outside the component.

