View Full Version : Loading Text for the 100000th time
sanman918
December 6th, 2003, 12:52 PM
Ok I've looked all over the board listen to what people have said, read 20 tutuorials and nothing works. I know html is limited inside of flash but my bold, align, or any of the tags wont work!!!!!!!!!!!! And its driving me insane. This is exaclty what I have. Someone please help me directly dont send me to another page, i've been trying to fix this for about 2 months.
Ok this is my actionscript on a frame in my movie:
loadText = new loadVars();
loadText.load("gamingmain.txt");
loadText.onLoad = function() {
_root.nemo.name.text = this.name;
};
stop();
Ok I have a dynamic text field inside a movieclip. The movieclip has an instance name of nemo. I have the render as HTML, my variable name is "name" and i have no instance name on the text field. This is what i have in side my gamingmain.txt file:
name= <b>Gaming</b>
Obsidian Hosting <b>Networks</B><br>
testing this stupid thing
And none of my tags show. If I put "name" as my instance none of the tags show but they dont work either. Please help!
claudio
December 6th, 2003, 12:54 PM
You need two things:
_root.nemo.name.html = true;
_root.nemo.name.htmlText = this.name;
sanman918
December 6th, 2003, 01:15 PM
ok I now have this:
_root.nemo.name.html = true;
_root.nemo.name.htmlText = this.name;
loadText = new loadVars();
loadText.load("gamingmain.txt");
stop();
And nothing works now. And also what should I have in my text options. Should I just have a variable name and no instance name? I know your trying to help me claudio but not everyone has the knowledge so I need a more detailed reply to be helpful to me
claudio
December 6th, 2003, 01:17 PM
loadText = new LoadVars();
loadText.onLoad = function(success) {
if(success){_root.nemo.name.html = true;
_root.nemo.name.htmlText = this.name;
}
};
loadText.load("gamingmain.txt");
sanman918
December 6th, 2003, 01:34 PM
nope im sorry thats not working! I'm telling u this thing is so **** stupid. This is exactly what I have on my frame:
loadText = new LoadVars();
loadText.onLoad = function(success) {
if (success) {
_root.nemo.name.html = true;
_root.nemo.name.htmlText = this.name;
}
};
loadText.load("gamingmain.txt");
stop();
And this is what I have on my text box:
Var: name
I can't post my .fla because its too big. Its only 250 KB if u want I can email it to you because I would like to get this problem solved today if at all possible.
claudio
December 6th, 2003, 01:36 PM
claudiodj at yahoo d0t com
sanman918
December 6th, 2003, 01:39 PM
ok sent to claudiodj@yahoo.com
Maizoon
December 6th, 2003, 01:48 PM
Besides having it coded to use html tags, you also have to have the html enabled button clicked for the text box...and sometimes if you embed (or don't embed) the font outlines you can't see anything depending on the font. Flash is a little wacky with text.
claudio
December 6th, 2003, 01:51 PM
The problem is that name should be the textfield instance name, not its variable.
sanman918
December 6th, 2003, 02:14 PM
yeah i do that and nothing works, the tags dont show but the tags dont work
sanman918
December 6th, 2003, 02:15 PM
the text displays, i never had a problem with that I have a problem with the tags acvtually working, didn't u look at it, nothing is bold, nothing will align, try and do it yourself.......
sanman918
December 6th, 2003, 02:26 PM
see, this is why I can't ever get this **** taken care of. It doesn't work like its suppose to
sanman918
December 6th, 2003, 02:31 PM
does anyone else has any thoughts or opinions on what the problem is because as far as I see it, flash lies when it says it can use these HTML tags. Even if i have to write all the HTML inside of flash ill do it. I really need to get this site done, it's been so long for its completion.
claudio
December 6th, 2003, 02:34 PM
For the bold problem:
Although you have embedded the font, Flash doesnt include bold and italic automatically. Thats why bold and italic tags may not work.
To solve this problem, create a textfield using the same font you want, using bold, italic and regular style. Embeed the font. Now place it outside stage, so it doesnt get published.
The align problem:
Place this line inside the onLoad function for the loadVars object:
_root.nemo.name.condenseWhite = true;Now use the tag <br> inside your txt file for line breaks.
sanman918
December 6th, 2003, 02:41 PM
nope and nope this is what i have on my frame:
loadText = new LoadVars();
loadText.onLoad = function(success) {
if (success) {
_root.nemo.name.html = true;
_root.nemo.name.htmlText = this.name;
_root.nemo.name.condenseWhite = true;
}
};
loadText.load("gamingmain.txt");
And I also made a text box with a bold and italic letter and placed it outside the movie so it wouldn't get published and I get the same result. Any other ideas.....this is really tough....
claudio
December 6th, 2003, 02:48 PM
I just tested and it do works
sanman918
December 6th, 2003, 03:00 PM
sweet thanks man, i wonder why mine wasn't working. I didn't have my text box covering my orginal one if thats makes a difference but thanks for all the help. You can check out my project at www.obsidian-hosting.com
claudio
December 6th, 2003, 03:01 PM
welcome :)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.