Jump to content
Search Community

Blur with TweenLite

MutleyDog test
Moderator Tag

Recommended Posts

Newby question here, but how do you blur using TweenLite? I've done the usual forum and Google search but it's really the syntax I'm after.

If tried:

TweenLite.to(my_mc,1,{_blurX:5, _blurY:5});

and various other combinations with no luck. Do i need TweenMax, as I tried this with some success but it'd be good to keep things with TweenLite as I'm using that for most of the animations and I only need to blur one thing.

 

Cheers!

 

Andy

Link to comment
Share on other sites

Check out the Plugin Explorer - hit the "example" button next to "blurFilter" and you'll see an interactive example with code.

 

If you want to use TweenLite, just don't forget to activate the BlurFilterPlugin like:

 

import com.greensock.plugins.*;
TweenPlugin.activate([blurFilterPlugin]);

 

You only need to do that once in your swf.

 

Then it's as simple as:

TweenLite.to(mc, 1, {blurFilter:{blurX:10, blurY:10}});

Link to comment
Share on other sites

Well I've tried for a few hours and I dont seem to be getting too far using either tweenLite or Tweenax. I've attached a simplified version, but basically, I've made a movieclip with the instance 'mc' and applied the following:

 

import com.greensock.plugins.*;

TweenPlugin.activate([blurFilterPlugin]);

TweenLite.to(mc, 1, {blurFilter:{blurX:10, blurY:10}});

 

 

...obviously there's the com folder from TweenLite.

 

This is all in AS2 by the way....

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