Jump to content
Search Community

blurFilter not working in AIR app

stonestudioprod test
Moderator Tag

Recommended Posts

I created a Flash CS6/AS3 project and used TweenMax to create a motionblur effect

tl.insert(  TweenMax.from(text1_mc, .5,{x:-600, blurFilter:{blurX:140}}));  

 

It looks great when I preview publish on the mac, but when I install the app to my iPad2, there is no motion blur effect. All the other scale, alpha, rotate effects are working great.

 

any ideas?

 

AIR 3.4.0.2710

GSAP 11

Link to comment
Share on other sites

My guess is that you are publishing with GPU rendering on, which doesn't support filters on mobile devices. It's not a problem with GSAP - it's an AIR thing which a quick google will confirm.

 

There's a solution to get filters working in GPU mode on the Adobe forums, but it would take a bit of extra leg work to get it to also tween using this method.

 

This is a bit of an over simplification, and I have no idea if it would provide better performance than just switching to CPU mode, but it might put you in the right direction:

var text1_mc_proxy:MovieClip; // the original text1_mc movieclip
var text1_mc:Bitmap; // the display object on the stage

updateBitmapData(text1_mc_proxy, text1_mc);

// move the object that is on the stage
tl.insert(TweenMax.from(text1_mc, .5, { x: -600 }));

// change the blur filter of the proxy, then update the stage object
tl.insert(TweenMax.from(text1_mc_proxy, .5, {
    blurFilter: { blurX: 140 },
    onUpdate: updateBitmapData,
    onUpdateParams: [text1_mc_proxy, text1_mc]
}));
function updateBitmapData(source, target) {
    // draw source into target BitmapData - check the Adobe forums link
}
  • Like 2
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...