I'm not sure if this will actualy be related to the problem you have, but I've had issues with textfields heights lately and this is what I've figured out:
- Use the TextField.textHeight property http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary774.html - There seems to be a bug with this property that I can't always reproduce. The first time you try to access it, it will give you the height for one line only (as if it can't see the wrap yet), but after more than one reference, you will get the proper value from it. Here's a quick proto wrapper for this. Let me know if it actually helped: TextField.prototype.getTextHeight = function() { var t = this.textHeight; return this.textHeight; }; ASSetPropFlags(TextField.prototype, "getTextHeight", 1, 0); Good luck! - Francis On 8/11/06, Matthias Dittgen <[EMAIL PROTECTED]> wrote:
this happens to me only sometimes and when I use negative leadings. Try to encapsulate your textfield with a movieclip and grab the height of the movieclip instead of the textfield height. That's the common workaround, I think. Have fun, Matthias 2006/8/11, Kjel Anderson <[EMAIL PROTECTED]>: > No IDE for Linux yet :( Can't find any coding errors. Single line text fields > are lining up just fine. When I ask flash for the size of the double line > text field, it adds thirteen to the _height. I am using embedded fonts. Maybe > I'll try it without the embedded fonts. > > Kjel > > On Friday 11 August 2006 12:47 pm, Ramon Miguel M. Tayag wrote: > > My runs fine. I didn't try it with MTASC though. Have you tried > > using the IDE? It should be the same either case though... > > > > On 8/12/06, Kjel Anderson <[EMAIL PROTECTED]> wrote: > > > Hey list, > > > > > > Has anyone had a problem with textField._height being reported > > > incorrectly when the text wraps to a second line? I tried to get around > > > this by using the ._height variable of the MovieClip in question, but it > > > is reporting it's height incorrectly as well. I am using the latest > > > version of MTASC. > > > > > > Thanks, > > > > > > Kjel > > > _______________________________________________ > > > Flashcoders@chattyfig.figleaf.com > > > 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 > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > 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 > _______________________________________________ Flashcoders@chattyfig.figleaf.com 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
_______________________________________________ Flashcoders@chattyfig.figleaf.com 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