# Photo burn effect with actionscript? How?

**URL:** https://forum.kirupa.com/t/photo-burn-effect-with-actionscript-how/139900
**Category:** Uncategorized
**Created:** [March 6, 2005, 8:30pm UTC](https://forum.kirupa.com/t/photo-burn-effect-with-actionscript-how/139900 "2005-03-06T20:30:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Sirenetta1](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@Sirenetta1](https://forum.kirupa.com/u/Sirenetta1)
#### Post date: [March 6, 2005, 8:30pm UTC](https://forum.kirupa.com/t/photo-burn-effect-with-actionscript-how/139900/1 "2005-03-06T20:30:44Z")

</div>

Hi!

The effect I’m talking about is found at [http://www.schmidtfoto.de/](http://www.schmidtfoto.de/).

How could I accomplish this with actionscript? I read that you could do this by working with the color object? An example was given as:

```auto
myTarget = junk;

myTransform = {ra:100,rb:255,ga:100,gb:255,ba:100,bb:255,aa:100,
ab:0};

myColor = new Color(myTarget);

myColor.setTransform(myTransform);

howMuchtoSubtract = 10;
nextStep = 255;

this.onEnterFrame = function() {
nextStep -= howMuchtoSubtract;
if (nextStep <= 0) {
delete this.onEnterFrame;
}
myTransform = {ra:100,rb:nextStep,ga:100,gb:nextStep,ba:100,bb:n
extStep,aa:100,ab:0};
myColor.setTransform(myTransform);
}

```

Would this be applied to a movieclip? If so, what would the instance be? I tried to just add this code to my movieclip picture, but it did not work. Is there another way to create this effect with actionscript?

I gave this an attempt, but it doesn’t work. I’ll attach my try to this post.

Thanks!!
