Determines if the object has a parent up the scenegraph whose id matches the one passed. Will traverse each parent object checking if the id matches. This information will be cached when first called and can be refreshed by setting the "fresh" parameter to true.
hasParent (StringparentId, Booleanfresh)
StringparentIdThe id of the parent to check for.
BooleanfreshIf true will force a full check instead of using the cached value from an earlier check.