Groups | Blog | Home
all groups > flash actionscript > june 2004 >

flash actionscript : A special Effect Needed


Paycheck
6/11/2004 10:51:24 PM
Hi all I am wondering if anyone can explain or help me code this effect as seen
here on this http://www.ronmacphoto.com/# When you click on one fo the images
in teh scroll bar you will see the image burn in from white to the true colors.
I ahve been trying to re-create this effect with the brightness tween but
still am unable to get the overall effect as dramatic.

The effect takes a picture and when the image comes in it burns in from a
bright white to a soft even fade to the true colors. I would be gratefull to
anyone who could either explain the process or help me with an FLA that I could
break down.

Again the web site up top ronmac.com will show an example of it.

Thank you in advance.

JM
JPI
6/11/2004 11:29:04 PM
I tried to make that effect using a white square MovieClip. When you click a
button, the white square's alpha goes from 100 to 0. It looked klunky until i
jacked up the fps to 36, that smoothened it out a bit.
I can email it to you if you want to check it out, you'll have to post your
address.

The effect on his site gives a much better color burn, so I'm led to beleive
that instead of using a white square "mask" like I did, he used a modified
image of the displayed image, and it's rgb values are cranked to acheive a
bright white. Just my guess.
JPI
6/11/2004 11:49:10 PM
urami_, why is it that the only options I have are the W:, H:, x:, and y: upon
selecting the photo, going to properties, ctrl&F3 ? I have no EFFECT item
either...(Flash MX 2004) ?

Thanks in advance.
Paycheck
6/12/2004 1:37:26 AM
OK Guys the Advanced tabs with the RGB cranked to full on each create a white image, this is exactly the effect I needed. Thanks a bunch.

Laiverd.COM
6/12/2004 3:30:54 AM
Turn your image into a symbol first. Than you can apply what Urami talks
about to the instance of the symbol you have on stage. Basc stuff described
in the manual.

John

--
----------------------------------------------------------------------------
-----------
RESOURCES
http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash
----------------------------------------------------------------------------
-----------
TUTORIALS at
www.laiverd.com
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------

urami_
6/12/2004 7:09:35 AM
[quoted text, click to view]

It's pretty simple, all you have to do is make motion tween of your photo.
Say from frame 1 to 10 . On frame 10 highlight your image , go to properties CTRL F3
and under EFFECT choose advanced- setting . In advanced change the color xR/xG/xB
roughly to 120-150 and above each .
Depends on the image, if you have light color with day time sky you can over brighten it , with
dark one you can go to 170.

--

Regards


urami_*



<no>
http://flashfugitive.com/
</no>

Jack
6/12/2004 1:12:28 PM
you can produce this effect in Actionscript (AS1.0)
make the image a movieclip and give it an instance name -
clip1, add a main timeline script -

Color.prototype.setBrightOffset = function(offset){
var trans = new Object();
trans.rb = trans.gb = trans.bb = offset;
this.setTransform(trans);
}

MovieClip.prototype.setBrightness = function(offset){
var c = new Color (this);
c.setBrightOffset(offset);
};

iv = 255;
clip1.setBrightness(iv);

function fader(){
iv < 0 ? clearInterval(bright) : iv -= 5;
clip1.setBrightness(iv);
};

bright = setInterval(fader,10);

hth

[quoted text, click to view]

AddThis Social Bookmark Button