1 Reply Latest reply on Aug 29, 2008 2:11 AM by Newsgroup_User

    ObjectUtil.copy VBox

    prancius
      Hello,

      I have problem coping VBox object.

      registerClassAlias("mx.containers",VBox);
      var printPanel:VBox=ObjectUtil.copy(this.reportPanel) as VBox;

      TypeError: Error #2007: Parameter child must be non-null.
      TypeError: Error #1034: Type Coercion failed: cannot convert Object@bf302b9 to mx.styles.CSSStyleDeclaration.
      TypeError: Error #1034: Type Coercion failed: cannot convert Object@bd78859 to mx.managers.IFocusManager.
      TypeError: Error #1034: Type Coercion failed: cannot convert Object@bf302e1 to mx.core.UIComponentDescriptor.
      TypeError: Error #1034: Type Coercion failed: cannot convert Object@bf30309 to flash.media.SoundTransform.
      TypeError: Error #1034: Type Coercion failed: cannot convert Object@bf30331 to flash.geom.Transform.

      Any sugestions?

      Thank you
      Pranas