# The baddest Flash discovery you will see today

**URL:** <https://forum.kirupa.com/t/the-baddest-flash-discovery-you-will-see-today/82582>\
**Category:** programming\
**Created:** [March 11, 2005, 12:18pm UTC](https://forum.kirupa.com/t/the-baddest-flash-discovery-you-will-see-today/82582 "2005-03-11T12:18:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nih](https://avatars.discourse-cdn.com/v4/letter/n/4af34b/32.png) [@nih](https://forum.kirupa.com/u/nih)\
**Post date:** [March 11, 2005, 12:18pm UTC](https://forum.kirupa.com/t/the-baddest-flash-discovery-you-will-see-today/82582/1 "2005-03-11T12:18:47Z")

</div>

globalToLocal() is broken.  
globalToLocal() is broken.  
globalToLocal() is broken.  
globalToLocal() is broken.  
globalToLocal() is broken.

Any questions?

So anyway, localToGlobal works fine. However globalToLocal is so broken it looks like some really bad use of sin() is going on. With it off, translating a point through a rotated object is fine. With it ON objects weave in and out of the screen and flicker every second frame. Which is exactly what happened when I originally wrote my own version of this function and got it completely wrong.

Fix it Macromedia.
