Today I discovered that Flash CS3 JSFL reference doesn’t mention that grouped MovieClips and TextFields can be detected throught Flash Javascript API.
Documentation only says that there’s only shape.isGroup property; if true, the shape is a group.
The surprising thing is that not only shapes have the “isGroup” property but other Elements too.
For example, create TextField and group it; then create MovieClip and group it: you can easy make sure that it is possible to detect the isGroup property correctly for both of these objects!
But JSAPI documentation doesn’t say it, it only describes the isGroup property for shapes, not for any other type of stage Element.
So, you can use isGroup property for any Element JSFL object! This is very important when you doing enumeration of each elements in Documents using Flash JavaScript. Whoa!