[Flashcoders] Inverting colours of the menu

2006-05-05 Thread Weyert de Boer
Hi all, I probably have a really simple question.. I have a movieclip which containts the menu items (each button is a movieclip), and know one section has a white background so the white buttons become invisible. Now I would like to invert/change the colours of the buttons. Only when I use

Re: [Flashcoders] Inverting colours of the menu

2006-05-05 Thread Alfredo Laguia
PM Subject: [Flashcoders] Inverting colours of the menu Hi all, I probably have a really simple question.. I have a movieclip which containts the menu items (each button is a movieclip), and know one section has a white background so the white buttons become invisible. Now I would like

Re: [Flashcoders] Inverting colours of the menu

2006-05-05 Thread Weyert de Boer
Hi you have many ways to do that, class tween colorTo() method The Tween doesn't seem to have this method, but I found a ColorTransform class in Flash 8. I will see if I can use that to invert colours. The button movieclip contains of a white text for the initial state, orange for the

Re: [Flashcoders] Inverting colours of the menu

2006-05-05 Thread MBDI ICSC Rodrigo E. Curiel Salazar
Hi, you can download a tween class here: http://hosted.zeh.com.br/mctween/ this class does this and more Rodrigo On 5/5/06, Weyert de Boer [EMAIL PROTECTED] wrote: Hi you have many ways to do that, class tween colorTo() method The Tween doesn't seem to have this method, but I

Re: [Flashcoders] Inverting colours of the menu

2006-05-05 Thread Zeh Fernando
I probably have a really simple question.. I have a movieclip which containts the menu items (each button is a movieclip), and know one section has a white background so the white buttons become invisible. Now I would like to invert/change the colours of the buttons. Only when I use setRGB() of

Re: [Flashcoders] Inverting colours of the menu

2006-05-05 Thread Weyert de Boer
Hi Zeh, Check setTransform on the help docs. But briefly, to invert a movieclip (make it 'negative', you can do: new Color(myMC).setTransform({ra:-100, rb:255, ga:-100, gb:255, ba:-100, bb:255}); Yes, I found some similar code too, only doesn't seem to work. You can't invert it again to get

Re: [Flashcoders] Inverting colours of the menu

2006-05-05 Thread Zeh Fernando
Check setTransform on the help docs. But briefly, to invert a movieclip (make it 'negative', you can do: new Color(myMC).setTransform({ra:-100, rb:255, ga:-100, gb:255, ba:-100, bb:255}); Yes, I found some similar code too, only doesn't seem to work. You can't invert it again to get white