Actionscript 3 reflection class questions
Posted
by VPDD
on Stack Overflow
See other posts from Stack Overflow
or by VPDD
Published on 2009-12-14T12:29:50Z
Indexed on
2010/03/30
19:03 UTC
Read the original article
Hit count: 430
actionscript-3
|flash
I found this reflection class:
http://www.adobe.com/devnet/flash/articles/reflect_class_as3.html
However, I have some questions about it.
Let´s say I have a moviclip named “ref_mc”, to add a reflection I use:
import com.pixelfumes.reflect.*;
var r1:Reflect = new Reflect({mc:ref_mc, alpha:50, ratio:50, distance:0, updateTime:0, reflectionDropoff:1});
Now, the questions:
1) How do I update the parameters for the reflection r1 after it is created?
2) Is there a way to check whether the movieclip “ref_mc” already has a reflection?
3) Anyone has the .fla for the example with bars adjustments and code sample shown on the page (it is not on the download .zip)?
Thanks in advance.
© Stack Overflow or respective owner