Re: [Flashcoders] Hit Object Question

2008-03-05 Thread anuj sharma
Thanks a lot Its fixed now. Appreciate it Anuj On Wed, Mar 5, 2008 at 2:32 AM, Kenneth Kawamoto <[EMAIL PROTECTED]> wrote: > Something like: > > private function greenTint(e:MouseEvent):void { >var ctfm:ColorTransform = new ColorTransform(); >ctfm.color = 0x00ff00; >e.target.transform

Re: [Flashcoders] Hit Object Question

2008-03-05 Thread Kenneth Kawamoto
Something like: private function greenTint(e:MouseEvent):void { var ctfm:ColorTransform = new ColorTransform(); ctfm.color = 0x00ff00; e.target.transform.colorTransform = ctfm; } private function redTint(e:MouseEvent):void { var ctfm:ColorTransform = new ColorTransfor

Re: [Flashcoders] Hit Object Question

2008-03-04 Thread Kenneth Kawamoto
To make your approach work, you can draw a rectangle in ldrBdr and bdrRep (one in red and one in green) and toggle the alpha of one of them sits above the other (if you addChild() it goes above everything already in the display list). Or just change the colour of one border Sprite instead. Ke

Re: [Flashcoders] Hit Object Question

2008-03-04 Thread anuj sharma
Hi Kenneth Thanks for the reply. So what's the solution of my problem? Thanks Anuj On Tue, Mar 4, 2008 at 1:01 PM, Kenneth Kawamoto <[EMAIL PROTECTED]> wrote: > I think it's a typo but your BdrRep has no rectangle drawn, and even if > you did have the rectangle, toggling the alpha of Sprite under

Re: [Flashcoders] Hit Object Question

2008-03-04 Thread Kenneth Kawamoto
I think it's a typo but your BdrRep has no rectangle drawn, and even if you did have the rectangle, toggling the alpha of Sprite underneath will not give you any visual feedbacks... Kenneth Kawamoto http://www.materiaprima.co.uk/ anuj sharma wrote: Hi all I am trying to implement hit object i

[Flashcoders] Hit Object Question

2008-03-03 Thread anuj sharma
Hi all I am trying to implement hit object in my project. I have sprite class and I am loading multiple instances of UI Loader in my sprite class and displaying it on the main screen. The user can drag and drop those UILoaders on the main stage wherever they want.My aim was that if user drops one U