PDA

View Full Version : Can't get _x property when tweening


MikeHunt79
01-17-2006, 12:49 PM
Ok, I'm trying to make an actionscripted clip follow a normal clip

I need to read the _x co-ord when the object is moving but I can't.
I've tried this:
trace(getProperty(_root.triple_logo, _x));

It works fine when the object is still, but when it tweens, I get "undefined" appear in the output window.

Now... how can I get the _x property when my clip is tweening.

I've tried
trace(_root.triple_logo._x);
without any luck as well.

myFUD
01-17-2006, 01:56 PM
As this is Actionscript 2.0 forum your first example uses improper syntax. Use

this.onEnterFrame =function(){
trace(triple_logo._x)
}


This is the better way to code. Also, make sure your movie is named the same at each keyframe in the animation.