LocalToGlobal?
hello,
i've got little problem using localtoglobal. let me facts:
i have, on stage, movie clip called "plan1" , in mc, have mc called "place1".
i want obtain place1 x , y absolute location (not relative plan1 mc) can place tooltip besides it.
i have (in mc actionscript):
on(rollover) {
var mypoint:object = {x:this._x, y:this._y}; // p"lace1" mc
this.localtoglobal(mypoint); // want place1 (this) obtain global points of mypoint
trace(mypoint.x + ":" + mypoint.y); // doesn't return absolute position
}
in fact, returns sooo not i'm looking for.
if place1 mc @ x:100, y:100 of plan1 mc, in turn @ x:50, y:50 of stage, coords i'm looking 150:150! can positionate tooltip coordinates.
any appreciated!
nevermind, found alternative.
i use _root[salle1]._x (first mc) + this._x (second mc) , gives me global x if second mc. tested , works.
More discussions in ActionScript 1 and 2
adobe
Comments
Post a Comment