I have a project in which I am using classes…
I want to use a class in where from a xml object I create an array of movie clips using createEmptyMovieClip …but I can’t figure out how…
here is a my code
class classes.Patratel extends MovieClip
{
var mcPatratel:MovieClip;
function Patratel(_parinte:MovieClip)
{
this.mcPatratel =_parinte;
createMc();
}
function creazaMc()
{
var mcTemp:MovieClip=new MovieClip();
this.mcPatratel.createEmptyMovieClip("mcTemp",this.mcPatratel.getNextHighestDepth());
mcTemp.beginFill(0x009000,100);
mcTemp.lineTo(100,0);
mcTemp.lineTo(100,100);
mcTemp.lineTo(0,100);
mcTemp.lineTo(0,0);
mcTemp.endFill();
}
}