[Extendflash] how to select elements

Ingo Weiss ingo01 at ingoweiss.com
Wed Dec 7 11:13:07 PST 2005


Hi,

one of the most puzzling (annoying?) things about JSFL for me
(=beginner) is that so many functions work on selections. Let me know if
I am missing something, but for example it doesn't seem to be possible
to write something like "myElement.enterEditMode()". Instead, you need
to select myElement and then write "document.enterEditmode()". Now, how
does one effectively select elements on stage? I find myself writing
things like the following that don't feel right:

document.selection = new Array();
document.selection.push(myElement);

Is there an easier way?

Thanks for any help!
Ingo


More information about the Extendflash mailing list