Page 1 of 1

Random text

Posted: Fri Jan 04, 2008 7:20 pm
by pagol
ok.. banglai koi.. tek asay ? ami english , hindi konota e pari na..

1. one flash document. fps more than 20
2. make one big dynamic text ( intense name = dis )
3. convert dynamic text to movie clip ( like name pp )
4. place pp movie clip in scene and put movie clip name as dd
5. write this action script in first frame

Code: Select all

TextField.prototype.compose = function(someText) {
	this.text = "-";
	this._parent.tempText = this;
	this._parent.messageString = someText;
	this._parent.indexNo = 0;
	this._parent.onEnterFrame = composeString;
	function composeString() {
		var intString:String = "";
		if ((++this.indexNo)<=this.messageString.length) {
			var tempString1:String = "";
			var tempString2:String = this.messageString.substr(0, this.indexNo);
			var tempString3:String = this.messageString.substr(this.indexNo);
			var i = 0;
			while (i<tempString3.length) {
				tempString1 = tempString1+String.fromCharCode(100+Math.round(Math.random()*100));
				i++;
			}
			intString = tempString2+tempString1;
			this.tempText.text = intString;
		} else {
			this.onEnterFrame = null;
		}
	}
};
_root.dd.dis.compose("Distorted Designers First Designers Community in Bangladesh");

so now check it :d


**** admin mama.. file upload korar option pailam na.. tai swf or fla kono tai upload kortay parlam na sorry....



bhai and vabi raaaa... ami bhaloo lektay jani na..... tai clear koray liktay parlam na... sorrry

Posted: Sat Jan 05, 2008 5:56 am
by chhagol
Wow, jotil jinish disen mama. Khubi valo (hobe nishchoi). But amar khetre kaaj korlo na. Ki korum bolen, code o manush chine, tai shobar kachhe execute hoy na. Ta chhara disen to green colorer code. Ami abar green ja dekhi tai amar kachhe ghash mone hoy tai code-mode ja paisi shob chabaiya khaiya falaisi...

Posted: Sat Jan 05, 2008 6:11 am
by admin
dear Pagol,
you can email us the swf/fla file. we will upload it for reference. due to our some technical problem we are unable to allow our members to upload files except images.

Thanks

Posted: Sat Jan 05, 2008 3:12 pm
by pagol
here is swf and fla

Code: Select all

http://www.sendmefile.com/00604762

or 

http://www.mediafire.com/?btrzptxpdcd

Posted: Sat Jan 05, 2008 4:04 pm
by asifshahid
pagol bhai....I implemented the code and it ran smoothly....but the problem is when it's composing, character gula kemon jeno unusual type like bangla font na pele box box, hizibizi dekhay oi rokom dekhachche...font er kono probloem naki?....see the screenshot


Image

Posted: Sat Jan 05, 2008 5:26 pm
by pagol
smasif wrote:pagol bhai....I implemented the code and it ran smoothly....but the problem is when it's composing, character gula kemon jeno unusual type like bangla font na pele box box, hizibizi dekhay oi rokom dekhachche...font er kono probloem naki?....see the screenshot


Image

ho bhai jan... font a problem.. just apni apnar moto font selete koray den.. then ok...

Re: Random text

Posted: Sun Jul 13, 2008 2:14 am
by webdesignertushar
dear Pagol vai jaan,

So nice of it ...cool Action script Animation....thnx