improve.dk
Just another mindless drone looking for the perfect stack
posts - 220, comments - 475

Development: AS/Flex/Flash


Bundling image requests for increased performance

Written on Monday, June 07, 2010 by Mark S. Rasmussen in Development: .NET, Development: AS/Flex/Flash

A common scenario in RIA's is to show a large amount of small pictures on a single page. Let's say we want to show 100 images in a grid. While the simplest approach is to just put in 100 image objects and load in the images one by one, I believe it can be done smarter... The cost of a request Each and every request will have a header overhead of about ~400 bytes outgoing and ~200 bytes ingoing - both varying depending on the host, cookies, headers etc. Multiply that by 100 requests and we've got about...

No comments | Write first comment
 

Simple AS3 Stack Implementation

Written on Wednesday, April 21, 2010 by Mark S. Rasmussen in Development: AS/Flex/Flash

Recently I was doing some experimental AS3 development. Much to my surprise, simple collection classes like Stack/Queue are not available in the framework - guess I'm spoiled being used to the .NET Framework. I ended up implementing a simple stack using an internal linked list. There's nothing exciting about the implementation but I thought others might be able to use it, so here it is :) StackNode.as package dk.improve.collections { internal final class StackNode { public var value:Object; ...

4 comments | Read comments
 

Fixing Flash bugs and intercepting IIS Application Request Routing cookies

Written on Wednesday, December 09, 2009 by Mark S. Rasmussen in Development: .NET, Sysadmin: IIS, Sysadmin: Scalability, Development: AS/Flex/Flash

What does Flash, upload, cookies, IIS load balancing and cookies have to do with each others? More than I'd like :( When users need to upload files I often use the Flash based SWFUpload component. It allows for multiple file selection and progress display during upload. Handling the uploaded files on the .NET side is rather easy: for (int i = 0; i < Request.Files.Count; i++) { HttpPostedFile hpf = Request.Files[i]; // ... Save / process the HttpPostedFile } One of the arguments for using Flash for web designs is that...

No comments | Write first comment
 

Reading width & height of Flash file

Written on Wednesday, November 11, 2009 by Mark S. Rasmussen in Development: .NET, Development: AS/Flex/Flash

Obtaining the movie height & weidth of a Flash file is an easy task using the swfdump tool that comes as part of the swftools package. Here's an example of how to invoke swfdump from C# and read out the height & width of a given Flash file. Start out by downloading on of the swftools releases. I'm using the latest development snapshot. I'll be using one of the Flash files I made in a previous blog post as a test file, but you can use any .swf file you want. The test Flash file is called test.swf. ...

No comments | Write first comment
 

AS3 Numbers - get real

Written on Thursday, June 12, 2008 by Mark S. Rasmussen in Development: AS/Flex/Flash

Skilled developers are hard to come by these days, that includes Flash/AS3/Flex developers. As the product I'm working on is very much dependent on a Flash based frontend, I've been forced to learn & work with AS3 & Flex recently. It's a great experience, learning a new language - especially now that Silverlight is marching forward. As the old saying goes, know your enemy. Anyways, enough with the chit chatting, on with the problems. Today I tried making a very simple functionality, I wanted to be able to select a number of images by making them highlight when...

5 comments | Read comments