Oct 09
Recursion is a very common technique for creating various type of graphics in Flash. Is the recursion technique also possible in Silverlight? Surely it can be. Let’s have a look on the sample below.
Vote for this sample
Flash is Better! (289 votes)
Silverlight is Better? (171 votes)
Comparison
Flash implementation: 30minutes
Silverlight implementation: 45minutes (Implemented First)
Source codes
Recursion Tree [Flash 9, AS3] (11.4 KiB, 591 hits)
Recursion Tree [Silverlight 2, C#] (18.9 KiB, 750 hits)
October 9th, 2008 at 3:29 am
Hi, nice blog here, and nice samples… but in this one, it said you spend 450 hours, is that real or is it a typo?
October 9th, 2008 at 7:10 am
450 minutes? or 45minutes?
If its 450 minutes than I’m confused as to what you did that took that long as looking at the code it looks more like 20-45mins worth of work.
-
Scott Barnes
Rich Platforms Product Manager
Microsoft.
October 9th, 2008 at 9:15 am
the branches of fl are too large :)
October 9th, 2008 at 1:07 pm
yup, it should be 45 minutes.
October 9th, 2008 at 9:15 pm
What are you going to do when Silverlight 2.0 RTM comes out? Update all of your examples to work with the new release?
I do not envy that job.
October 10th, 2008 at 12:59 am
Mike, that was a good question. Probably, I don’t have any plan to update my work yet.
Well, I just hope the new version will have the backward compatability. But from my past expereince, it seems impossible.
Anyway, it will great if they can remove the word “beta” in their release and let us have more confidence in using it.
October 12th, 2008 at 9:21 am
You should be fine, but there maybe some breaking changes that you’ve made use of which will require a migration forward on.
It was important to note that the current Beta 2 version of Silverlight is just that, a beta (all conditions of use apply). Breaking changes inside beta’s will at times occur and we do apologise for this, that being said Silverlight 1 will work inside Silverlight 2.
Future releases will be backwards compatible.
-
Scott Barnes
Rich Platforms Product Manager
(Silverlight/WPF) Microsoft.