small prototype to search within static texts

Posted by Den Ivanov on September 10th, 2003

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");

Lots of new stuff at MM DevNet

Posted by Den Ivanov on September 10th, 2003

What's new in MM FMX 2004

Building and Testing Components in MM FMX2004

Building the FooterNav Component

Exploring Version 2 of the MM FMX2004 Component Architecture

Data Binding in MM FMX PRO 2004

Streaming Video with MM FMX PRO 2004 Media Components

Security Changes in Macromedia Flash Player 7

Studio MX2004 Site Management

Macromedia DWMX2004 and FMX2004 Integration

Working with Video in MM FMX2004

New Features for Mobile and Devices Developers in MM FMX PRO 2004

dont miss 'Building the FooterNav Component' article. i love it...

just 2 words about Studio MX 2004

Posted by Den Ivanov on September 10th, 2003

Now Available...

An ActionScript 2.0 Primer

Posted by Den Ivanov on September 9th, 2003

Read here and here about ActionScript 2.0

nice articles by Joey Lott (www.person13.com)

simple and fantastic

Posted by Den Ivanov on September 8th, 2003

BD4D Seattle website. love it a lot!!! simple, small, creative. Amazing idea.


Wordpress Theme by Tech Replies
Copyright © 2007 Den Ivanov blog.. All rights reserved.