Based on all my work with SWF10 using 5.0 (trunk), there shouldn't be
a problem with an id tag.
My approach to avoid global IDs is to use a JavaScript object
structure instead of attributes on canvas.
LZX snippet:
<!-- External script file with namespace/framework definitions -->
<script when="early" src="scripts/definitions.js" />
<window oninit="app.windows.loginWindow = this" />
The definitions.js could like this:
var app = {};
/* namespace for application windows */
app.windows = {};
/** the login window reference */
app.windows.loginWindow = null;
Make sure that the @when attribute on the script tag is set to early,
meaning the object structure will be instantiated before the window
tag is processed.
To me, a JavaScript file is a lot more readable than the LZX canvas
file, but that probably depends on your programming style.
- Raju