1. set Stage.scalemode="noScale'; 2. set textBox.autoSize= true and then textBox.width = num; This will make the textBox stretch heightwise, and fix the width to a particular value (num).
3. After you set the text to the textfield, pass that height to the javascript code in the container html page. 4. Resize your flash Object size accordingly using JS. (getItemByID will help u get the object) This should work. On 2/23/06, Phil Glatz <[EMAIL PROTECTED]> wrote: > > I have a Flash (8) movie that has a dynamic text field whose contents > may vary - it may be between a few lines of text, to as many as a > thousand. I would like to have it scale vertically e size of the > contents, but always maintain the same width and font size. If it > gets too tall to be shown in the HTML page containing it, the HTML > pages should be scrolled to see the entire contents. I don't want to > use a scroll bar with the text field; the entire contents should be > visible at all times. > > To further complicate things, the content of the dynamic text box is > set via a FlashVar at display time. Also, the font used may be > changed via a FlashVar parameter. > > What I think I need is a way to change the height of the stage, based > on the rendered height of the content at display time. Can this be > done with ActionScript? How do I indicate in the object/embed tags > in the HTML the height of the SWF, since it won't be known at display > time? > > thanks - any ideas or references would be appreciated > > _______________________________________________ > [email protected] > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

