Flash Actionscript 3 (AS3) Super Loader – taterboy
May 17th, 2008 | Filed under: Flash, Flash AS2 to AS3, Free Components/Classes, Tutorials

I really enjoy coding in AS3, but one of the things I dislike the most is the fact that when building movieclips as Classes, you have to export to Action Script or place all your movieclips on the stage somewhere. I think the latter is not very flexible. I understand why it has to be done; I just don’t like it. The problem with exporting everything to the Action Script is that it loads that MovieClip on the first frame, and loaders that are normally placed on the first frame will not show up or function until the first frame is loaded. This first frame now contains all our content that we have exported to Action Script which really defeats the purpose of a loader. That is why you will see a blank white box for a few seconds or longer before the loader shows up. The best way to fix this is to build a loader swf  to load our current project swf into. 
Read More »

Technorati Tags: , , , ,

| 23 Comments »

What Happened to _global? – taterboy
April 13th, 2008 | Filed under: Flash, Flash AS2 to AS3, Tutorials

What happened to _global, _root, _level?

(Working With and Building Custom Events)

I rarely used _root or _level just because some projects would end up getting loaded into other swfs. Sometimes I didn’t know this until halfway through or in the end. So I started using global instead. That way I could still target the main timeline, which is where I would try to keep all my code, without having to worry about root moving somewhere else later. When I built components I would also use global, from time to time, to target them from anywhere in the application being developed.
Read More »

Technorati Tags: , , , , , , ,

| 4 Comments »