Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Tim Jaramillo

MotionBlurPlugin- blendMode not showing up during tween

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

To followup/close out on this issue, Jack sent me a new greensock.swc build that resolved the above issue (blendMode not working when using the motionBlur filter).

 

I'm sure he'll include this patch in the next release.

 

Thanks Jack!

  • Like 1
Link to comment
Share on other sites

As a second followup- in the patch that Jack gave me, I've found that the blendMode still doesn't work during a motionBlur tween, if:

  1. the motionBlur tween is applied to a parent symbol
  2. the symbol that has a blendMode applied is nested in that tweened parent symbol
Link to comment
Share on other sites

Thanks for the follow-up. And yeah, those conditions are impossible to accommodate in Flash (as far as I know). It's not a bug in MotionBlurPlugin, just a limitation of Flash itself. 

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.
×