[Tweener] _DisplacementMap_mapPoint_x?

Mitch Rosefelt PixelDroid at thepixelfarm.com
Fri Aug 29 16:00:30 PDT 2008


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"});


More information about the Tweener mailing list