Loader.close(), a slippery little basted!

I was working with the Loader class and thought that a good practice to avoid a lot of unnecessary bandwidth loadings is to clear any loading progress before I start a new one. Just to explain.. I used a array to store pages (Loaders) in the application. If the user click at the navigation nr [...]

New Flash Player new issues…

In the new Flash Player 9,0,124,0 there is a lot of new security changes…
If you are (like me) used webService and the server is in a other domain then you will get a sweet secure error:
Server Error: [RPC Fault faultString="Security error accessing url" faultCode="Channel.Security.Error" faultDetail="Destination: DefaultHTTP"]
What I did was adding this line in the crossdimain.xml file [...]

The smallest things can take the longest time

Recently pulled my hair over something that probably is quite logical.
To get around crossdomain issues I placed a shell-swf on a remote server that in turn loads the main-swf. Have done it like that a thousand times before but this time I just couldn’t get it to work.
It turns out that i tried to set stage.scaleMode in the [...]

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”);

import external classes at runtime!!

A new thing about AS3 is the ability to import external classes at runtime!!Yes it’s true. You can use Loader() to import the swf  and then when the swf is loaded you can get all the classes in the swf file through the “event.target.applicationDomain.getDefinition([class name]) as Class”  thingy … I’m not sure where or when [...]

Flash player 9 version issues

Flash 9 is a great player and AS3 is really amazing. But crucial differences between different versions of the 9 player drives me crazy. For exampel… 9.0.47 and later can have linked movieclips placed later than the first frame on the stage timeline and then you can uncheck the export in fist frame box in [...]

Polygonal Labs - Data structure

Interesting classes for structuring data. At the first look, it’s seems quite advanced for an ordinary flash developer. But  just have a look and get back there when you need to make a fast pathfinder, item-queue/stack or node-tree. And significent faster and simplier when working with data relations. (Is used with the 3D physics engine mentioned in the previous post)
http://lab.polygonal.de/ds/
http://lab.polygonal.de/articles/

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, [...]

For and by the developers at swedish digital agency Projector.