I have a (possibly) related isssue : creating a component which
then creates a seres of Overlays on top of itself - one of which is
a series of text objects - --
the base component that I am addingChild' to is a Sprite -
adding multiple shapes or sprites works fine
but when I add Text
You should be able to do something like this:
var myText:Text = new Text();
myText.text = Hello World;
myText.x = 220;
myText.y = 140;
mainCanvas.addChild(myText);
If you're just wanting to draw a shape, you should use Sprite rather
than Canvas. Canvas is a container and is intended to layout
Actually Tim, he already mentioned in a previous post
that more than just to add a circle, he wanted to add
a circle.. and rotate it to vertical. i have already
suggested adding the text child directly to the canvas
(main or child.. shouldnt really matter). However, i
think what makes the text not
sorry typo :p ...more than just to add a circle, he
wanted to add text..
--- leds usop [EMAIL PROTECTED] wrote:
Actually Tim, he already mentioned in a previous
post
that more than just to add a circle, he wanted to
add
a circle.. and rotate it to vertical. i have already
suggested adding
You are correct - it needs to be an embedded font to render when
rotated. Unfortunately, also, the rotation of the text is about the
top left corner and the class does not correctly report its dimensions
when rotated. I posted a RotableText class to the Flex 2 General
Discussion forum a couple of
5 matches
Mail list logo