Flash Actionscript 3 Reflection Class Fix

Thanks to Pixelfumes’ AS3 Reflection class, creating reflections on static images and video clips in Flash AS3 is very easy. However there is a problem that many people find in FireFox on a PC.

  1. The reflection image will start to randomly flickers.
  2. The browser’s CPU will run high and in some cases, cause your browser to crash.

To fix this problem, set the update time to -1 (not 0) This will stop the interval from redrawing the same reflection over and over again. Try this:

import com.pixelfumes.reflect.*;
var r1:Reflect = new Reflect({mc:mc.thumb_mc, alpha:50, ratio:50, distance:0, updateTime:-1, reflectionDropoff:1});

You can download the latest Actionscript 3 Reflection Class here

One Response

  1. Good note! -1 sets the update to not run its interval. The time is also in milliseconds so that 1000 is an update time of 1 second. Thanks.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

Next Post » »