dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: overexposure on images

  1. #1
    Senior Member skdzines's Avatar
    Join Date
    Sep 2003
    Posts
    301

    overexposure on images

    Can anyone tell me how I could achieve this affect using actionscript on the images? When you click on one of the thumbnails at the top, the larger image looks like it is being overexposed or something to that effect as it fades out and transitions to the next photo.

    http://www.templatehelp.com/preset/p...BUNra62hZU0fNk

    Any help would be greatly appreciated.

    Thanks

  2. #2
    Member
    Join Date
    Sep 2004
    Posts
    40
    after taking several screenshots at different times of the transition and trying to recreate the effect, I can say with a reasonable degree of certainty that he is adjusting both the contrast and the brightness at the same time. Unfortunately I was doing this manually, and I'm not too familiar with applying filters at runtime. I don't see an exact equivalent to the "adjust color" filter, but I suspect the ColorMatrixFilter is similar.

  3. #3
    Member
    Join Date
    Jul 2007
    Posts
    77
    you have to use the transform object.
    Code:
    var exposure:Number = 0;
    var changeExposure:Number = 5
    var my_color:Color = new Color(my_mc);
    var myColorTransform:Object = new Object();
    my_mc.onEnterFrame = function() {
    	exposure+=changeExposure
    	if (exposure>=255) {
    		delete my_mc.onEnterFrame;
    	}
    	myColorTransform = {rb:exposure, gb:exposure, bb:exposure};
    	my_color.setTransform(myColorTransform);
    };

  4. #4
    Senior Member skdzines's Avatar
    Join Date
    Sep 2003
    Posts
    301
    Thanks for the replies guys. ugoDesigns, works great. I also found the mc_tween extension class which also does what I'm looking for.

    Thanks again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center