> actually, I'm not sure if localToGlobal does anything with 
> the scaling.
> I have the feeling it simply adds coordinates of parent 
> movieclips to the local ones..

You're right, it doesn't - you have to factor in the multiplier yourself

Something like this (for proportional scaling)
[as]

function getCoordsOfScaledMCOnStage(mc) {
        var scaler = dobmc._parent._parent._xscale/100;
        var point:Object = {x:mc._x*scaler, y:mc._y*scaler};
        dobmc.localToGlobal(point);
        return point;
}

[/as]

Obviously this implies it's not nested deep within tens of other scaled
mc's....
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to