View Full Version : How to create this text effect?
Hunson
February 7th, 2007, 02:25 AM
anyone knows how to create this text effect?
http://lab.mathieu-badimon.com/
try the 7 main buttons on the middle.
i've seen it a couple of times like the one in 2advanced.com, it looks pretty darn cool.
i've tried playing it by frame, but it doesnt look so good and the way it's done doesn't satisfy me :P, i'm sure there a way to do it using AS.
Please help:)
thatguythatsme
February 7th, 2007, 06:14 AM
I believe the effect is called random text cycling, a quick search has revealed...
this (http://www.kirupa.com/developer/flash5/randomlettercycling.htm)
and this (http://www.kirupa.com/developer/flash5/randomlettercycling2.htm)
and even all of these (http://www.kirupa.com/forum/search.php?searchid=741872)
Dave :P
Hunson
February 8th, 2007, 05:22 AM
hahaha,yeah it probably is, thanks.
but bad thing abt it is theres a probability it'll loop forever.
hmm.... i guess i have to figure out a way to control it.....
Hunson
February 8th, 2007, 05:24 AM
oh just so you know the first "this" loops for an entire 30 sec the second time i went in!
thatguythatsme
February 8th, 2007, 05:37 AM
Well the first one is probabl not as good as the second one, ive looked at the code on the second one and it seems to just use the letters in _root.alphabet! limit the amount of letters if can use there and that will make it run shorter.
Probably not an ideal solution though.
Otherwise search the forums theres bound to be loads of stuff on this.
Dave
NickStar3D
February 8th, 2007, 01:23 PM
That is one amazing effect and website, has a nice 3d perspective
Hunson
February 27th, 2007, 02:57 AM
guys i have to come to this.
the text cycling effect i tried isn't working properly, there seems to be something wrong with the spacing.
i'm aware the spacing is generated through AS but is there anyway to fix it?
please help!
Hunson
February 27th, 2007, 04:50 AM
hey i came across this:
Secret = "AAA";
_root.createTextField("Secret_txt", 1, 100, 100, 0, 0);
Secret_txt.autoSize = true;
Secret_txt.text = Secret;
_root.createTextField("Search_txt", 2, 100, 150, 0, 0);
Search_txt.autoSize = true;
Search_txt.text = Secret;
Count = 0;
Curent = "";
onEnterFrame = function () {
RandomChar = chr(random(75)+48);
Search_txt.text = Curent+RandomChar;
if (Secret.charAt(Count) == RandomChar) {
Curent += RandomChar;
Count++;
}
if (Curent == Secret) {
delete onEnterFrame;
}
};
however what i don't understand is the:
RandomChar = chr(random(75)+48);
i totally don't get it, how do you modify this to make the text cycle shorter?
im working on a website and i'm sounding noober and noober.
help needed!
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.