jetlee
12-31-2006, 07:25 AM
:confused:
I am very new to actionscripting. How do I insert ;
this.createClassObject(mx.controls.ComboBox, "my_cb", 1, {_x:10, _y:10});
this.createClassObject(mx.controls.Label, "my_lbl", 2, {_x:10, _y:40});
Into the below Actionscript 2.0 code so I can add a Flash UI Component into each empty movie clip (checkbox, menu, radio button, etc.). You may assume the component is already part of your library.
function invest(i:Number,myMC:MovieClip):Void {
myMC.createEmptyMovieClip("this"+i,myMC.getNextHighestDepth());
myMC = myMC["this"+i];
if (i < 5) {
invest(i+1,myMC);
}
}
invest(1,this);
I hope someone can help !
I am very new to actionscripting. How do I insert ;
this.createClassObject(mx.controls.ComboBox, "my_cb", 1, {_x:10, _y:10});
this.createClassObject(mx.controls.Label, "my_lbl", 2, {_x:10, _y:40});
Into the below Actionscript 2.0 code so I can add a Flash UI Component into each empty movie clip (checkbox, menu, radio button, etc.). You may assume the component is already part of your library.
function invest(i:Number,myMC:MovieClip):Void {
myMC.createEmptyMovieClip("this"+i,myMC.getNextHighestDepth());
myMC = myMC["this"+i];
if (i < 5) {
invest(i+1,myMC);
}
}
invest(1,this);
I hope someone can help !