Home
> FlashEff 1 (Discontinued version)
> Topic
How to set positionX and blurX in actionscript
Posted by flomotion
How to set positionX and blurX in actionscript October 31, 2008 08:47AM | Registered: 15 years ago Posts: 3 |
Hi,
I wrote a function for attaching the slide pattern to an object.
It works and 'tweenType' and 'easeType' work perfectly.
but 'positionX' or 'blurX' don't do anything..
How can I set them so that I can change their values in actionscript?
public function Bounce(bounceObject: Sprite) {
var showPattern:FESSlide = new FESSlide();
var myEffect:FlashEff = new FlashEff();
myEffect.showTransition = showPattern;
myEffect.showTransition.tweenDuration = 1;
myEffect.showTransition.tweenType = "Bounce"
myEffect.showTransition.easeType = "easeOut"
myEffect.positionX = 0;
myEffect.positionY = 250;
myEffect.blurX = 0;
myEffect.blurY = 0;
addChild(myEffect);
myEffect.target = bounceObject;
}
thanks
Floris
I wrote a function for attaching the slide pattern to an object.
It works and 'tweenType' and 'easeType' work perfectly.
but 'positionX' or 'blurX' don't do anything..
How can I set them so that I can change their values in actionscript?
public function Bounce(bounceObject: Sprite) {
var showPattern:FESSlide = new FESSlide();
var myEffect:FlashEff = new FlashEff();
myEffect.showTransition = showPattern;
myEffect.showTransition.tweenDuration = 1;
myEffect.showTransition.tweenType = "Bounce"
myEffect.showTransition.easeType = "easeOut"
myEffect.positionX = 0;
myEffect.positionY = 250;
myEffect.blurX = 0;
myEffect.blurY = 0;
addChild(myEffect);
myEffect.target = bounceObject;
}
thanks
Floris
Re: How to set positionX and blurX in actionscript November 03, 2008 07:41AM | Admin Registered: 15 years ago Posts: 270 |
The FlashEff component itself does not have the positionX and blurX properties. Those properties are located on the pattern itself. So you should write
showPattern.positionX = 0; showPattern.positionY = 250; showPattern.blurX = 0; showPattern.blurY = 0;or
myEffect.showTransition.positionX = 0; myEffect.showTransition.positionY = 250; myEffect.showTransition.blurX = 0; myEffect.showTransition.blurY = 0;
Re: How to set positionX and blurX in actionscript November 10, 2008 10:13PM | Registered: 15 years ago Posts: 3 |
Sorry, you do not have permission to post/reply in this forum.