Because it is a common problem. Try putting a ToggleButtonBar in the main app first to prove it one way or another.
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of nxzone Sent: Tuesday, March 27, 2007 2:36 PM To: [email protected] Subject: [flexcoders] Re: TypeError: Error #1034: Type Coercion failed : Why you think this bug is due to this cause? Why loading the shared content before should solve the "Type Coercion failed: cannot convert mx.controls::[EMAIL PROTECTED] to mx.controls.ButtonBar" ? --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "Alex Harui" <[EMAIL PROTECTED]> wrote: > > Check out the shared code portion of my modules presentation at > blogs.adobe.com/aharui > > ________________________________ > > From: [email protected] <mailto:flexcoders%40yahoogroups.com> [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> ] On > Behalf Of nxzone > Sent: Monday, March 26, 2007 2:27 PM > To: [email protected] <mailto:flexcoders%40yahoogroups.com> > Subject: [flexcoders] Re: TypeError: Error #1034: Type Coercion failed : > > > > Same problem ... > Line 158 of ButtonBarButtonSkin.as... (parent.parent is a > ToggleButtonBar not a buttonbar) > var bar:ButtonBar = parent ? ButtonBar(parent.parent) : null; > > --- In [email protected] <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%40yahoogroups.com> > , "lrhazi" <lrhazi@> wrote: > > > > I get this annoying error often: > > > > TypeError: Error #1034: Type Coercion failed: cannot convert > > mx.controls::[EMAIL PROTECTED] to mx.controls.ButtonBar > > > > My app uses Modules and has a user login/logout functionality... I get > > the above error systematically when i logout of an account and login > > to a second one. > > > > Any hints on what to look for? > > > > Thank you very much. > > Mohamed~ > > >

