This small prototype will search all your MovieClips for any given text via new TextSnapshot Object. For example, you can add searching to you site small prototype to search within static texts It search only static texts.


MovieClip.prototype.findText = function(textToFind) {
	for (i in this) {
		if (typeof (this[i]) == "movieclip") {
			var tmp = this[i].getTextSnapshot();
			if (tmp.findText(0, textToFind, true) != -1) {
				trace(this[i]);
			}
			this[i].findText(textToFind);
		}
	}
};
_root.findText("determines");

Ready to receive fresh news from my site? Subscribe to my RSS.

Хотите быть в курсе последних обновлений сайта? Подпишитесь на мой RSS.