Problem: Info windows in Google maps are great but how do you pick up specific text events? It is very common to have a ‘learn more’ or ‘click here’ link nested in your text fields. Without direct access to the TextField class in the InfoWindowOptions how do we pick up these events? Solution: Well, we […]
Compress Transparent PNGs with Flash
Do you use transparent PNGs in Flash, Flex or AIR? Want to cut your application file size in half? Problem: Embedding transparent PNGs dramatically increases the size of your Flash, Flex and AIR applications. Photoshop and Fireworks dot not have any compression available for transparent PNGs (that I am aware of). Solution: Import your PNGs […]
Image Distortion and Tapering in ActionScript
Distort and taper images in BOTH ActionScript 2 and 3 without a big 3D engine. Is it possible? YES! **Update (12/15/09): Alex Uhlmann made this class even better! Distortion Effects (AS3 only) (06/24/09): After doing some more research I found that Ruben Swieringa re-wrote this same class into AS3 exactly two years ago. I wish […]
Prevent Scaling in ActionScript Projects
Problem: The scale mode for ActionScript projects is set to allow zooming by default even when the width and height are set to fixed sizes. This can distort your website when the user uses ctrl-mouse scroll wheel or hits ctrl-plus / ctrl-minus. Solution: Set the stage scaleMode to “noScale” and configure the containing div to […]