all groups > flash actionscript > july 2006 >
You're in the

flash actionscript

group:

Dynamic Text



Dynamic Text sbryner
7/21/2006 9:25:26 PM
flash actionscript: Hello,

Is there a reason why my dynamic text loads in the .txt file but will only
scroll the first few sentences? Could there be a problem with the .txt file
itself or is there something I'm forgetting? I've done this numerous times and
this has never happened. Has anybody else had a problem like this?

My dynamic text box is set with <> and borders on. Is there a limit to how
many returns (lines) are allowed inside the text box?

thanks,
sky
Re: Dynamic Text micahkoga
7/21/2006 11:09:58 PM
Re: Dynamic Text sbryner
7/24/2006 4:33:18 PM
Here's what I have relating to it....

(note:I have a text file from notepad named "twoSalmon.txt" in the same folder
as the .swf. Plus,I don't know if this makes a difference but this .swf loads
into the main .swf loader.)



var mytableLV:LoadVars = new LoadVars();
mytableLV.load("twoSalmon.txt");

scrollBar.visible = false;

mytableLV.onLoad = function(success) {
if (success) {
myMenu = mytableLV.myMenu;
buffets = mytableLV.buffets;
}
};

//* Button to place text from file into dynamic field \\


menu_mc.onRelease = function () {
infoBox_txt.htmlText = myMenu;
if (infoBox_txt.textHeight>=infoBox_txt._height) {
scrollBar._visible = true;
} else if (infoBox_txt.textHeight<=infoBox_txt._height) {
scrollBar._visible = false;
}
};



Re: Dynamic Text .:}x-=V!P=-x{:.
7/24/2006 5:28:56 PM
Re: Dynamic Text sbryner
7/24/2006 6:13:15 PM
I don't have a scroll function. I guess I haven't looked in to that yet. I have
a Scroll Bar component and linked it to the dynamic text box infoBox_txt. Then
linked the infoBox_txt to a .txt file and in that file I have &header="text
here". It just doesn't load it all.

this has worked before... I don't know, I'm confused... I'll look into scroll
functions.

thanks for the heads up on a scroll function.

sky


Re: Dynamic Text .:}x-=V!P=-x{:.
7/25/2006 3:16:18 PM
AddThis Social Bookmark Button