ActionScript 2.0 :: Get Tint Color From MC?
Sep 18, 2007I am tinting some MC items in my application using:
Code:
Color.prototype.setTint = function (r, g, b, amount) {
var trans = new Object();
[code]......
I am tinting some MC items in my application using:
Code:
Color.prototype.setTint = function (r, g, b, amount) {
var trans = new Object();
[code]......
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.
I have a movie clip i want to change the color i am trying to do PHP Code:
onClipEvent(load){
_root.Mc._tint = 0xff0000
}
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]...
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 RepliesIs there anyway to use the setTint method to tint from the last color you tinted to instead of the original color of the object?[code]...
View 1 RepliesI want to know how I'm gonna do a random "tint" or "color" for my movieclip. Do someone know a tutorial for that? Btw, is it possible to make the brightness lighter or darker with
actionscript?
Is it possible to use the tint effect through action scripting?
View 6 Repliesi have a button, with instance name lightblue_color. I am assigning a color to its color field like this: lightblue_color.transform.colorTransform.color = 0x65ffff; then i am adding an eventlistener to the button like this: lightblue_color.addEventListener(MouseEvent.CLICK, ChangeColor); Then, in the function: public function ChangeColor(evnt:MouseEvent):void {trace(evnt.target.transform.colorTransform.color);} It prints 0. Why is that? Shouldn't it print 0x65ffff or do i need to do some type conversions?
View 2 RepliesI 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 RepliesI 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 RepliesApplying 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]...
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
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 RepliesThis 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 RepliesI'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.
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]...
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 RepliesI have a horizontal slider and a movieclip and I need the slider to control the tint of the movieclip.
View 1 RepliesI'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 RepliesI 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 RepliesI 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 RepliesI 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 Replieshow 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..
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 RepliesI 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 RepliesIn 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,
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 Repliesis 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 RepliesI'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)??