A Couple Things That Make Flash Cranky
I’m mostly posting this for my own benefit, but maybe this will helpsomeone else.
1. If you end up with an inexplicable memory leak in an
animation-heavy Flash file, check your vector objects. Flash doesn’t
seem to like moving pngs on top of vectors (especially for extended
time periods like on EnterFrame or Timer events). I just exported my
vectors as pngs, pulled them back in, and the movie usurps 1/3 of what
having all vectors did to the processor. Dang.
2. I often have to write CSS classes for dynamic text that I pull in
as CDATA from xml and have no problems. This time I was styling some
hyperlink states and everything was peachy except the links wouldn’t
click through with a normal <a href=”http://www.fart.com> around the
text. I tried listening for a TextEvent.LINK event and using
“event:http://www.fart.com”, which I never do, but my brain was
malfunctioning. It didn’t work, but you know what did?? Putting the
goddamn TextField inside a MovieClip. I forgot that text can misbehave
if it’s not inside a MovieClip. Oddly, setting the mouseEnabled
property to true didn’t solve this.
In sum, Flash is weird.
Posted via email from Madam Marmalade’s Marvelous Melting Moustache | Comment »
1 year ago