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.
- Most Wanted Bounty Winner
- 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
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 ?
AS3 ?
Ok, now what if it was a MovieClip?
How can I get the dynamic height of a MOVIECLIP when the scrollRect is applied.
- Community Superstar
- Item was Featured
- Author was Featured
- 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
why don’t you add the text or whatever you need to scroll in a container movieclip… or sprite…? and then scroll the container..
- Author was Featured
- 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
you can’t , as far as I know ….
var i:int = movieClip.hight;
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.
