MXMLDataInterpreter has the following code:
if (parent && comp is IChild)
parent.addElement(comp as IChild, !(parent is IContainer));
The boolean second value is the “dispatchEvent” parameter in the method.
Currently, dispatchEvent does nothing (i.e. no event is dispatched in either
case), but I am working on a bead which needs to listen for element added
events. To wit, I added an “elementAdded” event which is dispatched when
dispatchEvent is true.
I need the bead to be notified when elements are added via MXML in addition to
AS code, but addElement is being called with dispatchEvent as false.
Any clues as to why this is and what will happen if I change this?
Harbs