After changing from
beta3, the following code doesn't work:
var t:Text = new Text();
t.text = text;
t.styleName = "gradeLabel";
t.selectable = false;
// t.width = 200;
// t.height = 100;
this.addChild(t);
t.text = text;
t.styleName = "gradeLabel";
t.selectable = false;
// t.width = 200;
// t.height = 100;
this.addChild(t);
inside my chart.
Howevever, if I uncomment the width/height lines, it works fine. How can I have
the width/height calculated based on the text there? If I specify sizes like the
above, my labels appear in the wrong place (because I'm positioning them at the
Y co-ord of a line, minus the height, so they appear above
it).
There doesn't seem
to be any sort of "autoSize" property, or a recalculateSize() method
(invalidSize doesn't work).
Any
ideas?
The information contained in this e-mail and/or any attachments is confidential and intended only for the individual(s) to which it is addressed. If you are not named as an addressee you must not disclose, copy or take any action in reliance of this transmission. This e-mail and its attachments have been scanned for viruses by MessageLabs Ltd.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development | Computer software development | Software design and development |
Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.