Thanks --- In [email protected], "Ralf Bokelberg" <[EMAIL PROTECTED]> wrote: > > Every event has a type property. You need to set it using super( "myType" ); > Cheers, > Ralf. > > On 1/13/07, malik_robinson <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I am not using Cairngorm or anything yet, but trying to learn to build > > some of this on my own through tutorials, books, etc. > > > > I am trying to build a basic login and I created a custom component called > > LoginPanel.mxml, and created a LoginEvent.as. I call LoginPanel.mxml in > > my "Main" application file by doing: <comps:LoginPanel /> My goal is to let > > the user click the login button, create a loginEvent then dispatch the > > event, finally have some event listener on the other end receive > > notification then make a call to my Remote Object in my Services.mxmlfile. I think once I get to the remote Object call I can fiddle my way from > > there. > > > > I am confused on "how" and "where" to tie my event listener in and once > > the listener receives notification, the code that follows. > > > > *I have a private function in LoginPanel.mxml (my login form) called > > "doLogin()". Code is shown below:* > > > > private function doLogin():void { > > > > var loginEvent:LoginEvent = new LoginEvent( > > username.text, password.text); > > this.dispatchEvent(loginEvent); > > > > } > > } > > > > *My LoginEvent.as code is here:* > > > > package com.adobe.events { > > > > import flash.events.Event; > > import flash.events.EventDispatcher; > > > > public class LoginEvent extends Event { > > > > public var username : String; > > public var password : String; > > > > // constructor function > > public function LoginEvent( username:String, password:String ) { > > this.username = username; > > this.password = password; > > } > > > > } > > > > } > > > > Is this correct? > > > > Thanks in advance for any assistance... > > > > > > > > > > > > -- > Ralf Bokelberg <[EMAIL PROTECTED]> > Flex & Flash Consultant based in Cologne/Germany > Phone +49 (0) 221 530 15 35 >

