Thanks Matt but i got one more problem.

i'm not going into the logonHandler function.

relevant code-
private function showWindow(modal:Boolean):void
{
  var logonWindow:LogonWindow = new LogonWindow();
  logonWindow.addEventListener("logon", logonHandler);
            
  PopUpManager.popUpWindow(logonWindow, this, modal);
  PopUpManager.centerPopUp(logonWindow);
}

public function logonHandler(event:LogonEvent):void
{
status.text="You entered userId: " + event.userId + " password: " + 
event.password;
}

--- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote:
>
> Sorry, looks like we screwed up the explorer and it should have 
included
> this:
> 
> package
> {
>     import flash.events.Event;
>     
>     public class LogonEvent extends flash.events.Event
>     {
> 
>         public var userId : String;
>         public var password : String;
> 
>         public function LogonEvent(_userId:String, 
_password:String)
>         {
>             super("logon");
>             userId = _userId;
>             password = _password;
>         }
> 
>     }
> }
> 
> -----Original Message-----
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of bhaq1972
> Sent: Wednesday, February 15, 2006 8:21 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] getting a compile error running the 'custom 
event'
> flex 2 example
> 
> Hi
> I just copied and pasted the 'Events/ Using a Custom Event Class' 
> example from the following link 
> 
http://weblogs.macromedia.com/flex_samples/flex_explorer/explorer.htm
l
> 
> into flex builder2 but i get the compile error "Type annotation is 
not 
> a compile-time constant: LogonEvent" in my test flex app.
> 
> its the following line
> 
> public function logonHandler(event:LogonEvent):void 
> 
> i suppose it doesnt know what a LogonEvent is. 
> what am i missing ? i only copied and pasted the whole demo.
> 
> 
> 
> 
> 
> 
> --
> 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
>






--
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/
 


Reply via email to