werdig
08.10.2006, 16:12
пишу:
String.prototype.substr_count = function(str){
return this.split(str).length-1;
};
a_txt.htmlText.substr_count('a');// Тут нормально компилется
function column_html(a_txt:TextField, b_txt:TextField) {
............
a_txt.htmlText.substr_count('a');// Тут ругаеться что не знает substr_count
...........
}
в чем прикол ??
String.prototype.substr_count = function(str){
return this.split(str).length-1;
};
a_txt.htmlText.substr_count('a');// Тут нормально компилется
function column_html(a_txt:TextField, b_txt:TextField) {
............
a_txt.htmlText.substr_count('a');// Тут ругаеться что не знает substr_count
...........
}
в чем прикол ??