
I am setting up a GUI interface project that mimics FLASH interaction/ MAC OSX pop scale effect.
Original credit to http://jjgifford.com/expressions/geometry/length.html
The expression works for scale,and opacity on the shape layer but not on the Text layer.
I want the fill color to change from white to black when click I the text, but it doesn't.
Please help, the project depends on it.

This is the expression:
// Fill color of TEXT manipulated with control layer "Drag Me"
// expression Applied to fill color parameter of TEXT
// Point1 is TEXT layer, point2 is control layer
point1=this_layer.position;
point2=this_comp.layer("Drag Me").position;
// Find the vector between the 2 points
delta=sub(point1, point2);
// Now find the length
distance=length(delta);
//Use linear() to remap distance to range of 40 to 0
//Color is a 4 dimension array like [red,blue,green,alpha]
linear(distance, 0, 80, [0,0,01], [1,1,1,1]);
Any help is greatly appreciated!