ActionS rgb fade ?

Out of context: Reply #10

  • Started
  • Last post
  • 14 Responses
  • moook0

    try this one out, give it a copy and paste:

    var c:Color = new Color(nameOfYourMovieCLip);
    var offSet:Number = 255;

    var tween = new mx.transitions.Tween(this, "offSet", mx.transitions.easing.Strong.eas... 255, 0, 200, false);

    tween.onMotionChanged = function () {
    c.setTransform({ra:100, rb:offSet, ga:100, gb:offSet, ba:100, bb:offSet, aa:100, aB:0});
    }

    if you use this way instead of the enterFrame then you can get a nice ease in or out to the transition.

View thread