Silverlight 2 Upgrade: 3D Text Space Silverlight Beta 2 Update
Oct 20

This sample is requested by unruledboy couple weeks ago. He asked if I could implement a application similar to the Flickr mini image gallery. Although the logic is very simple, it provides a very nice and comfortable effect.

Comparison

Flash implementation: 1 hour
Silverlight implementation: 1 hour 30 minutes (Implemented First)
What’s the difference?

  • frame rate per second: frameRate [AS3] vs MaxFrameRate [C#]

Source codes

Flash

Silverlight

frame rate per second: frameRate [AS3] vs MaxFrameRate [C#]

In a loosely compassion, Flash Animation is considered as Frame Based while Silverlight Animation is considered as Time Based. Nevertheless, it’s still possible to change the frame rate per second (fps) for both of the technology.

// AS3
// Change the Frame Rate
stage.frameRate = 24;

The default frame rate for Silverlight is 60. (I have no idea why the default value is so high.) Most of the time, you have to set it into a smaller value. Very often, I will set it to 24 fps.

// C#
// Change the Frame Rate
 App.Current.Host.Settings.MaxFrameRate = 24;

Shares and Enjoy~

Did you like this post?

Subscribe here:  

7 Responses to “Silverlight vs Flash: Flickr Image Gallery”

  1. unruledboy Says:

    Hi, I has been wondering day by day, whether you forgot the voices :)

    the sl random seems not so random at all, there are 9 pics, it duplicates several times from 4 to 8 before hitting the rest.

  2. admin Says:

    unruledboy, sorry for the delay.

    By the way, the random works fine for me.

  3. unruledboy Says:

    mmmm, as what random indicates, it randoms :)

    in my test, for 2 times, the random got stuck to a specific number, seems no ending, so I have to stop it and run again.

  4. Tạo hoạt hình trong SilverLight (SilverLight animation) - Coding, training dog, playing Aikido, harmonica and.... Says:

    [...] So sánh Animation tạo bởi Flash và SilverLight [...]

  5. the flash designer Says:

    Doesn’t it take up a lot of time to keep your blog so interesting ?

  6. John Johansson Says:

    Hello,

    Interesting solution but what is the idea with the BorderCornerRadius. It appear to me that it has no effect?

    John Johansson

  7. Asante Samuel Jerseys Says:

    My brother recommended I may like this blog. He used to be totally right. This submit

    truly made my day. You can not believe just how so much time I had spent for this

    info! Thank you!caiyifang/comment201110

Leave a Reply