Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Change Contrast/brightness Movieclip Via Actionscript?



Hi guys,

I've been seaching this flash 8 forum, but I was unable to find anything.
Is it possible to change contrast/brightness movieclip via actionscript?
I know it's possible to do by adding a filter to a movieclip manually and selecting 'ajust color filter' but is there any way to adress the contrast or brightness by actionscript.

Thanks!



KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 02-27-2006, 11:15 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Change Brightness, Saturation, Contrast?
Hi,
I'm trying to figure out how to change the brightness, saturation and contrast of an MC. I don't want to tween it, all I want to do is set it to the following values onRelease:

B: -50
C: -50
S: -100

I'm sure this is easy, but it aint easy for me.

thx!

-Z

Contrast/brightness Effects
Hello,

I'm trying to recreate an effect and would appreciate some guidance.
Please see:

http://www.mikimoto.com/uk/top.swf

Can anyone give me any pointers on they created this fade in effect?

Thanks, pm

Brightness And Contrast Adjustmenten Bet. Pc To Mac Swf
I converted an swf slideshow that was originally in pc
into a mac format. everything is fine ,sound and
animation and fonts but the pics looks flat and very bright.my question is : is there a way to adjust the
pc swf pics? do i have to reimport everything back again more darker(pics) and with more contrast on my pc?
if so is there a number(+10 contrast or -15 brightness)
some kind of formula to make the pnd images in pc look good on mac? i am using photoshop 6 an my external editor.
Thanks
massimo

Brightness And Contrast Of JPEGs In Gallery
Hi,

Is it possible to make a handler to control de brightness and contrast of a picture loaded?
I have to zoom in the picture as well.

Thanks for any help

Hue, Saturation, Brightness, Contrast, In Relation To ColorMatrixFilter
I have been trying to read how Hue, Saturation, Brightness, & Contrast relate to the ColorMatrixFilter. Since there is no saturation, brightness, contrast, or hue methods, these all have to be manipulated by hand which means a very clear understanding of what these things are is needed.

So does anyone know how any of these releate to the ColorMatrixFilter?

Change The Brightness On Any MovieClip
Last edited by kensuguro : 2006-02-03 at 20:18.
























Hi, this is my first post here.. I'm sort of stumped on a problem. (some of you may have seen my post at actionscript.org)

Anyway, I want to make a MovieClip fade from white -> normal. Like a blink effect, but with tweening. Kind of like how the top row buttons on this site "blinks" when the mouse rolls over.

Now, without AS, I would just go to the properties and change the Brightness. Unfortunately, brightness does not seem to be a MovieClip property. So far, people have told me that to change the colors of a movie clip, the only way to do it in Flash 8 would be to use a combination of flash.geom.Transform and flash.geom.ColorTransform. I looked in the reference, and found way too many rows of code just to get the simple task done.

All I want to do is to make a button fade from white to normal on mouse release. I mean I see it on almost every flash site... there's gotta be an efficient way to get it done. Your help is more than appreciated.

I made a crappy demo of what I want to do:
http://www.ututu.com/~magronbass/buttondemo.swf
This is "fake" because I'm causing the blink effect by tweening the alpha value of a white box placed on top of the blue box. So, hopefully I can programmatically get this done instead of my making a white copy by hand. And I have no idea why the button so darn big. The movie's only supposed to be 100x100.

How To Change MovieClip Brightness Dynamically
Hi

How can i change the brightness of a MovieClip dynamically?

I found Following link in Livedocs but not able to understand:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/motion/Color.html#brightness

Thanks,
Alok

How To Change MovieClip Brightness Dynamically
Hi

How can i change the brightness of a MovieClip dynamically?

I found Following link in Livedocs but not able to understand:
http://livedocs.adobe.com/flash/9.0/...tml#brightness

Thanks,
Alok

Change Brightness Of A Movie Clip With Actionscript
Is there a way to change the Brightness of a movie clip with Actionscript?

[F8] How To Change Brightness Of A Graphic When MouseOver Using Actionscript?
Hi, i am trying to get a graphic to change brightness when the mouse is over it. I am happy doing this when the object is a button but i need to do this now using actionscript as it is graphic.

I know this must be quite straight forward but i am new to actionscript.

Any help will be most appreciated

Poly

Actionscript Code For Controlling Brightness Of Movieclip...?
I have Flash 8 set to Actionscript 1.0.

On the main timeline I have a graphic of a hill and tree that darkens when clicking a button. I also have a movieclip called "creature" that has a little creature walking from one end of the stage across to the other. I need a script that will control the brightness of the "creature" movieclip at the point where the main timeline animation goes dark because the "creature" movieclip sticks out like a sore thumb at that point and needs to be darkened.

Anyone know how to do this? Thanks.

Adjusting Contrast With Actionscript
i know you can adjust the contrast of a mc with "Filters->Adjust Color"but I cant find how to do it with Actionscript.

How do you adjust the contrast of a MC using Actionscript?

thanks,

Change Brightness Of Mc
how do i change the brightness of mc?
i changed the alpha of an mc like this:
frame 1
if (image._alpha>0) {
setProperty (_root.image, _alpha, _root.image._alpha-10);
}
frame2
gotoAndPlay("frame1")

Change Brightness With AS3
Hi, I have created a movieclip object, which is added to the stage using a class in a separate *.as file. I am adding multiple instances of the object onto the stage and wish to change the brightness of the objects each time I had one. I have the following code so far:


Code:
...
public class RoomClass extends MovieClip
{
private var rooms:Room;
private var MAX_RMS:int = 3;

public function RoomClass()
{
...
for(var i:int=0;i<MAX_RMS;i++)
{
rooms = new Room();
addChild(rooms);
}
}
}
...
Can anyone suggest how I may go about changing the brightness of my object.

Thanks in advance

OnEnterFrame Change Brightness?
Hi,
is that possible to do this kind of script?

---------------------------------
here.onEnterFrame = function() {

set brighness 35%

}
---------------------------------

If that is possible please someone help me!!


Cheers

Change Brightness Os Mouse Rollover
I have a movie clip, that I want to mouserollover change to brightness 65, mouserolloff change brightness back to 0. What is the proper script for doing this?

Fuse... Change Color And Brightness Together?
Hi there,

I have a movie that works with dynamic info that sets colors for clips on the stage. I want to set two clips the same color and then darken one of them.

I've tried several different approaches including the ColorMatrixFilter and nothing seems to work. Now I'm trying Fuse.

Unfortunately, I cannot get this to work either.

Here is an example of what I would like to work:

////
import com.mosesSupposes.fuse.*;
ZigoEngine.register(Fuse);
var testFuse:Fuse = new Fuse();
testFuse.push({target:test2, tint:0xCCCCCC, brightOffset:-50});
testFuse.start();
////


When published, I get the following error:

Fuse#0>Item#0 overlapping prop discarded: _brightOffset


Any suggestions?


Thanks

Change Brightness, Tween Dies
Ok, this is hard to explain but i'm posting links to .swf and the .fla.

First look at it here
here

It has 4 scenes. The words NOMOR have the brightness set to 70% in scences 1, 3 and 4. When I try to change the brightness to 70% in scence 2 the tweens stop working.

Here's the .fla fla

Change Movie Clip Brightness On Rollover
Is it possible to change the brightness level (not the alpha level) of a movie clip on rollover?

For example, I'd like the brightness of the MC to change to 65 on rollover and back to 100 on rollout.

Thanks

How To Change Grafic In A Movieclip With Actionscript?
How do I change the grafic in a movieclip? And is it even possible to do for movieclips inside another movieclip?

The code is in first frame top layer by itself.

using flash mx 2003

Change Frame Of A MovieClip From The Stage ActionScript
Hey guys,

I've been breaking my head with this for hours. I'm new to AS3. I have externally loaded a SWF movieclip onto my stage. The SWF file has 13 frames with a different image on each frame. I need to be able to change frames using the gotoAndStop command. However I would like all the actionscript to be withing the main stage (I want to avoid putting action script inside the external SWF files). Is it possible to access the timeline of the SWF file and change its frames? If yes how?

Here's a snippet of code where I try changing the frame. It just doesn't do anything ... In AS2 I had it working, however I need to convert to AS3 to use some of the new features.


***item1 represents the loaded SWF file. The rest of my code is correct, I tested it. I know for a fact my mistake is in this function. thanks!

function switcher(event1:KeyboardEvent)
{

if (event1.keyCode==Keyboard.LEFT) {

item1.gotoAndStop(1);

} else if (event1.keyCode==Keyboard.RIGHT)
{

item1.gotoAndStop(2);

}
}

Actionscript Change To MovieClip Breaks Timeline
I am looking for an explanation/possible work-around.

Here's the problem: I have a movieclip on the stage and move it from left to right via a motion tween on the timeline.
If I change the starting position of the movieclip via Actionscript 3 to a different x,y position the tween no longer works. This is contrary to Actionscript 2.

Here's a file you can see the problem with:
http://www.hildnelson.com/ASProblem/MCtestAS3.swf
Here's the source:
http://www.hildnelson.com/ASProblem/MCtestAS3.fla
Run the swf, click on the Play button and the ball move between the two lines. run the swf again and click on the "move" button which subtracts 100 pixels from the x position. Click play and as you can see the ball no longer moves. The ball now ignores the timeline.


And here's the Actionscript 2 file which works as I would expect:
http://www.hildnelson.com/ASProblem/MCtestAS2.swf
Here's the source:
http://www.hildnelson.com/ASProblem/MCtestAS2.fla
Try same steps above- the ball "honors the timeline".

Any ideas on how to solve this? Do I need to make the tween a Actionscript function rathre than a timeline tween?

Thanks!

M A R K

Brightness MovieClip Property In AS?
When one edits a MovieClip in the authoring environment, it is possible to choose the color compositing from the pull down menu in the Properties palette. From there one can choose Brightness/Color/Alpha/Advanced (Sorry if the English for that menu is different; localized version here).

The thing is that I want to modify in AS3 the brightness of a MovieClip that I already set to a darker value on the authoring environment. I have the .alpha property for alpha, but there doesn't seem to be any for brightness. And that property either is not part of .filters or I am not being able to access it correctly from the array.

Any insights, anyone, please?

Change Color Of Movieclip To Match Another Movicelip Using Actionscript
I have buttons that use setRGB to change the color of movieclip "A". I want movieclip "B" to match the color of moviclip "A" but I don't want to have to go in and add that code to every button (There are a lot of them). I there a way to tell movieclip "B" to match the color of movieclip "A"? I was thinking about creating movieclip "C" and having loop. Then in frame 1 of the actionscript layer of moviclip "C" I would add code that checks the rgb of movieclip "A" and sets moviclip "B" to be the same. I'm just not sure how to write the code.

Setting Brightness To A Movieclip And Then Back
Hi guys,
How to set brightness to a movie clip and reset that back? please let me know.

TIA

Brightness Property With Actionscript
How do I alter an MC's brightness with actionscript?
this sort of thing can be done with _alpha.

how do you do it with brightness?

CHanging Brightness Using Actionscript?
I am using flash mx 2004 and I am trying to change the brightness of a movie clip using actionscript, is this possible?

Adjusting Brightness Via Actionscript
Hi,

I've attached a file with a really nice actionscript rollover effect effect.

I'm trying to figure out a way to set the brightness of each rectangle to 50% in the actionscript so that when a user rolls over a square, the brightness increases to 100% ... on rollout, the brightness returns to 50%.

Also, there are four links on top. How can I apply this rollover action to so that it occurs on rolling over the links rather than the images?

Any takers?

cheers!!
jen

Changing Brightness With ActionScript?
I have a set of buttons in a movie, rollOver over which results in a dimming of the rest of the objects on the page. However, the only way I can dim at this time is by lowering the _alpha value, which works but not well.

The reason it doesn't work well is because the objects/buttons consist of fairly complicated drawings made in Illustrator and imported into Flash. So, when the objects are made transparent, they are not just dimmed but you can all the lines and details in the background, rather than just dimming the object to make it less visible.

So, my question is whether there is a way to adjust the brightness value through ActionScript. Any help is greatly appreciated. I am using FlashMX 2004 if it makes a difference.

TIA!

Changing The Brightness Using Actionscript
hi
i am willson from singapore i need some help

Does anyone know how to change the brightness of an object using actionscript

example:
a circle by using left and right to control it brightness

thank you
willson

Changing The Brightness Using Actionscript
hi
i am willson from singapore i need some help

Does anyone know how to change the brightness of an object using actionscript

example:
a circle by using left and right to control it brightness

thank you
willson

Controlling Mc Brightness From Actionscript
Is this possible?

MC's added to the IDE can have all sorts of colour properties tweened, but the only thing that seems to be available to Actionscript is _alpha

I simply want everything to fade out to white, so at the moment I am being forced to tween the alpha of a huge white square covering the entire stage. Not nice performance wise!

Thanks,
Lister

Changing Movies Brightness With Actionscript?
click on a symbol and you can change its advanced settings to increase its red green blue values. You could also give it a tint color, or a different brightness.

Now how do I do these things using actionscript?

Please say there is a way!


Thanks!

Set The Contrast With AS3
Hi, I need to set an mc's contrast only with AS3. It's easy to do with filters > adjust color.
Since there's no "adjust color"-filter in AS3 I have no idea how I'm going to do it.

Please help!

Image Contrast
I am trying to adjust the contrast of a photograph in flash so that it fades into white. I don't want to do this using brightness or a white mask fading in - this just washes the image out and looks dull. The effect I am talking about is essentially what you get in photoshop when you gradually reduce the input value of the curve for the rgb channel (go to image>adjustment>curves) from 255 to 0 and maintain an output value of 255(if that makes any sense) - or by increasing the brightness and contrast at the same time.

I can alter the rgb values of an image in flash using actionscript (and therefore the brightness), but I don't know how to adjust the contrast.

Any ideas anyone?

Thanks

Adjusting Contrast
This code adjusts the 'brightness', how do I increase the 'contrast'?

var myElements_array:Array = [1, 0, 0, 0, 100,
0, 1, 0, 0, 100,
0, 0, 1, 0, 100,
0, 0, 0, 1, 0];
var myColorMatrix_filter:ColorMatrixFilter = new ColorMatrixFilter(myElements_array);
mclip.filters = [myColorMatrix_filter];

Transition By Contrast
Hi,

I would like to know how can I work with contrast by Actionscript in transition of photos.

Like in this site: http://www.spacefx.co.uk/spacefx.htm

If someone know any kind of tutorial about this. thanks!

Images With High Contrast
how do u load in images with a high contrast

look at this site and it loads the images in ther way im trying to explain

http://soccer.org/

Imagevue Transition (contrast)
Check this out: http://imagevuex.inn.no/imagevue/?co...le=config8.ini

How did they do the transition, it seems that the image lights up (contrast) instead of the usual alphafade to white?!? Is this done by using two photos, like in the blur transition tutorial?

Elektramovie Website Contrast Effect... How?
hi guys..

was wondering what was the best way to achieve the high brightness/contrast effects on the http://www.elektramovie.com/ website.. go to the galleries.. noticed how each picture shows.. from SUPER BRIGHT to actual picture..

i tried doing that in FLash using brightness, but it's just not the same effect as the one on the site..

Burn Out Color Effect? (contrast)
just find sth amazing.... on the color management of flash...

http://imagevuex.inn.no/imagevue/?co...e=config10.ini

I'm wonder if flash could control the contrast of an image???
the above quoted link show you that someone really did it....
pls click either one of the album... you will understand what I'm talking about...

how could that be done!??

Thanks!

Compare And Contrast FlashMX 2004 And MX Pro.
Hello,

Recently, I obtained a copy of Flash MX 2004 Professional. I have absolutely no prior experience in flash however I'm a seasoned web and graphic developer. I purchased a Macromedia Flash MX HOT (Hands on Training) book last year but have since upgraded my copy of FlashMX. For someone just starting out, will I notice any significant differences or drawbacks when using Macromedia Flash 2004 Professional, instead of Flash MX 2004? I'm under the impressed that Flash MX 2004 Professional is geared more toward Flash Developers developing interactive applications that utilize databases. I'm wondering if FlashMX 2004 Pro. comes with un-necessary panels and other things that are likely to confuse a beginner like myself. When considering the amount of experience in Flash I currently have, the things I'll be doing will quite obviously be very easy. For someone like myself, do you think I should return my copy of MX 2004 Pro. and purchase just the regular FlashMX 2004 or will I survive? On Macromedia's website, it says that with Flash MX 2004 Pro you'll receive all the features that come equipped in FlashMX 2004 however the additional developer tools will be included.

Sorry for the redundancy in the post, just trying to make sure the question was understood. I've tried learning Flash before and have failed on several occasions. With this endeavor I will put more effort forth and make sure to approach it with a more realistic mindset.

I have just a few more questions and I apologize for the lengthy post. Is my FlashMX HOT book obsolete now that I've upgraded or can I still learn the fundamentals of the program? I'm assuming that tutorials written for Macromedia's Flash MX 2004 will also apply to the Pro edition, correct?

-Mason

Image Editing In Flash - Fliping And Contrast
hey all developers,

i am developing one image composing application in flash.
it should have capabilities to flip, rotate and scale image.
as well as brightness and contrast settings.
and paint application.
all dynamic.

paint is done using drawing api.
but cant figure out how to do flipping and contrast settings.

because there is no method for movie clip to do flip and contrast.

please guide me if anyone know the trick, to simulate this
functions.
in flash.

if it can be done in other language and then embeding in flash then
it will be fine too.

thanks.

Compare And Contrast The Loader And URLLoader Classes
Compare and contrast the Loader and URLLoader classes. I am currently studying for a test on AS3 and i dont fully understand what the answer to this question is. My book doesnt do a very good job of explaining it. PLEASE HELP

Problem Importing Image - Reduced Contrast & Saturation
I am using Flash 8. I have never had a problem importing images before. Today I imported a jpg and noticed that the contrast and saturation is significantly less than in the original image. Any thoughts?

A Simple Contrast On Main Flash(swf) Decompiler/extractors
As a flash designer, I have encountered times that I need to get elements from inside a shockwave flash, while before , it is impossible to get those resources from a finished flash,…now ,thanks to these flash decompilers, we can easily extract almost every elements(even the codes!) and re-design them into our own ?

Pls note: this is only my personal experience and does not stand for any official declaration.

(I)Objects:

(1)Flash Decompiler 2.0(Eltima) http://www.eltima.com/products/flashdecompiler/

(2)SWF Decompiler 2005(Sothink) http://www.sothink.com/flashdecompiler/

(3)Action Script Viewer 4.0(Manitu) http://www.buraks.com/asv/

(4)Imperator FLA 2.0 (AVE?) http://www.ave-imperator.com/index.php


(II)Contrast:

Application Size: (1), (2) >2.5MB
(3), (4) <1MB

Export FLA: (1), (2), (4)

Action Script 2.0 Analyse: (2), (3)

Support Flash Components: (2), (3), (4)

Speed of SWF Analyse: (2)>(3)>(1)>(4)

Speed of FLA Exportation: (2)>(1)>(3)>(4)

User-friendly Interface: (1)>(2)>(4)>(3)

Resource Exportation: similar, but (4)do not support single element exportation

Etc.: (2)has built-in IE Add-in Flash Catcher


(III)Conclusion:
As this is only my opinion, I won’t give much comments on all these four SWs, right now I’m using the Sothink one?

It’s my pleasure if you e-mail me for further discussion on these SWs.

Starwars83@gmail.com

A Simple Contrast On Main Flash(swf) Decompiler/extractors
As a flash designer, I have encountered times that I need to get elements from inside a shockwave flash, while before , it is impossible to get those resources from a finished flash,…now ,thanks to these flash decompilers, we can easily extract almost every elements(even the codes!) and re-design them into our own ?

Pls note: this is only my personal experience and does not stand for any official declaration.

(I)Objects:

(1)Flash Decompiler 2.0(Eltima) http://www.eltima.com/products/flashdecompiler/

(2)SWF Decompiler 2005(Sothink) http://www.sothink.com/flashdecompiler/

(3)Action Script Viewer 4.0(Manitu) http://www.buraks.com/asv/

(4)Imperator FLA 2.0 (AVE?) http://www.ave-imperator.com/index.php


(II)Contrast:

Application Size: (1), (2) >2.5MB
(3), (4) <1MB

Export FLA: (1), (2), (4)

Action Script 2.0 Analyse: (2), (3)

Support Flash Components: (2), (3), (4)

Speed of SWF Analyse: (2)>(3)>(1)>(4)

Speed of FLA Exportation: (2)>(1)>(3)>(4)

User-friendly Interface: (1)>(2)>(4)>(3)

Resource Exportation: similar, but (4)do not support single element exportation

Etc.: (2)has built-in IE Add-in Flash Catcher


(III)Conclusion:
As this is only my opinion, I won’t give much comments on all these four SWs, right now I’m using the Sothink one?

It’s my pleasure if you e-mail me for further discussion on these SWs.

Starwars83@gmail.com

Change Depth Of A MovieClip
Hi, for reason this bit of script is not working. The telltarget bit is but not the swapdepths..?? What I want is; when I roll over some text the menu comes to the top level and goes to a frame called "on"


on (rollOver) {
menu_cd-roms.swapDepths(10);
tellTarget ("menu_cd-roms") {
gotoAndStop ("on");
}
}

what is I doing wrong?

Copyright © 2005-08 www.BigResource.com, All rights reserved