## tiny dismal kludges all band-aided together, and now those bottom-line
## clueless pinheads who've never even heard of "TCP handshake" want to run
## *commerce* over the damn thing. Ye godz.
- Fyodor, http://www.opensource.apple.com/source/netcat/netcat-4/netcat/scripts/web
Today, I spent 3/4ths of a day hitting my head on the code to merely draw a red rectangle between two layers in a MovieClip. (Edit: A thermometer, if you're curious.)
Ultimately, I had to resort to creating a whole new symbol in CS4. And that, of course, had to be another whole damn MovieClip itself. Because we couldn't allow people to just use Sprites (or, god forbid, simple Bitmaps) for static graphical objects, now could we Adobe?
Then I had to battle with the problem of calculating where said MovieClip would go on-screen, and how to calculate the correct measurements for the rectangle in Flash's insanely broken and wrong-headed "Y increases downward" coordinate system. Wanna see the code?
column.drawColumn(0, -(bottomY - se.target.y), redWidth, (bottomY - se.target.y), redColor);
If that makes any sense to you, you're a much smarter person than I am. I particularly love how the starting Y coordinate has to be negative. So very intuitive!
And all this bullshit because when I do MovieClip.graphics.drawWhatever(), it unfailingly draws my whatever below all layers (and thus, underneath all other graphical elements) in the MC.
There's no way Adobe uses their own code. If they ate their own dog food, this kind of unbelievable crap would have been shit-canned seven versions ago.
(And don't even get me started on Adobe's burying of Red5. A horrible, nasty, evil, open-sores hack (but I repeat myself) that required a whole fucking Apache Tomcat installation just so you could record a three second sound clip from the user's mic. But it was a threat to Adobe's $5k (massive rip-off) Flash Media Swerver, so they got it dragged offline. Can't have people recording audio in a flash app! No siree! Not unless they fork over a hundred times what that kinda thing is worth - to us!)
God I hate you Adobe. Hate you so very, very much. From hell's heart, I stab at thee...