Ask a Question related to Macromedia Flash Data Integration, Design and Development.
-
Jeff3d #1
expanding dynamic text box
I have a scroll pane that is linked to a movie clip with a dynamic text field.
The scroll pane expands automatically based on the length of the dynamic text
field. I would also like to have the dynamic text field expand automatically to
fit the dynamic content from an external .txt file if there is too much text to
fit in the default text field length.
Here is the code I am using to get the .txt files:
myLoadVars = new LoadVars();
myLoadVars.onLoad = function() {
// the data is loaded in the myLoadVars object as a property of the object
myText.htmlText = myLoadVars.myHTMLdata;
}
myLoadVars.load("MCAS-EMST/Body-1.txt");
Thank you for your help
Jeff3d Guest
-
Expanding shape or Text in Illustrator CS
Anyone know how to expand text or a shape in Illustrator CS? I am creating a logo using the font "Capitals" (Mac font) but need the fill to be more... -
load external text to dynamic text field in levels
Dear Sir I found the Tech Noe Index #16238 is useful in creating dynamically loaded text from external text file. However, the method mentioned... -
Dynamic text box within dynamic movie clip
I'm having a similar problem. On mine I noticed that although the text doesn't show and the border doesn't show, the cursor changes appropriately... -
Dynamic text in smooth scrolling text field - help
here's links to the files. http://www.anicespot.com/test/ http://www.anicespot.com/test/easing_textScroller-01.html... -
Fixed Width layout cells expanding with text ??
Hi - got the same problem I went trhough the tutorial, but have some questions: When it talked about 'balloon cell', and wrote "I have a small... -
MotionMaker #2
Re: expanding dynamic text box
Look at [url]http://livedocs.macromedia.com/flash/8/main/00002734.html[/url]. Probably want to set it to true or "left"
MotionMaker Guest
-
Jeff3d #3
Re: expanding dynamic text box
Thank you, but I am trying to set up an existing dynamic text field that is
displayed through a scroll pane.
How do you apply
myText.autoSize = True;
to an existing dynamic text field so the loaded text raps and the text field
automatically expands down to accomodate the loaded text and the scroll pane
recognizes that the linked text field has expanded.
The first frame action of the dynamic text field movie clip already has the
following script to load the .txt file:
myLoadVars = new LoadVars();
myLoadVars.onLoad = function() {
// the data is loaded in the myLoadVars object as a property of the object
myText.htmlText = myLoadVars.myHTMLdata;
}
myLoadVars.load("MCAS-EMST/Body-1.txt");
Thank you
Jeff3d Guest
-
MotionMaker #4
Re: expanding dynamic text box
Thus you set the width parameter for the TextField and turn on word wrap like
this:
var myHtml_txt:TextField = this.createTextField("myHtml_txt", 1, 0,0,100,0);
myHtml_txt.autoSize = true;
myHtml_txt.multiline = true;
myHtml_txtwordWrap = true;
myHtml_txt.border = true;
myHtml_txt.html = true;
myHtml_txt.htmlText = "First line of text first sentence. First line of text
second sentence. ";
myHtml_txt.htmlText += "Second line of text first sentence. ";
myHtml_txt.htmlText += "Third line of text first sentence. ";
MotionMaker Guest



Reply With Quote

