263 posts
  • Antarctica
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Sold between 100 and 1 000 dollars
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.

3507 posts Ruben Bristian
  • Most Wanted Bounty Winner
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 6-7 years
  • Repeatedly helped protect Envato Market against copyright violations
  • Won a Competition
  • Bought between 100 and 499 items
  • Exclusive Author
  • Referred between 500 and 999 users
+5 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
  • Antarctica
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Sold between 100 and 1 000 dollars
x360c says

AS3 ?

263 posts
  • Antarctica
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Sold between 100 and 1 000 dollars
x360c says

Ok, now what if it was a MovieClip?

263 posts
  • Antarctica
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Sold between 100 and 1 000 dollars
x360c says

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

3072 posts
  • Has been a member for 6-7 years
  • Won a Competition
  • Sold between 50 000 and 100 000 dollars
  • Bought between 10 and 49 items
  • Referred between 50 and 99 users
  • Exclusive Author
  • Romania
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..

1550 posts
  • Bought between 1 and 9 items
  • Europe
  • Exclusive Author
  • Has been a member for 6-7 years
  • Referred between 100 and 199 users
  • Sold between 50 000 and 100 000 dollars
dSKY says

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

291 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Referred between 1 and 9 users
  • Sold between 100 and 1 000 dollars
  • United States
sonicsight says

var i:int = movieClip.hight;

691 posts
  • Bought between 10 and 49 items
  • Canada
  • Exclusive Author
  • Has been a member for 7-8 years
  • Sold between 5 000 and 10 000 dollars
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