Just to clarify, the metadata for events aren't actually necessary in order
to dispatch events, it's mainly to aid the IDE. But if you get the metadata
wrong and you use auto-complete in your code, you may end up listening for
the wrong events :)
-Josh
On Tue, Aug 26, 2008 at 7:31 AM, Jake Churchill <[EMAIL PROTECTED]> wrote:
> I usually have seen used and use it like this:
> <mx:Metadata>
> [Event( name="eventName",type="fully.qualified.classpath" )]
> </mx:Metadata>
>
>
> markflex2007 wrote:
>
> Hi,
>
> I confuse with <mx:Metadata> now
>
> I have the following <mx:Metadata> in code
>
> <mx:Metadata>
> [Event('add')]
> [Event('update')]
> [Event('cancel')]
> </mx:Metadata>
>
> Do you think the following code work with the <mx:Metadata>?
>
> dispatchEvent( new Event( "add" ) );
>
> Thanks
>
> Mark
>
>
>
--
"Therefore, send not to know For whom the bell tolls. It tolls for thee."
:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]