Have you imported Form1 and Form2?
Tracy Spratt, Lariat Services, development services available _____ From: [email protected] [mailto:[email protected]] On Behalf Of raja_s_patil Sent: Tuesday, April 14, 2009 1:47 PM To: [email protected] Subject: [flexcoders] Re: Create mxml custom component in a actionscript event handler thanks Tracy Spratt > > What error? > ReferenceError: Error #1065: Variable Form1 is not defined. at global/flash.utils::getDefinitionByName() at MyFirst/menuSelected()[I:\Flex\RSP_TESTS\MyFirst\MyFirst.mxml:31] at MyFirst/___MyFirst_MenuTree1_menuSelected()[I:\Flex\RSP_TESTS\MyFirst\MyFirs t.mxml:42] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\ framework\src\mx\core\UIComponent.as:9298] at MenuTree/menuSelected()[I:\Flex\RSP_TESTS\MyFirst\MenuTree.mxml:52] at MenuTree/___MenuTree_Tree1_itemClick()[I:\Flex\RSP_TESTS\MyFirst\MenuTree.mx ml:7] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\ framework\src\mx\core\UIComponent.as:9298] at mx.controls.listClasses::ListBase/mouseClickHandler()[C:\autobuild\3.2.0\fra meworks\projects\framework\src\mx\controls\listClasses\ListBase.as:9040] at mx.controls::Tree/mouseClickHandler()[C:\autobuild\3.2.0\frameworks\projects \framework\src\mx\controls\Tree.as:2922] This is what a popup window in browser has printed The browser is firefox, Flex builder 3 and the application is a evaluation pilot one nothing special in it no database connectivity etc. etc. It contains two forms, one custom mxml component with custom event, one custom event class and a general utility functions class. Thanks and best regards Raja

