You should always specify both the name and the type in [Event]
metadata.

 

You're getting an error because you didn't specify the correct type. It
is flash.events.Events. (Note the s on events and the capitalize E on
Event.)

 

- Gordon

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of malik_robinson
Sent: Saturday, January 13, 2007 6:02 PM
To: [email protected]
Subject: [flexcoders] Re: Getting Error: Event Type 'flash.event:event'
is unavailable ?????

 

Hi,

I guess a better question is when do I use :

[Event(name="eventName")]

as opposed to:

[Event(name="eventName",type="flash.event.event")] (this gives me that
error in my original post )

Thanks

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "malik_robinson" <[EMAIL PROTECTED]>
wrote:
>
>
> Hi,
>
> I am getting this error:
>
> Event Type 'flash.event:event' is unavailable
>
> I have this function in my "Services.mxml" file:
>
> private function loginUser_result( event:ResultEvent ) : void {
>
>
>
> dispatchEvent( new Event("userAuthenticated") );
>
>
>
> }
>
> Then in my main MXML file I have:
>
> <ds:SupportService id="svc"
>
> userAuthenticated="mx.controls.Alert.show('Your are now
Logged
> In');"
>
> />
>
> Any idea on why I may get this error?
>
> Thanks
>
> Malik
>

 

Reply via email to