dimanche 11 décembre 2016

How to convert string and/or array fields to movie clips AS3

My question is that how we can convert a string to a movie clip OR How to convert each field of an array to a movie clip.

For example:

var days:Array = new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat");

and I want "Sun" to become a movie clip Or

var str:String;
for (var i=0; i<days.length; i++)
    str = days[i];
    //and then I need to convert str to become a movie clip each time

Thanks for your help in advance.

Aucun commentaire:

Enregistrer un commentaire