Basically, how do I do it? I want to set the height, width, and position of the dropped object to match the target object.
All of these traces output "undefined":
ActionScript Code:
trace(this.droptarget._name);
trace(this.droptarget._parent._x);
trace(this.droptarget._parent._y);
trace(this.droptarget._parent._height);
trace(this.droptarget._parent._width);
Whereas this outputs "/exercise/task_bin" (the full path of the target MC).
The droptarget is a MC that consists of only a shape. I read that droptarget might fetch the shape instead of the MC, so I tried these but they all return undefined as well:
ActionScript Code:
trace(this.droptarget._name);
trace(this.droptarget._parent._x);
trace(this.droptarget._parent._y);
trace(this.droptarget._parent._height);
trace(this.droptarget._parent._width);
How can I access the properties of the target object?