I have a combobox on my main when I select a supplier I want the Supplier Component to Run its init() with the new supplier number. I cannot figure out how the componet knows when/how to fire the init() that would fire of my RO with the new SupplierID.
My main has a combobox and this local, to bring in the component:
<local:SupplierContent/>
So change the Combobox and the above would reload with the new supplier number. The RO and init() are all in the SupplierContent.
Any thoughts?
Thanks
George
private function changeHandler():void{
if(supplierContentObj){
this.removeChild(supplierContentObj);
supplierContentObj = null;
}
var supplierContentObj:SupplierContent = new SupplierContent();
this.addChild(supplierContentObj);
}
Whenever a new instance of a component is created, the creationComplete event is dispatched. So, assuming that init() is the creationComplete eventHandler, this will also be called on every new instance creation.
North America
Europe, Middle East and Africa
Asia Pacific
Copyright © 2012 Adobe Systems Incorporated. All rights reserved.
Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy (updated 07-14-2009).