Jump to content
Search Community

MotionBlurPlugin- blendMode not showing up during tween

Tim Jaramillo test
Moderator Tag

Recommended Posts

Hey guys,

 

I'm running into an issue with blendMode not showing up while a motionBlur tween is occurring. Below is a simple example showing the issue (copy and paste the code into Actions panel on Flash timeline). Notice that the blendMode is only applied after the tween is finished.

 

I've tried cacheAsBitmap with no luck. Any ideas or workarounds?

 

 
import com.greensock.*;
import com.greensock.plugins.*;
 
import flash.display.Shape;
import flash.display.BlendMode;
 
TweenPlugin.activate([MotionBlurPlugin]);
 
 
var s1:Sprite = new Sprite();
s1.graphics.beginFill(0x0000FF);
s1.graphics.drawRect(0,0,600,100);
s1.graphics.endFill();
 
 
 
var s2:Sprite = new Sprite();
s2.graphics.beginFill(0xFF0000);
s2.graphics.drawRect(0,0,100,100);
s2.graphics.endFill();
s2.blendMode = BlendMode.MULTIPLY;
 
 
addChild(s1);
addChild(s2);
 
TweenMax.to( s2, 4, {motionBlur:{strength:0.5, quality:2}, x:200 });
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...