To add a little twist and intrigue to this we only get this error when compiling with Flex 2.0 on a PC. When I take the same code and compile on a Mac with the beta version we donĀ¹t get the error.
Thanks, Mike Weiland ----------------- Mike Weiland Aspen Tree Media (877)659-1652 | FAX: (512)828-7105 http://www.AspenTreeMedia.com http://www.CertificateCreator.com - Create & Print Awards and Certificates On 12/9/06 4:37 PM, "Mark R. Jonkman" <[EMAIL PROTECTED]> wrote: > > > > > I get the following error: > > TypeError: Error #1009: Cannot access a property or method of a null object > reference. > at mx.managers::FocusManager/::isEnabledAndVisible() > at mx.managers::FocusManager/::isValidFocusCandidate() > at mx.managers::FocusManager/::getIndexOfNextObject() > at mx.managers::FocusManager/::keyDownHandler() > > When I'm tabbing between elements in my state. I've simplified the > application down to 2 states, no scripts just 1 panel in each state, each > panel contains a form and a controlbar. Each Form contains a single input > field inside a form item. Each control bar contains a single link button. > The base state is empty. This is my first Flex application but I think I'm > using states correctly > > Any help or advice would be greatly appreciated. Entire MXML code is > contained below. > > Sincerely > Mark R. Jonkman > > The following is the entire mxml code for the application: > > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > layout="horizontal" > horizontalAlign="center" > verticalAlign="middle" > currentState="Login" >> > > <mx:states> > <mx:State name="Login"> > <mx:AddChild position="lastChild"> > <mx:Panel layout="horizontal" > horizontalAlign="center" id="LoginPanel" title="Analyzer Login" > verticalAlign="middle"> > <mx:Form id="LoginForm"> > <mx:FormItem > label="Username:" id="UsernameFormItem" width="300" required="false"> > <mx:TextInput > id="UsernameInput" width="100%"/> > </mx:FormItem> > > </mx:Form> > <mx:ControlBar > id="LoginFormControlBar"> > <mx:LinkButton label="Forgot > password?" left="0" verticalCenter="0" id="ForgotPasswordLink" > click="currentState='ForgotPassword'" textAlign="left"/> > </mx:ControlBar> > </mx:Panel> > </mx:AddChild> > </mx:State> > <mx:State name="ForgotPassword"> > <mx:AddChild position="lastChild"> > <mx:Panel layout="vertical" > id="ForgotPasswordPanel" title="Forgot Password"> > <mx:Form id="EmailForm"> > <mx:FormItem label="Email:" > width="300" id="EmailAddressFormItem" required="false"> > <mx:TextInput > width="100%" id="EmailAddressInput" /> > </mx:FormItem> > </mx:Form> > <mx:ControlBar > id="ForgotPasswordControlBar"> > <mx:LinkButton label="Return > to Login" verticalCenter="0" left="0" id="ReturnToLoginLink" > click="currentState='Login'" textAlign="left"/> > </mx:ControlBar> > </mx:Panel> > </mx:AddChild> > </mx:State> > </mx:states> > </mx:Application> > > >