Mouse-position outside flash tutorial
 To use javascript with banners can be a true headache. I wan’t to share my exerience of the obstacles I found so far.
Before you start, make sure you have the permission to use javascript on the sites. Sometimes you can sneak in your javascript in the embed-code generated by the media agencies, the siteowner does’nt even have [...]
Mozilla eats “@” for breakfast
I found this weird little bug today.Â
If windowmode is set to transparent, Mozilla don’t register the altGr+2 as “@”. (I have not tested other characters with AltGr ). Only fix is to remove the wmode-param. So remember this when you need that html background-image under your flash and the same time register a email-adress.
Thanks god for google!
Stopped by the pop-up blocker in your browser?
I used the navigateToURL(new URLRequest(www.whateverURL.com),”_blank“)
But when I tried it my browser just activates the pop-up blocker sign… not very god…
So after some trial and errors I found out the if I use the External interface it works great on my explorer and Firefox.
Here is my example: ExternalInterface.call(”window.open”,”www.whateverURL.com”);
Where’s the mouse at
An odd thing I stumbled upon. Don’t know if you would file it as a bug. Apparantly you can hide the mouse with Mouse.hide() even when the mouse is outside the flash area. This simple flash show how you coudl easily annoy people by using Mouse.hide() in an onEnterFrame loop. Even when the mouse pointer [...]
Slow and smooth
Making animations where bitmaps are moving slowly across the screen can be a tricky thing. Since Flash rather wants to move the bitmap in even pixels, the animation can get annoyingly jerky at slow speeds.
My tricks:
In Scandic Better World I’m animating clouds slowly across the screen (depending on that the user has a fast enough [...]
So frame me!
For me, one side of adapting to AS3 is the timeline and the bad conscience about using it. I’m not ready to let it go completely and I belive that there is still more to get from it.
In AS2 I always used the technique to goto a frame and directly use the instances at that frame. Even if all animations was coded, [...]
Dynamic textfields and optimizing
When you need to squeeze that extra Kb for your so greatly programmed dynamic “one-frame”-fla, keep an eye of your dynamic textfields. The size of a textfield with at least one embedded character is up to 7 kb larger than the same charaters in a static textfield.
I don’t know why, but one reason could be that there is a set [...]