Flash Transition
Flash Transition
Out of context: Reply #8
- Started
- Last post
- 8 Responses
- caseyc0
Here's an implementation I did way back, sets "blowout" as a mc property so you can use it easy with one of the many tween engines/methods out there.
// Usage:
// my_mc.blowout = 50;var p = MovieClip.prototype;
// Blowout property
// Getter
p.getblowout = function() {
var c = this.$color.getTransform();
return c.rb;
}
// Setter
p.setblowout = function(v) {
v = Math.floor(v);
if (v > 100) v = 100;
if (v < 0) v = 0;
if(this.$color == undefined) this.$color = new Color(this);
v /= 100;
// brightness
v *= 255;
this.$color.setTransform({rb:v,g...
}
// Add as a property
p.addProperty(
"blowout",
p.getblowout,
p.setblowout
);