Skip to content

Document Event Metatags with ASDoc

January 24, 2011

You can document your (custom) events thrown by custom classes. It is easy. Just add event metatags as described in AS3 Event Metatags And Custom Events. Now you can document these events like this:

	
	/**
	 * Dispatched when item has been removed.
	 * @eventType flash.events.Event
	 */
	[Event(name="removed", type="flash.events.Event")]

	public class Actor extends EventDispatcher
	{
		// throw event somewhere in here
		// ........
	}

The documentation can be seen while adding the event listener to your instance (at least inside eclipse) or when you decide to generate ASDoc html files.

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: