Sep 21
Here is a Flash vs Silverlight comparison on the XML Image Gallery2!
It is a revised image Gallery based on the last post of XML Image Gallery.
The following features are added in the new Gallery
- Loading animation
- Sliding effect
Images used in the application is another Top Model from Tai Wan
Let’s enjoy it and leave comments!!
Comparison
Flash implementation: 30minutes
Silverlight implementation: 20minutes (Implemented First)
Source codes
XMLImageGallery2 [Flash 9, AS3] (259.9 KiB, 3,244 hits)
XMLImageGallery2 [Silverlight 3, C#] (271.2 KiB, 6,396 hits)

September 21st, 2009 at 7:15 am
Good work as always! I looked at the code, but has the same name and the same code as the XML Image Gallery 1…wrong file?? I’am wondering if you’re using easing animations with just C# code and no xaml :|
keep up posting!
- Dave.
September 21st, 2009 at 12:37 pm
Name of the model? :)
September 22nd, 2009 at 10:54 am
Silverlight 3 and Flash: XML Image Gallery2…
Thank you for submitting this cool story - Trackback from Servefault.com…
September 22nd, 2009 at 12:02 pm
Silverlight one is pretty clean. The Flash one has some implementation problems. You really should look at building these in Flex vs Flash (XAML vs MXML is a more accurate comparison).
September 22nd, 2009 at 11:08 pm
@Dave, Thanks Dave, it is the wrong file before. it is already updated.
@Miksu, The name of the model called Nico.
@Servefault.com thanks for your feedback.
@John, Thanks for your suggestion. I will consider that.
September 22nd, 2009 at 11:45 pm
@admin
I look forward to it.
September 24th, 2009 at 12:29 pm
@John, I don’t see that at all. I like the Flash one better. Color seems to be richer.
September 24th, 2009 at 12:30 pm
@paul simkins
Click around fast. You’ll see it start messing up.
September 24th, 2009 at 12:34 pm
@admin Not the Nico of Velvet Underground fame. Couldn’t be. Looks nothing like her, especially since she is dead.
September 24th, 2009 at 12:51 pm
What is the idea of comparing Flash and Silverlight ?
You can compare Silverlight with flex but Flash is different think with different idea. Yes with silverlight you can make most things that can be done in flash and flex but.
Flex is developers tool
Silverlight is tool for developers
Flash is NOT !
September 25th, 2009 at 12:36 am
@JOKe,
You are right. Flex and Silverlight is a tool for developers. I mainly focus on the coding of different technology and what both technology can achieve the same effect. I am sure Flex may speed up the development process, but it’s not my focused area.
September 25th, 2009 at 12:43 am
@admin
Actually, it isn’t about dev speed. Flex provides the same coding constructs as Silverlight (xml on top of a language [as3 and c#]) which, when the framework is used, provides ease of things like tweening, resizing of images, etc. In other words, Flash CS# has you writing all of the code (basically) and Flex easily handles redundant tasks, as all frameworks do/should.
Just my thoughts.
September 25th, 2009 at 8:23 am
you are voted!
Track back from WebDevVote.com
September 25th, 2009 at 9:50 pm
*Phew*
Lucky I didn’t just look at hard-core pornography in those two apps. Nice ladies, though…
But anyway, here’s what I think.
On Flash, the images look JPEG markings. The skin is bit darker (I don’t know if it’s just me).
On Silverlight, the image quality is better by just weee 1%. Also the images appear to load faster.
I want to point something out: do you still have the “Flash is better! Silverlight is better!” ratings? If my browser just won’t display it, then I’m in desperate need of more chocolate milk (and a new web browser).
But the ratings were good, it shows what people think exactly.
September 26th, 2009 at 5:43 pm
[...] Silverlight 3 and Flash: XML Image Gallery2 [...]
September 29th, 2009 at 6:35 pm
Hey, do you post up tutorials or just source code?
October 12th, 2009 at 5:59 am
[...] Terence Tsang released a revised image Gallery based on the last post of XML Image Gallery. [...]
November 20th, 2009 at 12:05 am
I downloaded the Silverlight Image Gallery2 project and it builds just fine, but when i run it, the gallery shows up as a white page in my browser. What am i doing wrong?
I am new to silverlight and would appreciate any help :) Thanks!
This is the error IE gives me:
Webpage error details
Message: Unhandled Error in Silverlight Application An exception occurred during the operation, making the result invalid. Check InnerException for exception details. at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
at System.Net.DownloadStringCompletedEventArgs.get_Result()
at XmlImageGallery2.MainPage.wc_DownloadStringCompleted(Object sender, DownloadStringCompletedEventArgs e)
at System.Net.WebClient.OnDownloadStringCompleted(DownloadStringCompletedEventArgs e)
at System.Net.WebClient.DownloadStringOperationCompleted(Object arg)
Line: 1
Char: 1
Code: 0
December 9th, 2009 at 1:36 pm
When i try tu run the gallery2 in VS2008 it shows this error:
System.Reflection.TargetInvocationException was unhandled by user code
Message=”An exception occurred during the operation, making the result invalid. Check InnerException for exception details.”
StackTrace:
at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
at System.Net.DownloadStringCompletedEventArgs.get_Result()
at XmlImageGallery2.MainPage.wc_DownloadStringCompleted(Object sender, DownloadStringCompletedEventArgs e)
at System.Net.WebClient.OnDownloadStringCompleted(DownloadStringCompletedEventArgs e)
at System.Net.WebClient.DownloadStringOperationCompleted(Object arg)
InnerException: System.Net.WebException
Message=”An exception occurred during a WebClient request.”
InnerException: System.NotSupportedException
Message=”The URI prefix is not recognized.”
StackTrace:
at System.Net.WebRequest.Create(Uri requestUri)
at System.Net.WebClient.GetWebRequest(Uri address)
at System.Net.WebClient.DownloadStringAsync(Uri address, Object userToken)
InnerException:
December 11th, 2009 at 11:31 am
Hi
I get the same error as lizzie when I build and run the application i blend and I get the same error as slizka when I try to build in VS2008. Where is the error, so I can make the gallery work ?
January 25th, 2010 at 3:53 am
Interesting subject. I m really glad to read your blog. I m impressed with your good work. I have gone through many blogs but I found yours the most interesting
March 24th, 2010 at 2:48 am
I do not know this before. Good information
April 22nd, 2010 at 3:42 am
I have agreed with all of you. Its a classic post and the Work done is spurb. I like it very much and we all must appriciate this kind of effort so that latest tech should be enhanced.
May 17th, 2010 at 12:23 am
I have come to your site before. Beautiful female photo. Wanted to tell you, you have a visually appealing port
May 26th, 2010 at 1:31 pm
Both looks fine, but, flash don’t load images asynchronous too? I see a little delay… Or it’s for the compress on pics?
July 11th, 2010 at 10:15 am
This is great but it would be even better if you could database connect this so clients can manipulate the gallery.
July 16th, 2010 at 11:00 am
thanks for sharing and the code.. :)
August 2nd, 2010 at 3:42 am
Means We call our Images through Database Automatically
November 6th, 2010 at 4:45 pm
This is about as deserving of the GNX mantle as I am of valedictorian. I’m not bothered by the AWD 4-door bit, but it won’t embarrass Corvettes. I’d accept the Grand National badge though. Or, really, however I can get it - throw Daewoo badges on, and I’d still drive the crap out of it.But still, clocking in at a small dog shy of 2 tons is disturbing.
November 18th, 2010 at 2:20 pm
The way these apps are built makes it easy to perceive the Silverlight app as faster.
Why?
Because the image flies out further before returning.
Not FPS, lot image load time, but because the image in the silverlight app moves farther. Playing this kind of perceptual BS game makes me wonder if the loading time hasn’t been fudged too. Way to be impartial.
December 29th, 2010 at 8:26 am
Awesome tutorial..thanks…
May 27th, 2011 at 12:21 am
Most likely probably the most helpful in addition to up-to-date data I got here throughout on this topic. I am certain lucky that I saw your article by chance. I’ll be subscribing to your individual rss feed in order that I can have the latest posts. Enjoy everything here.
January 5th, 2012 at 3:24 am
very good, it’s very useful to me, thank you very much!
———————
runescape gold, http://www.playersaid.com/runescape-gold/