-
Question about the Tween Class
Hey just a quick question, I'm utilising the blur filter in the tween class so when you mouse over; the MC will blur horizontally..
Typically if I were to use the _alpha property for example, I would put the starting point as this._alpha rather than a fixed value.
How do I go about doing this with blur? I tried this.blurX but doesn't work,
Cheers!
PHP Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
import flash.filters.BlurFilter;
myMC.onRollOver = function() {
var myBlur:BlurFilter = new BlurFilter(0, 0, 1);
var blurTween:Tween = new Tween(myBlur, "blurX", Regular.easeInOut, 0, 40, 0.3, true);
blurTween.onMotionChanged = function() {
myMC.filters = new Array(this.obj);
};
};
-
Theres a plugin called tweenlite at: blog.greensock.com/tweenlite/ which is easier to use than the built in tween in Flash.
-
Thanks I'll check that out.
I'm actually building a component which I may sell further down the line, I don't think I could use this commercially. Does anyone know if there is a built in way to check where the current blurX is? (like this.alpha)
-
-
Flash/Flex Developer
Not sure, haven't done it before, but the Tween class has a position property that is suppose to tell you info about the current tween.
Some people are like Slinkies, not really good for anything, but they bring a smile to your face when pushed down the stairs.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|