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
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; } };
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
Don't see what you're looking for? Try a search.
|