Re: [flexcoders] Drawing the background Issue

2009-06-02 Thread Manish Jethani
2009/6/2 j2me_soul j2me_s...@163.com: The code is pretty simple. This is all I am trying to do:  mx:Script   ![CDATA[    private function init():void{ //var p:Point = new Point(btn1.x, btn1.y); //var pg:Point = localToGlobal(p); var p:Point = new Point(btn1.x, btn1.y); p =

Re: Re: [flexcoders] Drawing the background Issue

2009-06-02 Thread Manish Jethani
2009/6/2 j2me_soul j2me_s...@163.com: drawRect(0, 0, btn1.width + 20, btn1.height+ 20); Is the 0,0 point is the ContentPoint of the btn1 ? No, it's the top-left. Manish