[Tweener] _DisplacementMap_mapPoint_x?

Zeh Fernando zeh at zehfernando.com
Sat Aug 30 11:24:03 PDT 2008


Hey Mitch,

I'm not really sure what's happening. If FilterShortcuts is properly 
inited before the tween, it should work.

Zeh

Mitch Rosefelt wrote:
> Hi All:
> I'm trying to use the _DisplacementMap_mapPoint_x to hold a displacement 
> map in place while the object being displaced is moved across the Stage.
> At this point the displacement is being applied and the object moves 
> across the screen with the displacement.
> When I run the movie, it plays, but I get this error:
> ## [Tweener] Error: The property '_DisplacementMap_mapPoint_x' doesn't 
> seem to be a normal object property of [object MovieClip] or a 
> registered special property.
> I'm able to run the "Beating Heart" example (which is tre cool) with no 
> problem.
> 
> Any suggestions will be appreciated.
> Thanks.
> Mitch
> 
> // Code:
> 
> import flash.display.BitmapData;
> import flash.display.Loader;
> import flash.events.MouseEvent;
> import flash.filters.DisplacementMapFilter;
> import flash.geom.Point;
> 
> import caurina.transitions.Tweener;
> import caurina.transitions.properties.*;
> caurina.transitions.properties.FilterShortcuts.init(); // _Displacement_*
> caurina.transitions.properties.DisplayShortcuts.init(); // _scale
> 
> var objToDisplace:MovieClip = dog_mc;
> 
> Tweener.addTween(objToDisplace,{x:(objToDisplace.x - 40), time:3, 
> delay:1, transition:"linear"});
> //Move the displacement map in the opposite direction:
> Tweener.addTween(objToDisplace,{_DisplacementMap_mapPoint_x:(objToDisplace.x 
> + 40), time:3, delay:1, transition:"linear"});
> _______________________________________________
> Tweener mailing list
> Tweener at lists.caurinauebi.com
> http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com
> 


More information about the Tweener mailing list