Dragon rideR
09.07.2009, 17:03
Подскажите пожалуйста никак не могу прицепить программно фильтр бевел к клипам
import flash.filters.BevelFilter;
stop();
standart_colors = new Array();
standart_colors.push("FFFFFF");
standart_colors.push("010000");
standart_colors.push("FE0000");
standart_colors.push("FFFF00");
standart_colors.push("006600");
standart_colors.push("010068");
standart_colors.push("999800");
for (i=0; i<standart_colors.length; i++) {
t = this["s"+i];
t.my_color = new Color(t);
color = "0x"+standart_colors[i];
t.my_color.setRGB(color);
var bevel:BevelFilter = new BevelFilter(5, 126, 0xCCFFAB, 50, 0x000000, 50, 2, 2, 50, 1);
var myFilters:Array = t.filters;
myFilters.push(bevel);
t.filters = myFilters;
}
никак не получается ( Исходник прикладываю
import flash.filters.BevelFilter;
stop();
standart_colors = new Array();
standart_colors.push("FFFFFF");
standart_colors.push("010000");
standart_colors.push("FE0000");
standart_colors.push("FFFF00");
standart_colors.push("006600");
standart_colors.push("010068");
standart_colors.push("999800");
for (i=0; i<standart_colors.length; i++) {
t = this["s"+i];
t.my_color = new Color(t);
color = "0x"+standart_colors[i];
t.my_color.setRGB(color);
var bevel:BevelFilter = new BevelFilter(5, 126, 0xCCFFAB, 50, 0x000000, 50, 2, 2, 50, 1);
var myFilters:Array = t.filters;
myFilters.push(bevel);
t.filters = myFilters;
}
никак не получается ( Исходник прикладываю