I found this text effect used in many site.
like this yugop v4.
How to do that text effect?
who can give a tutorial link?
thanks.
I found this text effect used in many site.
like this yugop v4.
How to do that text effect?
who can give a tutorial link?
thanks.
You mean that Letter Cycling thing?
hi,wizard
thanks.
a little different from yugop.com.
Yeah the yugop letter cycler is amazing, I really want to know how I can do something like this!!
Wow! Does anybody know what’s happening in Yugop’s letter cycling? It looks like it starts from nothing but ‘___________’ and then it sort of eases to the right letter :huh:
just done it quickly but it seems to work.
movieclip with a dynamic textfield myText linkage identifier mc
on the timeline
myArray = [“a”, “b”, “c”, “d”, “e”, “f”, “g”, “h”, “i”, “j”, “k”, “l”, “m”, “n”, “o”, “p”, “q”, “r”, “s”, “t”, “u”, “v”, “w”, “x”, “y”, “z”];
word = “hello”;
for (i=0; i<word.length; i++) {
myClip = attachMovie(“mc”, “mc”+i, i);
myClip.ivar = i;
myClip._y = 200;
myClip._x = 200+myClip.ivar*myClip._width;
myClip.targ = word.charAt(myClip.ivar);
myClip.myText.text = myArray[random(myArray.length)];
myClip.onEnterFrame = change;
}
function change() {
if (this.myText.text != this.targ) {
this.myText.text = myArray[random(myArray.length)];
} else {
this.myText.text = this.targ;
delete this.onEnterFrame;
}
}
obviously can be improved upon but basically there
nice job, and it appears somebody else on kirupa daily reads k10k
well… just wanted to point out that I knew where you found it really…
anyways, I love the main animation that’s awesome and so is there text thing, but it seems stringy did a nice job if you bump the frame rate up
Thanks for you nice work . but your work like kirupa random letter cycling tutorial. feel some different from yugop.com.
eg: how to make the text cycling when it is changing short.
You can just give the mc`s a counter property
eg/myClip.counter =random(10)
then in the change function
this.counter++
if (this.myText.text != this.targ && this.counter<15) {
this.myText.text = myArray[random(myArray.length)];
}
so you can make as long or as short as you like.
http://www.gifsrus.com/testfile/textrandom.swf
ello…stringy …i just using ur given code but it’s seem not working…
not display the whole text…
u can look at my attach fla…
thanks for ur help…
you should make your dynamic textfield in mc symbol1 a little smaller… just the size of 1 character… (and put mc symbol1 on the stage…)
Heres the file i have currently, its modified a little from the above.Maybe it will help you sort out your problems
yes…it really help me out…anyway tq for the fla …
welcome
one more question stringy how about i’m gonna attach my beep sound to ur code…let’s say when the text effect is completed the sound also stop beep…
thanks in advanced
one more question stringy how about i’m gonna attach my beep sound to ur code…let’s say when the text effect is completed the sound also stop beep…
thanks in advanced
Stringy, that’s pretty close. There’s a difference though: you’re using multiple clips containing 1 letter (just like the cycling letters tutorial), whereas Yugop only has 1 textfield that contains the whole text It is a bit more complicated.
sound with a linkage identifier mys
At the beginning of the code- mySound = new Sound();
mySound.attachSound(“mys”);
then/
clip.onPress = function() {
for (var k = 0; k<bA.length; k++) {
removeMovieClip(bA[k]);
}
connect(word[this.jvar], this);
mysound.start();
};
}
and/
function change() {
this.counter++;
if (this.myText.text != this.targ && this.counter<15) {
this.myText.text = myArray[random(myArray.length)];
} else {
this.myText.text = this.targ;
delete this.onEnterFrame;
mysound.stop();
}
}
I bet you are right. Heres my attempt with 1 textfield, its pretty similar really, i just created a mc for each letter.
http://www.gifsrus.com/testfile/textrand3.swf
//textfield variable name mystring
myArray1 = [“1”, “0”, “?”, “`”, “,”, " “, “a”, “b”, “B”, “c”, “d”, “e”, “f”, “g”, “h”, “i”, “I”, “j”, “k”, “l”, “m”, “n”, “o”, “p”, “q”, “r”, “s”, “t”, “u”, “v”, “w”, “x”, “y”, “z”,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“,”-“];
function init(k) {
delete mystring;
myVar = k;
delete A1;
A1 = ;
for (g=0; g<k.length; g++) {
A1.push(”-");
myString += A1[g];
}
delete A2;
A2 = ;
for (var i = 0; i<mystring.length; i++) {
removeMovieClip(_root[“paper”+i])
tex = createEmptyMovieClip(“paper”+i, i);
tex.ivar = i;
tex.letter = myVar.charAt(i);
A2.push(tex.letter);
tex.counter = random(10);
tex.onEnterFrame = move;
}
}
function getString() {
mystring = “”;
k = A2.toString();
for (i=0; i<k.length; i++) {
if (k.charAt(i) != “,”) {
b = k.charAt(i);
mystring = mystring.concat(b);
}
}
}
function move() {
trace(“hi”);
this.counter++;
this.letter = myArray1[random(myArray1.length)];
A2[this.ivar] = this.letter;
if (this.letter == myVar.charAt(this.ivar)) {
this.letter = myVar.charAt(this.ivar);
delete this.onEnterFrame;
} else if (this.counter>10) {
delete this.onEnterFrame;
this.letter = myVar.charAt(this.ivar);
A2[this.ivar] = this.letter;
}
getString();
}
myButton.onPress = function() {
init(“hello how are you”);
};
myButton2.onPress = function() {
init(“how is the weather”);
};
myButton3.onPress = function() {
init(“all cows eat grass”);
};
that one works really well… might I suggest changing the dashes to underscores though?
:: Copyright KIRUPA 2024 //--