NewSourceMedia on Facebook

Flash Actionscript 3 Reflection Class Fix

Share Bookmark and Share

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

Please rate this post by clicking a star:

(2 votes, average: 3.00 out of 5)

One Response to “Flash Actionscript 3 Reflection Class Fix”

  • 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