Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

text

Status
Not open for further replies.

edd1e19

Programmer
Mar 22, 2004
72
GB
Hi there

I would like to create this text effect: if you go to
choose view normal, then a pre-loader will appear, after that you will see text that will say "welcome to the beginning", i would like to do the sort of text effect, where it flickers and stuff, could anyone help please?

Thanks

Edd
 
looks just like simple frame animation with a couple layers of the same text, very fast frame speed... then just move the layers around a bit....

[conehead]
 
Hi Conehead,

Could you maybe write a short tutorial for me please on this

thanks

edd
 
1. make a symbol of your text
2. create three layer layers with that symbol.
3. place them all at the same x and y
4. give two frame differing alpha values (75%, 50%)
5. leave the symbol with no alpha in place while every 3-5 frames make a key frame for the other two and movie the symbol slightly... play with this till you get what you want...
6. make sure the ending frames look like the starting frames for smooth looping
7. set the fps of your movie very high. play with this till you get what you want.

[conehead]
 
If you prefer to use code you can turn the text into a MovieClip, give an instance name (myMovieClip in this example) and add this code which will give the effect automatically:

Code:
MovieClip.prototype.spookify = function() {
	this.origX = this._x;
	this.origY = this._y;
	this.origScale = this._xscale;
	this.onEnterFrame = function() {
		this.transformClip = function(x, y, sc, a) {
			this._x = this.origX+x;
			this._y = this.origY+y;
			this._xscale = this.origScale+sc;
			this._yscale = this.origScale+sc;
			this._alpha = a;
			
		};
		state = getTimer()%17;
		switch (state) {
		case 3 :
			this.transformClip(2, 2, 2, 50);
			break;
		case 7 :
			this.transformClip(-2, 2, 3, 25);
			break;
		case 11 :
			this.transformClip(2, 2, 2, 5);
			break;
		case 13 :
			this.transformClip(2, -2, -2, 75);
			break;
		case 15 :
			this.transformClip(-2, -2, -3, 25);
			break;
		default :
			this.transformClip(0, 0, 0, 100);
		}
	};
};
myMovieClip.spookify();
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top