I know I'm answering my own questions but hope someone has gone down the same 
path as me, can tell if I'm overlooking something obvious or wants to learn 
from my mistakes. . . 

My previous idea didn't work thanks to 
transition>blur>BlurInstance>TweenInstance>Tween.endTween.

endTween sets the tween to whatever state it should be at in the final 
position. In this case whatever blurXTo and blurYTo is.

to work around I'm listening for an update event and reset the blur to the last 
known value after it gets set to the end value on effectEnd. HOWEVER, this 
causes a noticable flicker as the endTween state is briefly displayed because 
BlurInstance.onTweenEnd.calls the private setBlurMethod.

so it now seems that i need to override the endTween method in my own class to 
prevent the tween from setting its to values. Unless of course I'm missing 
something painfully simple.

?








________________________________
From: Flex Noob <[email protected]>
To: [email protected]
Sent: Friday, December 12, 2008 12:51:22 AM
Subject: Re: [flexcoders] how do you blur smoothly between two states?


just dug into the AS3 classes and it by default  fromX/fromY has a default 
value of 4 and in the BlurInstanceClass it doesn't save the current blurX/BlurY 
values. I could create an event that listens for the update, the only time the 
value are sent, but then that adds extra overhead for each update.

Instead what I'll do is call a function to iterate the filters list, grab 
blurX/blurY.

Just wished they would have exposed a blurX and blurY prop on the Blur the 
wiring is there, just failed to provide a stub.




________________________________
From: Flex Noob <fl3xn...@yahoo. com>
To: flexcod...@yahoogro ups.com
Sent: Thursday, December 11, 2008 11:34:01 PM
Subject: [flexcoders] how do you blur smoothly between two states?


hrmmmmmm, I don't get it

Say I have this on rollover:
<mx:Blur id="blur" duration="1000" blurXTo="10" blurYTo="10" blurXFrom="0" 
blurYFrom="0" target="{this} "/>


and this on roll out:
<mx:Blur id="unblur" duration="1000" blurXTo="0" blurYTo="0"  blurXFrom="10" 
blurYFrom="10" target="{this} "/>

works, cool, rock on. however if I mouse off at say 500ms the blur JUMPs to the 
to value and then works it way back. kind of sucks.

I've tried ommiting blurfrom or setting the value to *, "" and even 
blurXFrom="{ blur.blurXFrom} " blurYFrom="{ blur.blurYFrom} "but no dice.

what gives?


    


      

Reply via email to