Can some one show me how to load thiis combobox to the fla from the Main.as?
package chromatic.load_files{
import flash.display.MovieClip;
import flash.display.Sprite;
import fl.controls.ComboBox;
//this class is imported on the actions frame 1
//these are classes that create components already loaded
import chromatic.load_files.CBMajorComponent;
import chromatic.load_files.CBMinorComponent;
import chromatic.load_files.UIImageComponent;
import chromatic.load_files.CBMinorComponent;
public class Main extends Sprite {
private var cbMajorComponent:CBMajorComponent=new CBMajorComponent();
private var cbMinorComponent:CBMinorComponent=new CBMinorComponent();
private var uiImageComponent:UIImageComponent=new UIImageComponent();
private var tlImageComponent:TLImageComponent=new TLImageComponent();
private var mcContainer:MovieClip=new MovieClip();
private var mcArray:Array=new Array();
private var cbMajor:ComboBox=new ComboBox();
//private var cbArray:Array=new Array(cbMajorComponent.cbMajor,cbMinorComponent.cbMinor);
private var myValue:String;
public function Main():void {
//displayCB();
cbMajorComponent=new CBMajorComponent();
this.cbMajor=cbMajorComponent.cbMajor;
stage.addChild(cbMajor);
}
/*
public function displayCB():void {
for (var i:int; i<cbArray.length; i++) {
cbMajor=mcArray[i];
stage.addChild(cbMajor);
}
}
*/
public function setMyValue():void {
this.myValue=myValue;
}
public function getMyValue(myValue):String {
return myValue;
}
}
}