View Full Version : found this random text in the downloads, can't contact author, need help! :)
Hello all!
Found this great flash file here.
http://www.actionscript.org/movies/Mauro_Godi-Mgeffect4_3-410/Mauro_Godi-Mgeffect4_3-410.zip
I can't contact the author, but hope someone can help..
I wanted to have have quotes in the text file so every time i load the movie it displays a random line?
Basically a random quote movie i can put in my page.
The thing it with this file, it's got a nice fade in feature.
(only ONE at a time opposed to the whole lot being displayed as it currently is.)
Would you have any help/tips/suggestions editing the flash file?....even a modded file?
Can work a sequencer, ask me anything about pro audio, but am quite new to flash!
Thanks for your help in advance :)
QaQa
binkyboo
09-23-2003, 04:56 PM
Here's what the text file looks like.
&t1=quote1*quote2*quote3&
I load this into my Flash file and create an array. I then randomly choose one of the elements from the array I've created (these would be your quotes).
[as]lv = new LoadVars();
myVar.load("text4_3.txt");
myVar.onload = function(success) {
if (success) {
google = _root.myVar.t1.split("*");
index = Math.floor(Math.random()*google.length);
poople = google[index];
}
};
The variable poople will be either quote1, quote2 or quote3. This should get you started.
binkyboo
09-23-2003, 04:57 PM
lv = new LoadVars();
myVar.load("text4_3.txt");
myVar.onload = function(success) {
if (success) {
google = _root.myVar.t1.split("*");
index = Math.floor(Math.random()*google.length);
poople = google[index];
}
};
oops
binkyboo,
thanks for the reply dude.
:cool:
Sorry, bear with me, im a new.
So, where would i put the code in the flash file?
May have to baby step by step me :o
:)
QaQa
binkyboo
09-24-2003, 11:23 AM
Here ya go!
binkyboo
09-24-2003, 11:28 AM
I cut out the unnecessary code. Let me know if there's anything else I can do!
binkyboo,
Just checked back here and very supprised! Haven't even checked out the file yet.
THANK YOU very much!! :) :)
It's so nice that people on the net do these things for complete strangers. Great ethos i've always belived in.
Man, if you need any help audio related, do let me know!
Take it easy,
QaQa
binkyboo
09-24-2003, 05:04 PM
qaqa,
I may take you up on that!!! My buddy and I are building a site for our bowling team (yeah pretty pathetic I know) and we'd like to incorporate audio throughout. I may need some advice!
:)
No problem, - if you need a specific sound, i may be able to come up with something directly!
I'll pm you my email should you need anything :)
Hello anybody out there!
Re-visiting this file, i was looking at it, and have come to the conclusion that this simple problem is a little more advanced than i thought.
I now wanted to do with the above file is adjust the text box so it can fit long lines, - as currently the lines trail off the page instead of wrapping round.
I've tried everything i know, - if anyone can help, would be muchly appreciated.
Thanx alot!
Q.a.Q.a
It's more challenging that you think it's not a case of dragging a text box bigger....
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.