Re: [Flashcoders] Flash8 Question
Now, the question is 1. how can I loop through all movie clip by code? 2. how can I change the on hover effect only? Ibrahim On Mon, Mar 31, 2008 at 4:59 AM, Pedro Taranto [EMAIL PROTECTED] wrote: laurent wrote: If I remember right you must create a Color object for your mac, then use color method setRGB to change the mc's tint to the hexadecimal you want: var c:Color = new Color( yourMC ); c.setRGB( 0xff ); L Ibrahim Y a écrit : Hello folks, I have the following case, I have a lot of movie clips, they have a lot of effect separately (i.e. each movieclip has it's own effect on hover, on press ...etc) most effect implemented in design not in code. what I want to ask about, most movie clips have on hover effect that change it's color to orange, is there a way in code that can change this property to red for example instead change this effect for each movie clip. Thanks. Ibrahim Color class is deprecated, you should use ColorTransform and Tranform classes ex: var myTransform : Transform = new Transform(myMc); var myColor : ColorTransform = new ColorTransform(); myColor.rgb = 0x262626; //apply the color myMc.colorTransform = myColor; -- Pedro Taranto ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash8 Question
You can name you boutons a gneric name: btn_0, btn_1, btn_2, etc then you have a loop: for( i = 0; i buttonNumber; i ++){ var mc:MovieClip = this[btn_ + i]; mc.onhoverMC do something with it } this code is in the buttons container. L Ibrahim Y a écrit : Now, the question is 1. how can I loop through all movie clip by code? 2. how can I change the on hover effect only? Ibrahim On Mon, Mar 31, 2008 at 4:59 AM, Pedro Taranto [EMAIL PROTECTED] wrote: laurent wrote: If I remember right you must create a Color object for your mac, then use color method setRGB to change the mc's tint to the hexadecimal you want: var c:Color = new Color( yourMC ); c.setRGB( 0xff ); L Ibrahim Y a écrit : Hello folks, I have the following case, I have a lot of movie clips, they have a lot of effect separately (i.e. each movieclip has it's own effect on hover, on press ...etc) most effect implemented in design not in code. what I want to ask about, most movie clips have on hover effect that change it's color to orange, is there a way in code that can change this property to red for example instead change this effect for each movie clip. Thanks. Ibrahim Color class is deprecated, you should use ColorTransform and Tranform classes ex: var myTransform : Transform = new Transform(myMc); var myColor : ColorTransform = new ColorTransform(); myColor.rgb = 0x262626; //apply the color myMc.colorTransform = myColor; -- Pedro Taranto ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash8 Question
the movie clips already created, and everything is fine. but I want to change them all using code, I don't want to rename them all, in this case I can change the design manually. On Mon, Mar 31, 2008 at 8:41 AM, laurent [EMAIL PROTECTED] wrote: You can name you boutons a gneric name: btn_0, btn_1, btn_2, etc then you have a loop: for( i = 0; i buttonNumber; i ++){ var mc:MovieClip = this[btn_ + i]; mc.onhoverMC do something with it } this code is in the buttons container. L Ibrahim Y a écrit : Now, the question is 1. how can I loop through all movie clip by code? 2. how can I change the on hover effect only? Ibrahim On Mon, Mar 31, 2008 at 4:59 AM, Pedro Taranto [EMAIL PROTECTED] wrote: laurent wrote: If I remember right you must create a Color object for your mac, then use color method setRGB to change the mc's tint to the hexadecimal you want: var c:Color = new Color( yourMC ); c.setRGB( 0xff ); L Ibrahim Y a écrit : Hello folks, I have the following case, I have a lot of movie clips, they have a lot of effect separately ( i.e. each movieclip has it's own effect on hover, on press ...etc) most effect implemented in design not in code. what I want to ask about, most movie clips have on hover effect that change it's color to orange, is there a way in code that can change this property to red for example instead change this effect for each movie clip. Thanks. Ibrahim Color class is deprecated, you should use ColorTransform and Tranform classes ex: var myTransform : Transform = new Transform(myMc); var myColor : ColorTransform = new ColorTransform(); myColor.rgb = 0x262626; //apply the color myMc.colorTransform = myColor; -- Pedro Taranto ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash8 Question
the name I'm talking about is the name you give in the properties panel. when you click a mc you can specify is name on the stage that is totally something else from is name in the library. So there you should choose a name that help you loop through the mcs Ibrahim Y a écrit : the movie clips already created, and everything is fine. but I want to change them all using code, I don't want to rename them all, in this case I can change the design manually. On Mon, Mar 31, 2008 at 8:41 AM, laurent [EMAIL PROTECTED] wrote: You can name you boutons a gneric name: btn_0, btn_1, btn_2, etc then you have a loop: for( i = 0; i buttonNumber; i ++){ var mc:MovieClip = this[btn_ + i]; mc.onhoverMC do something with it } this code is in the buttons container. L Ibrahim Y a écrit : Now, the question is 1. how can I loop through all movie clip by code? 2. how can I change the on hover effect only? Ibrahim On Mon, Mar 31, 2008 at 4:59 AM, Pedro Taranto [EMAIL PROTECTED] wrote: laurent wrote: If I remember right you must create a Color object for your mac, then use color method setRGB to change the mc's tint to the hexadecimal you want: var c:Color = new Color( yourMC ); c.setRGB( 0xff ); L Ibrahim Y a écrit : Hello folks, I have the following case, I have a lot of movie clips, they have a lot of effect separately ( i.e. each movieclip has it's own effect on hover, on press ...etc) most effect implemented in design not in code. what I want to ask about, most movie clips have on hover effect that change it's color to orange, is there a way in code that can change this property to red for example instead change this effect for each movie clip. Thanks. Ibrahim Color class is deprecated, you should use ColorTransform and Tranform classes ex: var myTransform : Transform = new Transform(myMc); var myColor : ColorTransform = new ColorTransform(); myColor.rgb = 0x262626; //apply the color myMc.colorTransform = myColor; -- Pedro Taranto ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Flash8 Question - contrast transform
Yep, a BitmapFilter is what you need. You might want to check out TweenFilterLite for an easy way to apply (and/or tween) the filter. It'll also let you adjust saturation, brightness, colorization, hue, and threshold. www.TweenFilterLite.com The code would look something like: TweenFilterLite.to(my_mc, 0.5, {colorMatrixFilter:{contrast:2}}); Jack -Original Message- From: Pedro Taranto [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2008 12:17 AM To: Flash Coders List Subject: Re: [Flashcoders] Flash8 Question - contrast transform laurent wrote: Hm...I should play with colors again. How do we change the contrast or brightness of a color ? using HSV ?? or is there a straight way using colorTransformin AS3 or AS2. thx L you should apply some BitmapFilter -- Pedro Taranto ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Flash8 Question
Hello folks, I have the following case, I have a lot of movie clips, they have a lot of effect separately (i.e. each movieclip has it's own effect on hover, on press ...etc) most effect implemented in design not in code. what I want to ask about, most movie clips have on hover effect that change it's color to orange, is there a way in code that can change this property to red for example instead change this effect for each movie clip. Thanks. Ibrahim ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash8 Question
If I remember right you must create a Color object for your mac, then use color method setRGB to change the mc's tint to the hexadecimal you want: var c:Color = new Color( yourMC ); c.setRGB( 0xff ); L Ibrahim Y a écrit : Hello folks, I have the following case, I have a lot of movie clips, they have a lot of effect separately (i.e. each movieclip has it's own effect on hover, on press ...etc) most effect implemented in design not in code. what I want to ask about, most movie clips have on hover effect that change it's color to orange, is there a way in code that can change this property to red for example instead change this effect for each movie clip. Thanks. Ibrahim ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash8 Question
laurent wrote: If I remember right you must create a Color object for your mac, then use color method setRGB to change the mc's tint to the hexadecimal you want: var c:Color = new Color( yourMC ); c.setRGB( 0xff ); L Ibrahim Y a écrit : Hello folks, I have the following case, I have a lot of movie clips, they have a lot of effect separately (i.e. each movieclip has it's own effect on hover, on press ...etc) most effect implemented in design not in code. what I want to ask about, most movie clips have on hover effect that change it's color to orange, is there a way in code that can change this property to red for example instead change this effect for each movie clip. Thanks. Ibrahim Color class is deprecated, you should use ColorTransform and Tranform classes ex: var myTransform : Transform = new Transform(myMc); var myColor : ColorTransform = new ColorTransform(); myColor.rgb = 0x262626; //apply the color myMc.colorTransform = myColor; -- Pedro Taranto ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash8 Question - contrast transform
Hm...I should play with colors again. How do we change the contrast or brightness of a color ? using HSV ?? or is there a straight way using colorTransformin AS3 or AS2. thx L Pedro Taranto a écrit : laurent wrote: If I remember right you must create a Color object for your mac, then use color method setRGB to change the mc's tint to the hexadecimal you want: var c:Color = new Color( yourMC ); c.setRGB( 0xff ); L Ibrahim Y a écrit : Hello folks, I have the following case, I have a lot of movie clips, they have a lot of effect separately (i.e. each movieclip has it's own effect on hover, on press ...etc) most effect implemented in design not in code. what I want to ask about, most movie clips have on hover effect that change it's color to orange, is there a way in code that can change this property to red for example instead change this effect for each movie clip. Thanks. Ibrahim Color class is deprecated, you should use ColorTransform and Tranform classes ex: var myTransform : Transform = new Transform(myMc); var myColor : ColorTransform = new ColorTransform(); myColor.rgb = 0x262626; //apply the color myMc.colorTransform = myColor; -- Pedro Taranto ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash8 Question - contrast transform
laurent wrote: Hm...I should play with colors again. How do we change the contrast or brightness of a color ? using HSV ?? or is there a straight way using colorTransformin AS3 or AS2. thx L you should apply some BitmapFilter -- Pedro Taranto ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders