The mxml component will have a tag called id... if you have not already set a name for the mxml component then give it a proper id.
for example. <mx:Canvas .......... id ="canvas1"......> .... ... ... </mx:Canvas> inside the mx:Script you can do operations on this particular mxml component . canvas1.addChild( new Sprite()); On Thu, Feb 12, 2009 at 2:31 PM, akshay gore <[email protected]> wrote: > > hi, > How can i create the instance becoz i hv created only the method > in script tag .. now i want to call this method .. How can i do this?? > > On Feb 12, 1:57 pm, "Flexian_NGL ,@Bangalore" <[email protected]> > wrote: > > hi, > > > > create an instance of that component and call that method. > > > > -- > > Thanks & Regards > > GK > > > > -- Regards, Ganaraj P R --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

