263 posts
  • Has been part of the Envato Community for over 7 years
  • Located in Antarctica
  • Has sold $100+ on Envato Market
  • Has collected 1+ items on Envato Market
+2 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.

3802 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $750,000+ on Envato Market
  • Had an item that was trending
  • Has been part of the Envato Community for over 7 years
+12 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 7 years
  • Located in Antarctica
  • Has sold $100+ on Envato Market
  • Has collected 1+ items on Envato Market
+2 more
x360c
says

AS3 ?

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

Ok, now what if it was a MovieClip?

263 posts
  • Has been part of the Envato Community for over 7 years
  • Located in Antarctica
  • Has sold $100+ on Envato Market
  • Has collected 1+ items on Envato Market
+2 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 that became a weekly top seller
+7 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..

1570 posts
  • Became a Top 20 Author of the Month
  • Had an item that became a weekly top seller
  • Has been part of the Envato Community for over 7 years
  • Has referred 100+ members
+4 more
dSKY
says

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

291 posts
  • Has been part of the Envato Community for over 7 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 8 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