RE: [Flashcoders] MenuEvent causes 1046 error

2010-01-25 Thread Merrill, Jason
This is a Flex question. http://tech.groups.yahoo.com/group/flexcoders/ Jason Merrill Bank of America Global Learning Learning Performance Soluions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America

Re: [Flashcoders] MenuEvent causes 1046 error

2010-01-25 Thread Dave Watts
I have a menu bar component     mx:MenuBar id=mainMenu labelField=@label click={MenuEvent(event)}                 itemClick={MenuItemEvent(event)} Everytime I create a handler like this:     private function MenuItemEvent(e:MenuEvent):void I get a Type was not found or was not a

Re: [Flashcoders] MenuEvent causes 1046 error

2010-01-25 Thread William Chadwick
Dave, I'm following the example here: http://livedocs.adobe.com/flex/3/langref/mx/controls/MenuBar.html which has almost identical code: // Event handler for the MenuBar control's itemClick event. private function menuHandler(event:MenuEvent):void {

Re: [Flashcoders] MenuEvent causes 1046 error

2010-01-25 Thread Dave Watts
I'm following the example here: http://livedocs.adobe.com/flex/3/langref/mx/controls/MenuBar.html which has almost identical code:            // Event handler for the MenuBar control's itemClick event.            private function menuHandler(event:MenuEvent):void  {                    

Re: [Flashcoders] MenuEvent causes 1046 error

2010-01-25 Thread William Chadwick
Dave, Thanks! Not sure what I was thinkin' when I used the Adobe class name MenuEvent as a custom method name but that was the problem. An embarrassing problem to have so publicly. But, hey, it's Monday morning! About the coding conventions, thanks for your comments. I work for a medium sized

Re: [Flashcoders] MenuEvent causes 1046 error

2010-01-25 Thread Dave Watts
Not sure what I was thinkin' when I used the Adobe class name MenuEvent as a custom method name but that was the problem. An embarrassing problem to have so publicly. But, hey, it's Monday morning! No need to be embarrassed, people make that kind of mistake all the time. About the coding

Re: [Flashcoders] MenuEvent causes 1046 error

2010-01-25 Thread Henrik Andersson
William Chadwick wrote: My apologies to those of you who didn't want to see MXML in the ActionScript forum. Technically, my issue was on the AS3 side of things. I am more bothered by the fact that you called it a forum instead of a mailinglist. And I am not very bothered by that either.