ASSetPropFlags
“This function is used internally during the initializion stage for the predefined actionscript objects. It is used to hide an objects children from the for..in loop construct. The for..in loop construct iterates over all children of an object, this means it exposes both methods and properties of an object. It is also used to protect the predefined actionscript objects children from being over-written by another action with the same name and to protect the predefined actionscript objects from being deleted. The usefulness of this function can also be harnessed by the developer and that is when this function gets interesting… ” - via FlashGuru Consulting » ASSetPropFlags
» Permalink » del.icio.us » Digg It!

jgraup said,
April 15, 2007 @ 4:44 pm
// all
function hideAllChildren( obj:Object ):Void
{
_global.ASSetPropFlags(obj,null,1,1); // hide all
}
function showAllChildren( obj:Object ):Void
{
_global.ASSetPropFlags(obj,null,0,1); // show all
}
// single
function hideChildren( obj:Object, props:Array ):Void
{
_global.ASSetPropFlags(obj,props,1,1); // hide props array
}
function showChildren( obj:Object, props:Array ):Void
{
_global.ASSetPropFlags(obj,props,0,1); // hide props array
}
// combos
function hideAllChildrenExcept( obj:Object, props:Array ):Void
{
hideAllChildren( obj ); // hide all
showChildren( obj, props ); // show props array
}
function showAllChildrenExcept( obj:Object, props:Array ):Void
{
showAllChildren( obj ); // show all
hideChildren( obj, props );
}
jgraup said,
April 15, 2007 @ 5:34 pm
http://osflash.org/flashcoders/undocumented/assetpropflags
jgraup said,
April 15, 2007 @ 5:35 pm
http://www.actionscript.org/resources/articles/117/1/ASSetPropFlags/Page1.html