ThemeForest

Interesting Problem

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

2504 posts Nice Guy
  • Most Wanted Bounty Winner
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 5-6 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Won a Competition
  • Bought between 100 and 499 items
  • Exclusive Author
  • Referred between 200 and 499 users
+5 more
RubenBristian 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 5-6 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 5-6 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 5-6 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.

2988 posts
  • Community Superstar
  • Has been a member for 5-6 years
  • Won a Competition
  • Sold between 50 000 and 100 000 dollars
  • Bought between 10 and 49 items
  • Referred between 50 and 99 users
  • Europe
+1 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..

1518 posts
  • Bought between 1 and 9 items
  • Europe
  • Exclusive Author
  • Has been a member for 5-6 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 5-6 years
  • Referred between 1 and 9 users
  • Sold between 100 and 1 000 dollars
  • United States
sonicsight says

var i:int = movieClip.hight;

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