[Manish Jethani] Unobtrusive ActionScript (MXML)

Separating structure from behaviour
In HTML, inline event handlers are considered to be a Bad Thing (TM). To understand why, one needs to think in terms of the typical designer-developer workflow.

There are broadly two roles in the development of a UI: the designer, who does the visual/layout design, and the developer, who codes in the user interaction. The designer may place a button on the screen, while it is the developer who writes the code for performing a specific action (e.g. the submission of a form) on the click of the button. In the ideal world, it’s possible for two different individuals performing these roles to collaborate on a UI without stepping on each other’s toes. This can be achieved in HTML by maintaining clean separation of markup (structure) from script (behaviour).

[


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 )

Google+ photo

You are commenting using your Google+ 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

%d bloggers like this: