I think you just need a public function in your component with the same 
name as the component with no arguments. This will be called as the 
constructor of your component. You can't have a constructor that takes 
parameters though.

eg.

MyComp.mxml

<mx:Script>
 <![CDATA[
    public function MyComp()
    {
        super();

        // do some constructor stuff
    }
  ]]>
</mx:Script>

--- In [email protected], "Marvin Froeder" <[EMAIL PROTECTED]> wrote:
>
> Is possible to create a Constructor in MXML files?
> 
> Marvin
>







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to