Hello,
Since it's not the same problem as the old one, i post a new topic on
this, i hope this way to do enter in the ToS.
I created a component Box-Based, which contains a repeater and some
other attributes.
Since my english isn't perfect i'll post part of the code i produced
and tell you what's the problem now.
public function Prep()
{
super();
_repeater = new Repeater();
_repeater.dataProvider = _dataProvider;
super.addChild(_repeater);
}
override protected function createChildren():void {
this.creationPolicy = ContainerCreationPolicy.NONE;
super.createChildren();
_repeater.childDescriptors = this.childDescriptors;
}
private function fillInternalFields():void {
if(_dataProvider != null) {
_repeater.dataProvider = _dataProvider;
_repeater.initializeRepeater(this.parent as
IContainer,true);
}
}
the fillInternalFields() is a method called when i set the datas of
the component.
i get an error in the createReferenceOnDocument method as it's set here
TypeError: Error #1034: Echec de la contrainte de type : conversion de
[EMAIL PROTECTED] en mx.controls.Button impossible.
at
mx.core::UIComponent/createReferenceOnParentDocument()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8199]
at
mx.core::Container/createComponentFromDescriptor()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\Container.as:3648]
at
mx.core::Repeater/createComponentFromDescriptor()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\Repeater.as:734]
at
mx.core::Repeater/createComponentsFromDescriptors()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\Repeater.as:786]
at
mx.core::Repeater/initializeRepeater()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\Repeater.as:529]
at
com.probtp.fwg.components::Prep/fillInternalFields()[C:\Code\CC_Views\PB19664_IG_ClientLeger-project_Dev1_View1\vob0003-vob\IG_ClientLeger-project-component\IG_Core\src\com\probtp\fwg\components\Prep.as:72]
where the line 8199 is
r = parentDocument[id] = [];
In the debug mode, r = null, parentDocument[id] = null .
Any suggestions on what to do here will be welcome please.