This content has been marked as final. Show 4 replies
use parent instead of _parent and use x instead of _x.
hey there, thanks for the response.
i tried that and entered:
var baseRate:Number = 3.5
var difference:Number = parent.targetx - parent.panel.x;
var rate:Number = difference / baseRate
parent.panel.x += rate;
and it gave the error below
1119: Access of possibly undefined property targetx through a reference with static type flash.display:DisplayObjectContainer.
1119: Access of possibly undefined property panel through a reference with static type flash.display:DisplayObjectContainer.
thanks for any guidance on this
where is that code and where is targetx and panel?
the easing code is in a movie clip called "script" on the main stage
the "panel" clip is on the main stage
the variable "targetx" is set on the main stage in frame 1
i put the file up if you want to take a look at it: