ActionScript 2.0 :: Setting A Tint Using ColorTransform?

Jan 15, 2009

I'm using flash 8 professional with AS 2. I'm trying so set a tint using actionscript on a dynamically created mc using the ColorTransform method. I'm trying to set a 50% black tint, similar to the effect one would get when doing it in the properties panel using the Color setting.

My code so far:

Code:
var colorTrans:ColorTransform = new ColorTransform();
colorTrans.blueOffset = -127;
colorTrans.redOffset = -127;
colorTrans.greenOffset = -127;

This is applied elsewhere in my project and is working fine. My problem is that this is pushing up the saturation of the mc's, thus all orange colors appear red etc.

View 7 Replies


Similar Posts:


ActionScript 2.0 :: Setting A ColorTransform For A Clip Affects Whole Movie?

Sep 27, 2007

I can't seem to get my head round why when I set the colortransform object for one clip in my movie, it seems to affect the entire movie - textboxes and everything..I thought that a colorTransform it only affected the specified and child clips in the movie.Example - I have a lot of things attached to _root.I have a particular clip which is on its own and is attached to the _root - this is my code...Code:clip.transform.colorTransform = new flash.geom.ColorTransform(0.05, 0.05, 0.05, 1, 0, 0, 0, 0);That seems to set the clip nice and dark as I want it to - but it also sets all other clips and all clips dynamically added afterwards to have the same colortransform settings... am I missing something from the CT object?

View 4 Replies

ActionScript 2.0 :: Use Tint Effect Through It?

May 12, 2003

Is it possible to use the tint effect through action scripting?

View 6 Replies

ActionScript 2.0 :: Get Tint Color From MC?

Sep 18, 2007

I am tinting some MC items in my application using:

Code:
Color.prototype.setTint = function (r, g, b, amount) {
var trans = new Object();

[code]......

View 1 Replies

ActionScript 3.0 :: Color The Tint Of A Movieclip?

May 3, 2007

I am trying to figure out how to color the tint of a movieclip using as3.Using as2 I would do the following :

var clSymbol:Color = new Color(mcSymbol);
clSymbol.setRGB(0xFF0000);

..and the movieclip mcSymbol would turn red.Very easy using as2 but I dont know how to do the same thing using as3.

View 21 Replies

Tint - Movieclip - Change The Color

Aug 6, 2009

I have a movie clip i want to change the color i am trying to do PHP Code:

onClipEvent(load){
_root.Mc._tint = 0xff0000
}

View 1 Replies

Professional :: Tint Part Of An Image?

Apr 20, 2011

I have imported an image into Flash, turned it into a symbol, inserted a frame, then a tween, and can animate the image with tint. It works fine, but the tint is applied to the entire image. What I was hoping to do, is have a sort of 'rolling tint', where the tint starts on the left side of the image, and gradually works it's way over to the right.

View 5 Replies

Getting Error In Component Tint Style

Jul 1, 2011

I am facing an animation error while i applying tint style on component.when i am passing paramenter values in second component by refrencing first component name and then applyng tint style on it but when i compile it, the first component tint syle is working fine but as it comes on second component it get stuck & the second component appears 80% transparent.

View 1 Replies

ActionScript 3.0 :: Applying Tint To MovieClip?

Mar 13, 2010

Applying tint to movieclip is just changing the color transformation of movieclip.

The easiest way is the Color class of fl.motion package.Just make the object of Color class, call setTint function and assign the object to movieClip.transfrom.colorTransform just find the attachment and do yourself. Cheers

visit this following link for more details and example [URL]...

View 2 Replies

ActionScript 2.0 :: Changing Tint On Movieclips?

Apr 4, 2011

I am using the following code to change the alpha value of all movieclips except the rolled over one on rollover...

ActionScript Code:
on (rollOver) {
function allAlphaButOne(thisClip:MovieClip, alphaNum:Number) {
for (o in _root) {

[Code]....

But cant seem to replace the alpha in the first script with running this

View 2 Replies

ActionScript 2.0 :: Change The Tint Of An Object

Jul 20, 2002

I need to know if it's possible, and if so, how, to change the tint of an object using actionscript. For instance, if one was to select a specific button, the actionscript in that button would tell the object, in this case the background, to change its tint.

View 2 Replies

ActionScript 2.0 :: How To Change Tint Of MovieClip

May 12, 2006

This tutorial was very good: [URL]. But is there a way to do this with tint and just as simply (3 little lines)? Because I just want to change the tint of the movieclip, not turn it into an opaque color.

View 1 Replies

IDE :: Changing Tint On Button Event?

Feb 26, 2005

I want to change a movie clip's tint once a button event occurs, and I can't seem to figure it out. I have looked at Kirupa's color changing tutorial but it does not apply to tinting. I found this through a google search but I'm not entirely sure how to use it.

Code:
//tint an object with a color just like Effect panel b between 0 and 255; amount between 0 and 100
Color.prototype.setTint = function (r, g, b, amount) {

[Code]...

View 6 Replies

ActionScript 3.0 :: Preloader Bar Anf Change Color Tint

Aug 13, 2010

I want to make classic loader bar that scales as it loads, but I also wanted to make it change color (tint). I've tried this but it doesn't work. Any sugestions?

[Code]...

View 1 Replies

ActionScript 3.0 :: How To Make MC Width 100 Percent With Tint

Nov 18, 2010

I'm fairly new to flash especially AS3 and I'm trying to make a MC width 100% with the color changing (tint) but I want the rest of my content to remain a fixed size/non scalable and centered. I've seen this tutorial [URL] but don't have a clue where to start.

View 1 Replies

ActionScript 1/2 :: Slider To Control The Tint Of The Movieclip?

Aug 16, 2010

I have a horizontal slider and a movieclip and I need the slider to control the tint of the movieclip.

View 1 Replies

Professional :: Keep A Movieclips Filter/tint Changes After Breaking Apart?

Mar 13, 2012

I'm currently working on combining a bunch of movieclips with variating color schemes that I'd like to condense into a unified pallete. Breaking apart a movieclip reverts the graphics to the original colors but it would be super-helpful if flash repasted the current color settings onto the graphics once its broken apart. Maybe implementing a few of illustrators color palette tools would be great too. If this isn't the proper place, then I apologize but I wanted to pass the info along as an artist who is currently using flash as his primary art development tool right now.

View 5 Replies

ActionScript 2.0 :: Tint Moviceclip / BUT As In Flash Software

Jun 23, 2009

I am trying to have a code-based solution to tint a movieclip.I KNOW there is the way to tint it using colortransform, problemis, ist not the same effect as if I would 100% tint a clip in flash. Meaning I want the effect that, if I 100% tint it, only a monochrome silhouette is left of the clip.

View 0 Replies

ActionScript 2.0 :: On Rollover Change Tint Of Movieclip

Oct 20, 2008

I have a menu that I want to add some actions on so that when the mouse rolls over each button symbol, a large clip that takes up all of the background changes colour. I could do that with a simple rollover this. but that changes the colour in one sudden stroke while what I'm looking for is a gradual pass from tint A to tint B. As an example, If button A is yellow and button B is blue, it should show the pass from green as I switch from button to button.

View 2 Replies

ActionScript 2.0 :: Sliders To Adjust MC / Tint Level?

Oct 19, 2004

I am looking for sliders that let you adjust an MC (or graphic) through the interior hue specturm as well as another slider that will adjust tint level (brightness.)

View 1 Replies

ActionScript 3.0 :: Change The Colour / Tint Of A Movie Clip?

Feb 6, 2009

how you can change the colour / tint of a movie clip via code, and essentially via a RGB value specified in an external xml file.

Here is the xml file I'm working with right now...

PHP Code:

<Countdown year="2009" month="2" day="14" bgdcolour="0xFFFFFF" lcdcolour="0xFFFFFF" labelscolour = "0x000000" textcolour = "0x000000">
</Countdown>

[Code].....

The bits highlighted in red bold above is the section where I've got stuck.. I have tried code: var bgdcolour:uint = Countdown.@bgdcolour; , but no luck and all I get is '16777215' in the output panel..

View 4 Replies

ActionScript 3.0 :: Change The Property Tint With Animation Of A Movieclip?

Feb 10, 2011

I want to know how i change the property tint with animation of a movieclip when i press ou do Mouse over in the same moviclip. but i like to do this with as3.

View 12 Replies

ActionScript 3.0 :: Replace Tint Color In Movie Clip?

Jul 7, 2009

I have square box with simple animation. Now I want to change color of my movie clip. Is this possible to change my movieClip's box ? My square box instance name is "blueBox". I mean i want to specify tint value

View 1 Replies

ActionScript 2.0 :: Any Write AS That Lets Tint Object At Runtime

Oct 19, 2004

I am looking for sliders that let you adjust an MC(or graphic) through the interior hue specturm as well as another slider that will adjust tint level (brightness.)

View 1 Replies

ActionScript 2.0 :: Controlling A MC's Tint With A User Selectable Pallet?

Dec 10, 2005

In a previous project I gave the user a choice of colours for some main features of a Flash Movie. I did this by first giving them eight boxes which each had a different colour painted into it. On them clicking a box (red for example) every part that would be affected would jump to a frame in it's own movie clip to make it appear red. It was a very simple concept to provide customiasable features for users.

I want to take this one step further by having a colour palet of all colours Like the one below) in which a user can click any part of it and then make a movie clip's tint property change to that variable.

I love a challenge but I just wnated to check I wasn't going the wrong way about it,

View 7 Replies

ActionScript 2.0 :: Random Tint For Symbols From A Select 4 Colors?

May 11, 2010

I am trying to get symbols to randomly get tinted from 4 select colors.The symbols come in randomly but would like them to come tinted randomly as well. How would you get them to tint at a random color in AS2?

View 5 Replies

ActionScript 2.0 :: Using Action To Change Tint Effect On Object?

Sep 21, 2002

is it posible to use action script to change tint efect on object. I found only alpha property posible to change.. I nead to put color (100%) tint on instance.. an then using actions change this percents depending on user behaver... (I can do it withaut actions.. but I dont wont to.. (lot of work..)

View 6 Replies

Reverse A ColorTransform?

Feb 16, 2011

In a game I'm working on, I'm using the ColorTransform class to the turn the 'enemies' red as they fall off the screen after they've been hit by one of the player's 'missles' with the following [code]...

Can I somehow undo the ColorTransform to an enemy once it has been applied, or does he have to stay monochromatic thereafter?

View 2 Replies

ActionScript 2.0 :: Change Tint Of Movie Clip On Rollover Function?

Jun 29, 2006

I'm using a function to make a movie clip with text inside of it act as a button:

Code:
poly.onPress = function() {
clearInterval(intervalID);
_parent.vocab.play();
};

is there a way to add a onRollOver: change tint of 'poly' to red (poly is a mc)??

View 14 Replies

ActionScript 2.0 :: Change The Tint Of A Movie Clip Inside The Component?

Jan 19, 2007

I am trying to build a custom button component in flash 8... I am setting it up so you can change certain color values with the component inspector.I want to know how to change the tint of a movie clip inside the component...I searched all over the place, maybe I'm not looking right.I found out how to change the color in a text field but I am still stumped on how to change a movie clips tint.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved