2 Replies Latest reply on May 16, 2012 5:37 PM by cablish

    How to set loaderInfo parentallowschild?

    cablish Level 1

      code:

      var loader:Loader = new Loader();

      loader.loadBytes(byteArray);

      loader.contentLoaderInfo.addEventListener(Event.COMPLETE,contentLoaderInfo_completeEventHa ndler);

       

      function contentLoaderInfo_completeEventHandler(event:Event):void {

                  trace(LoaderInfo(event.target).parentallowschild);

        }

       

      Q: loader run loadBytes function, loader.loaderInfo. parentallowschild is true.

            How to set  parentallowschild value is false?