Also watch out when using the Object return type. There is a new type called "*" for handling untyped data. Prior Object would work but it has been tightened down a bit.
Cheers, Cynergy Systems, Inc. Theodore Patrick Sr. Consultant [EMAIL PROTECTED] tel: 1.866.CYNERGY http://www.cynergysystems.com > -----Original Message----- > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Ted Patrick > Sent: Tuesday, March 28, 2006 3:51 PM > To: flexcoders@yahoogroups.com > Subject: RE: [flexcoders] Re: Menu Bar Killing me. Can someone help. > > Jeremy, > > With Flex 2 Beta 2 make sure to use return types for all functions. There > are some hidden gotchas if you do not do this. In the function below I > added the return type of "void". > > Try: > > function menuHandler( oEvent : Object ) : void > { > currentState = oEvent.menuItem.data; > } > > That error keeps biting me also! > > Cheers, > > Cynergy Systems, Inc. > Theodore Patrick > Sr. Consultant > [EMAIL PROTECTED] > tel: 1.866.CYNERGY > http://www.cynergysystems.com > ________________________________________ > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Jeremy Rottman > Sent: Tuesday, March 28, 2006 3:40 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: Menu Bar Killing me. Can someone help. > > With what you suggested, it changes the state to a blank screen, > instead of showing the state it should have called. > > Here is what I am trying now. > > function menuHandler(oEvent:Object) { > currentState = oEvent.menuItem.data; > } > > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.385 / Virus Database: 268.3.2/294 - Release Date: 3/27/2006 > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com > Yahoo! Groups Links > > > > > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.385 / Virus Database: 268.3.2/294 - Release Date: 3/27/2006 > -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.3.2/294 - Release Date: 3/27/2006 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/