Hey - ive been trying to get a random blendMode choice for some particles im implementing … thing is - i cant work force a string value into the code for a random selection from an array where I have the types as Strings - maybe thats the reason? … anyway if someone could give me a hand - thatd be fab!
ps, it’s in a class - so Im importing flash.display.BlendMode;
var blend:Array = new Array("DARKEN","MULITPLY","DIFFERENCE","HARDLIGHT","INVERT","LIGHTEN","SCREEN","OVERLAY");
var num:uint = Math.random()*blend.length;
var typ:String = "BlendMode."+blend[num];
mc.blendMode = typ;
//
…If I manually type in one, ie. mc.blendMode = BlendMode.MULTIPLY; … it works ::::
Thanks!!!