Hi, That is because compiler has already generated .as files for you with the class name as a name of your mxml component. if you use "-keep" as compiler tag you will get to see all generated action script.
Hence it very correctly shows the error as "Multiple constructor definitions found". You will also notice that only UIcomponent can be added to mxml file using a declarative sytanx like : <mx:abc../> and dispatches multiple event during their life cycle , like initialize, creationComplete etc. which can be tracked in Application. Rest of tags that can be added to MXML ex : RemoteObject, RadioButtonGroup, ArrayCollection etc implements IMXMLObject and hence can be added like <mx:.../> Read more about "IMXMLObject interface" very interesting stuff to know :) Hope this helps . Regards Mayur On Mon, Nov 2, 2009 at 10:02 PM, pradeepflex <[email protected]>wrote: > > Hi all, > > This is pradeep, > i have little bit confuse is > when we create mxml component mycanvas extends like canvas > in actionscipt we can write a constructor for mycanvas > but in case of mxml if i write in the script tag it shows an error. > > Please let me know the bottom line of this core conecpt. > > Regards, > Pradeep. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

