flash: local to global?
flash: local to global?
Out of context: Reply #2
- Started
- Last post
- 5 Responses
- Jman0
thanks Unfit....I knew you'd come thru for me, but I a;so figured you'd be a little over my head, which you always are....could you elaborate a little? Here is my script...
onClipEvent (enterFrame) {
deltaX = math.round(_root._xmouse-this._x...
deltaY = math.round(_root._ymouse-this._y...
diff = Math.round(Math.sqrt((deltaX*del...
if (diff>95) {
diff = 95;
}
// change alpha
_root.cover._alpha = (100-diff);
// change scale
_root.cover._xscale = (100-diff);
_root.cover._yscale = (100-diff);
}I have this code on a clip inside a clip....so it is referrencing the x and y in relation to the parent clip, but i need it to be in relation to the stage.....any more help is greatly appreciated