View Full Version : how to add preloader to my dymanic text
bredhead
October 7th, 2003, 06:33 PM
I got help the other day of how to add dynamic text as the tutorial didn't work for me(that worked). but how to preload the text as it appears later than the movie which had already preloaded(i made a simple preloader for now)
the address www.polo-interactive.co.uk
any help graetfully received
bredhead
norie
October 7th, 2003, 11:14 PM
why do you want to preload text? Preloading text would be a relatively small object to preload, and preloading is not necessary.
bredhead
October 8th, 2003, 07:20 AM
the text does not appear immediately and this could be confusing for the viewer, or even worse not get the information
norie
October 8th, 2003, 01:18 PM
so you want the text to be "loaded" for later use in the movie, and it's dynamic?
APDesign
October 8th, 2003, 03:11 PM
I'm assuming he is talking about loading it from an external source, like a text file. There are so many preloading tutorials out there though, just do a search!
bredhead
October 8th, 2003, 06:44 PM
ok so maybe what a i am looking for is a bit basic but referring to me in the third person is a bit slack, in fact i have searched for many preloaders and you would be surpised how many don't work or are many provided are only good for making equally as simple as the sample provided. but ta
norie
October 8th, 2003, 08:03 PM
our problem is that HIS question is too vague or poorly worded. we do not understand what HE wants. :beam:
using the pronoun "he" is perfectly acceptable, because this is a public fourm and APDesign is speaking to other kirupians who may be trying to help bredhead. so uh!
bredhead
October 9th, 2003, 07:38 AM
sorry but i find it a real hard program don't want to insult anyone, but its hard to learn and even asking the question takes knowledge sometimes with flash, i wouldn't want you to think i just ask a question and expect an answer, i do search and use other sitesz with tutorials, books etc, sorry if that came out wrong its just frustration.
APDesign
October 9th, 2003, 09:55 AM
Thanks for the support Norie! Yes bredhead, I meant no offense at all by saying "he," I was just speaking to norie because I was replying to what he said. It is common on forums, so hopefully it doesnt bug you too much :thumb:
kode
October 9th, 2003, 10:01 AM
var my_lv = new LoadVars();
my_lv.onLoad = function(success) {
if (success) {
my_txt.text = this.my_var;
} else {
my_txt.text = "error";
}
my_mc.removeMovieClip();
};
my_lv.load("file.txt");
this.createEmptyMovieClip("my_mc", 9876);
my_mc.onEnterFrame = function() {
var loaded = my_lv.getBytesLoaded();
var total = my_lv.getBytesTotal();
var percent = Math.floor(100*loaded/total);
my_txt.text = (loaded>0 ? percent : 0)+"%";
};
... The end. :P
bredhead
October 9th, 2003, 06:09 PM
wow thanks very much, and sorry again for treading on anyones toes i really didn't mean it.
kode
October 9th, 2003, 06:12 PM
You're welcome. ;)
Digitalosophy
March 21st, 2005, 10:03 AM
Amazing.. The quality threads you can find by searching :)
Nice kode, where you are
ace893
March 21st, 2005, 09:53 PM
Hey, you could just type in "loading text" in the dynamic text field. That will display until the external text is loaded, then will be replaced by the new text. It isn't the COOLEST looking, but it is the easiest and most PRACTICAL way to do it.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.