Austin Kottke's Code Site

Thoughts about Architecture – Java, C/C++, JS, Objective-C, Swift, Groovy, Grails, (RIP Flash)
Archive for the ‘flash’ Category

I’ve been thinking a few things out on a dynamic layout engine written in xml. Flex mxml layouts are all precompiled. This makes it faster at loading, however it makes the layout xml not reside on disk which therefore makes it harder who do not know flex to make modifications. We recently wrote an entire actionscript 2.0 layout engine which was an enormous amount of work, but we achieved the point of having other developers make modifications to the xml without them having to know the entire flex framework. So it was pretty cool. But, the question is – what are the advantages and disadvantages of doing a new layout engine for flash 9 cs3. Is it worth it? My problem with the flex framework is that the movies always seem over bloated some times. As an example, the actionscript 2.0 layout engine, the core layout code ended up being 60k, for full HBox, VBox, widget set. What do you think? Please follow and like us:0

I was on a project which required me to be able to take a 60 second intro that I did in flash and save it to dvd. I thought this would go smoothly now that flash 9 cs3 can export to quicktime video. Little did I know that this was ultra lame as when cs3 records the movie to quicktime it screws up the frame rate and the .mov looked really bad. After a bunch of unsuccessful attempts at getting it right, I tried screen recorders (about 10) and couldn’t find any that worked right. Adobe needs to work a little harder on this one as DV pros need to be able to have a constant framerate which can be burned to DVD, etc – otherwise it’s almost impossible to recreate the flash movie. The animation I made combines actionscript with frames, creating random actionscript particles and just recording it is very hard. So I grabbed a program called MagicSWF and this recorded it at 22 frames per second to an AVI. It was smoothe as hell. I then took the AVI into after effects and recomposited the quicktime video with a wav file and the AVI file and voila I had a flash animation prepared for going HD. And it looked almost as good as the original SWF. I could blow it up — stretching and the hardware scaling worked great. Anyway, this is a tip for anyone trying to record a flash movie to HD. Please follow and like us:0

Man, I want to move over to actionscript 3, but I still can’t do it yet. I have so much proficiency with actionscript 2 for the last 4 years that I can’t do it yet. I’m so used to it. I want to do 3, but it seems like I have such a cool workflow right now with what I got, events, separation of responsibilities, that moving over to 3 seems like a waste of time. I mean, obviously I could do it, but the penetration isnt right yet. What do you think? I’m also a bit weary because flash 9 cs3 still has issues. It’s not fully developed past 9.0.45 – if it had more penetration then I might jump over to using 3 and start fully developing in 3 now. But the component set in flash 9 cs3 only works with a player version as of a couple months ago. I think the main jump that will push me over is now that FDT 3 is out I might start going hardcore actionscript 3 now. The only thing I really liked about actionscript 2 was that FDT was so awesome and there were no bugs I couldn’t figure out in as2 – it’s just like everything could be overcome. It seems like because we’re building on an existing framework with flash 9 cs3 it might get a bit complicated. I’ve already seen some weird posts on flash 9 cs3 and no web service support that it’s not really worth it yet. What are…

One thing which I found in dealing with all of the flash 8 and flex projects is that in translations for styling of CSS and XML – I’ve found a pretty effective way to do this so that in projects you can have a stylesheet applied with variable font sizes and XML being parsed at the same time. It starts out with the fact that you have a TextLoader class which loads in the text similar to: public static function loadText( aStyleSheetPath:String, anInterfaceDir:String ):Void { Logger.log(“INFO”, TextLoader.toString() + ” loading stylesheets and text.”); var styleSheetDir:String = aStyleSheetPath; var interfaceDir:String = anInterfaceDir; var currentLanguage:String = LanguageManager.getLanguage(); var cssFilePath:String = styleSheetDir + “stylesheet_” + currentLanguage + “.css” ; var xmlFilePath:String = interfaceDir + “interface_” +currentLanguage+”.xml”; /*——————————————————————— * Now we load in the stylesheet and once it is loaded we can then * get the current interface and load this. *———————————————————————*/ var stylesheet:TextField.StyleSheet = new TextField.StyleSheet(); stylesheet.load( cssFilePath ); stylesheet.onLoad = Delegate.create(TextLoader, function( status ) { /*——————————————————————— * Once the stylesheet is loaded we then apply this to the text and * then get it applied and the text loaded. *———————————————————————*/ var interfaceTextXml:XML = new XML(); interfaceTextXml.ignoreWhite = true; interfaceTextXml.load( xmlFilePath ); interfaceTextXml.onLoad = Delegate.create(TextLoader, function( isLoaded:Boolean ) { if( isLoaded ) { Logger.log(“INFO”, TextLoader.toString() + “Interface XML loaded [“+ xmlFilePath+”] ” ); Logger.log(“INFO”, TextLoader.toString() + “StyleSheet CSS loaded [“+cssFilePath+”] ” ); TextLoader.initialize(interfaceTextXml, stylesheet); TextLoader.notifyListeners( new TextLoadedEvent() ); } else { Logger.log(“ERROR”, TextLoader.toString() + “Unable to load xml [“+xmlFilePath+”] ” ); } }); }); } This then loads…

January 27th, 2007

New image processing library

1 Comment, actionscript 3, flash, flex, by austin.

A new image processing library written in actionscript 3 was released. This includes very nice libraries for imaging effects, including displacement map filtering, ripples to create water effects. Joe Ebert is very talented at this which is great. The above image was created with this image processing library which is cool. I’m very anxious to get down at try some of these effects. He actually made a really cool actionscript 3 demo a while back no doubt using this library. Check it out here Please follow and like us:0

January 24th, 2007

It’s an audio-visual age

No Comments, flash, by austin.

One thing that is always kind of interesting to me is the debate between flash and design and how people need to remove flash off of web sites. I say to whoever that wants to do this must live an incredibly boring life that does not appreciate beauty or aesthetics and strive for a more spiritual existence. Flash represents such an incredible aesthetic approach to design where people can do anything! People do not realize the potential of flash and how much you can do to create interactive designs that people can view to really create amazing virtual experiences and worlds. I have been seeing slowly and slowly the Internet taking form, bit by bit where the entirety of the browser will be a very virtual non-text based experience. We will move from HTML to a new level. It’s coming…. Please follow and like us:0

January 17th, 2007

Incredible flash 8 effects demo

3 Comments, demos, filters, flash, by austin.

I just saw an incredible demo by a true legend in the flash scene, Petri Sarasvirta who takes flash 8’s bitmap data to a whole new level. You can also view a lot more demos at Please follow and like us:0

January 15th, 2007

Thoughts about flash design

No Comments, flash, flex, by austin.

One of the things that I actually like about flash is the fact that it allows you take programming and mesh it with design. This is something that is very hard to do with programs currently in a development atmosphere. You can take flash and create a piece of art and design that totally defies anything a programmer would do and you can also meld in something that allows for a total flexibility in programming and art combined. I specifically am a large avid of very good design and animation which is what I like to see. And in my web log I will be posting in code samples and future things I come across later on. One site I really like is which has a lot of great links. I’m also interested in flex and really like this technology and have used it in quite a few projects which I will brief on as well. Please follow and like us:0