Ok, what happens if you just try to instantiate a Form1? If the code is not finding this class then you certainly can't proceed.
Tracy Spratt, Lariat Services, development services available _____ From: [email protected] [mailto:[email protected]] On Behalf Of raja_s_patil Sent: Tuesday, April 14, 2009 8:52 PM To: [email protected] Subject: [flexcoders] Re: Create mxml custom component in a actionscript event handler Thanks Tracy Spratt > > Have you imported Form1 and Form2? > I tried import Form1; but no effect. How a import statement if Form1 and Form2 are in same source directory that of application ? The output directory is bin-debug within the source directory. Project directory is same as source directory. BTW if comments are removed how the code works, what happens when comments are put can u shed some light on these point ? Thanks and Best Regards Raja

