PDA

View Full Version : need assistance...


httpgroup
06-15-2007, 01:14 AM
Hello everyone,

Can one of you talented folks help me out here? I'm having problems stopping this motion blur. I've tried all the tutorials but my AS skills are seriously out of date.

Here is what I have so far...

import flash.filters.BlurFilter;
import mx.transitions.Tween;
import mx.transitions.easing;

new mx.transitions.Tween(myClip, "_y", mx.transitions.easing.Elastic.easeOut, -200, -10, 2, true);
var myBlurFilter = new BlurFilter(BlurX, 10, 50);
var myFilterArray = new Array();
myFilterArray.push(myBlurFilter);
myClip.filters = myFilterArray;

I got all the effects to work including the blur but for some reason I can't get rid of the blur once the easing is done.

I thought I needed to use the "onMotionFinished" function but that doesn't seem to work either.

Thanks in advanced!

evride
06-15-2007, 06:30 AM
just add this where you want the blur to stop
myClip.filters = "";

httpgroup
06-16-2007, 05:43 PM
just add this where you want the blur to stop
myClip.filters = "";

That removes the blur but to the entire animation. Basically I would like the blur to stop once the easing is complete.

I tried using the "onMotionFinished" functions but I can't seem to get it to work.

Any ideas?

Thanks!

LOLFlash
06-16-2007, 05:57 PM
allTransitionsOutDone

httpgroup
06-16-2007, 06:06 PM
allTransitionsOutDone

How do I add this to the script I already have? I copied and pasted it into the bottom of my code and nothing happens, it removes all transitions.

How do I write it so once the easing is complete the blur dissapears.

Thanks for the response!

LOLFlash
06-16-2007, 11:44 PM
TransitionManager class has an event listener: allTransitionsOutDone

I never did it but I would search help for TransitionManager