you didnt mention the vertical flip in your prior post
:).  If you dont apply the flip, the text and circle
will display fine.  But the addition of the flip
requires that you embed the font in the text
component. see the docs on how to embed fonts using
styles. :)


--- Guy Morton <[EMAIL PROTECTED]> wrote:

> Nope, adding the text children clears my canvas. I
> think I now know  
> why. After I add all these children to my main
> Canvas I'm adding a  
> transform matrix to it to flip it vertically, like
> so:
> 
> mainCanvas.transform.matrix = new Matrix(1,0,0,-1);
> 
> This works just fine so long as I don't add the text
> children, but if  
> I do, the canvas ends up empty.
> 
> Is this something to do with Flex not being happy to
> vertically flip  
> my text objects? If so, would that be a bug?
> 
> Thanks for your help.
> 
> Guy
> 
> 
> On 26/02/2007, at 6:39 AM, leds usop wrote:
> 
> > var childCanvas: Canvas = new Canvas();
> > var t:Text= new Text();
> > t.text="this is a circle";
> > t.x=220;
> > t.y=140;
> > childCanvas.graphics.lineStyle (1, 0x333333, 1);
> > childCanvas.graphics.beginFill (0xCCCCCC, 0.6);
> > childCanvas.graphics.drawCircle(200,150, 7);
> > childCanvas.graphics.endFill( );
> > childCanvas.id = "myCircle";
> > childCanvas.toolTip = "I'm a circle";
> > childCanvas.addChild(t);
> >
> >
> > mainCanvas.addChild(childCanvas);
> 
> 



 
____________________________________________________________________________________
Finding fabulous fares is fun.  
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel 
bargains.
http://farechase.yahoo.com/promo-generic-14795097

Reply via email to