263 posts
  • Has been part of the Envato Community for over 6 years
  • Located in Antarctica
  • Has sold $100+ on Envato Market
  • Has collected 1+ items on Envato Market
+1 more
x360c says

I want to get the total height of a textfield. Problem is, when I apply scrollRect, I can no longer dynamically access the height. How can I get the total height of the textfield without getting the height of just the scrollRect.

Any help appreciated.

3568 posts Ruben Bristian
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,000+ on Envato Market
  • Has been part of the Envato Community for over 6 years
+10 more
KrownThemes says
I want to get the total height of a textfield. Problem is, when I apply scrollRect, I can no longer dynamically access the height. How can I get the total height of the textfield without getting the height of just the scrollRect. Any help appreciated.
textfield._textHeight ?
263 posts
  • Has been part of the Envato Community for over 6 years
  • Located in Antarctica
  • Has sold $100+ on Envato Market
  • Has collected 1+ items on Envato Market
+1 more
x360c says

AS3 ?

263 posts
  • Has been part of the Envato Community for over 6 years
  • Located in Antarctica
  • Has sold $100+ on Envato Market
  • Has collected 1+ items on Envato Market
+1 more
x360c says

Ok, now what if it was a MovieClip?

263 posts
  • Has been part of the Envato Community for over 6 years
  • Located in Antarctica
  • Has sold $100+ on Envato Market
  • Has collected 1+ items on Envato Market
+1 more
x360c says

How can I get the dynamic height of a MOVIECLIP when the scrollRect is applied.

3072 posts
  • Has referred 50+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Had an item featured on Envato Market
+5 more
wickedpixel says

why don’t you add the text or whatever you need to scroll in a container movieclip… or sprite…? and then scroll the container..

1552 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 100+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+3 more
dSKY says

you can’t , as far as I know ….

291 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $100+ on Envato Market
  • Has collected 10+ items on Envato Market
+2 more
sonicsight says

var i:int = movieClip.hight;

691 posts
  • Has been part of the Envato Community for over 7 years
  • Has sold $5,000+ on Envato Market
  • Located in Canada
  • Has collected 10+ items on Envato Market
+2 more
geoken says

You can’t. If you go on livedocs for scrollRect you’ll see lots of people complaining about this.

What’s even more annoying is that there is a short period after scrollRect is applied where the size of the movieclip remains the same.

What I usually do is store the height of an object in a variable before I apply a scrollRect to it.

by
by
by
by
by
by