Group 94 Flash
- Started
- Last post
- 19 Responses
- madino
I am back on learning flash and would really like to understand how http://www.group94.com manipulates its text strings to build in...
I can't seem to figure it out... any help would be appreciated...
thanks in advanced...
- unfittoprint0
grab your text string, use split to creat an array with each separate character.
Then display the complete text either by randomly picking each character and putting it in the correct place, or from start to end or backwards. U can use setInterval or onEnterFrame to time the loop.
It really depends of your imagination.
- ********0
hooray for print.
- madino0
print is nice...
but... I see how the split works...
textstring = "the flash test";
sho = textstring.split(",");
_root.thebox.text = sho;not sure how to run a loop to display each character seperately....
- Anarchitect0
start with
for (i=0; i{sho.length; i++){
textBox.text += sho[i];
}
4 example. [ { stands for 'less than' arrow]
- cram0
they posted a demo file in one of the interviews they did... look through their news for interviews they have done... i will try to find it myself...
- cram0
http://www.ventilate.ca
issue 7 i think... try there... it is not a tutorial... and i don't think that they intend to offer support as they are quite busy i am sure. still the file is there... good luck.
- cram0
http://www.ventilate.ca/issue07/…
okay... i should get my act together and just find the thing before i post... anyway...
- madino0
you guys are great... thank you so much for your help...
!!!!!
- toe-knee0
holy crap, pixelranger is helping people on nt
;)
- cram0
i like the prototype one better but golly, couldn't anyone say "gee wiz, cram is helping people on nt!"?
- Pixter0
I made one just for "fun"
http://planeta.terra.com.br/arte…
A bit different from the original one but i'm working on it
sometimes actionscript is funny as crosswords
- Boz0
Here you go. Just include the .as file or paste the content in the first frame and when you create a text field, just give it a name and apply it like this:
TextFieldName.SpillIt("Text or Variable", 30)
30 is the speed.
Download:
http://www.designbyinfinity.com/…Cheers.
- madino0
I copied it... but what is .spillit ...
I can't find a reference in your code.
Or should I say, what is the right way to call textfieldname.spillit....
- Boz0
Madino, really, don't get upset but if you want to get slightly more sophisticated AS effects, try getting up to speed with AS in general. You got everything you need in this thread and in the end I gave you my own code to use in your project. I mean, we can't make everything for you, read a little, find about prototypes, how they extend existing classes and so on.
TextField.prototype adds SpillIt "characteristic" to any instance of textfield. I wrote the usage in my previous post.
- madino0
you are absolutely correct boz...
I don't know why I try to learn this at this time of night.
I should just go to sleep... :)
- madino0
p.s.
this is not for a project... just for fun... I will never be a good coder...I will leave that to the experts.
- madino0
Boz,
sorry man, my fault... I figured out why it wasn't working for me. Since I copied the code from the as file into the actually document, i was using Spillit. But were I was messing up was not calling it right. I am guessing since I copied it in, i would have to call the actually prototype, which is "SpillContent"
But man thanks, I will work with this to learn more about prototypes.
Sorry for being a pain!
- Boz0
No problem, I made a typo, but good thing you figured it out. Don't get discouraged though, my previous comment was just an advice. Reading a bit more about AS in general will definitely make it easier for you to understand various aspects of AS.
Cheers.