Flash vs Silverlight: Image Advance Carousel Silverlight vs Flash: Random Moving Rotator
Sep 22

This is another sample extracted from my previous project. When you mouse over on the application, a lot of attractive and colourful fireworks will be produced.

Comparison

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

  • Remove item from Array: Array.splice [AS3] vs List.Remove [C#]

Source codes

Flash

Silverlight

Remove item from Array: Array.splice [AS3] vs List.Remove [C#]

In AS3, you can’t remove an item directly from an Array. You have to find out the index of the item first, before you can take the remove action.

// AS3
var array:Array = new Array();
var item:Object;

array.push(item);

var index:int = array.indexOf(item);
// remove 1 element starting from index
array.splice(index, 1);

While in C#, by using the List Class, manipulation of item is very simple.

// C#
Listarray = new List();
Object obj = new Object();
array.Add(obj);
array.Remove(obj);

Shares and Enjoy~

Did you like this post?

Subscribe here:  

21 Responses to “Flash vs Silverlight: Colorful Fireworks”

  1. aquaseal Says:

    I love your articles! The second download link titled ‘Colorful Fireworks [Flash 9, AS3]‘ is the silverlight version. Thanks for all your great posts!

  2. Eugen Says:

    Man you rule!! :)
    Keep doing this great stuff.

  3. Tom Says:

    I love these side by side examples. They’re great for doing quick and dirty CPU usage comparisons between Flash and Silverlight. In this case, Silverlight appears to take significantly less CPU time than Flash, although they both seem quite CPU intensive for what’s being accomplished. Now, if only you had DirectDraw and WPF versions too… :)

  4. Zaros Says:

    The Fireworks in flash is more colorful, has a nice effect in the beginning of each firework and produces more fireworks!

  5. contrapunctus Says:

    very long lasting & fast mouse motions generate the fireworks much slower in flash. silverlight really beats flash in this particular example.

  6. admin Says:

    Aquaseal, thank for you point out that, I have updated the filename.

  7. unruledboy Says:

    real fireworks that shoot from the bottom to the top(sky) and getting bigger when going up, fade and disappear at the end?

  8. Websites tagged "fireworks" on Postsaver Says:

    [...] - Flash vs Silverlight: Colorful Fireworks saved by prepoceros2008-09-26 - Some Olympic opening Ceremony fireworks were faked saved by [...]

  9. aashish Says:

    bcoz of some technical probblem, your submit a request is not working , soi am posting in comments.

    hi , i am aashish , i am a novice flash developer ,i saw the work on your website and it’s incredible ,
    i only wish someday i would be able to create this type of work.
    the most incredible think about your website is that what you are doing is really out of ordinary and yet your website presentation is really simple (without any flashy hoopla that is present in good for nothing websites ), which is really refreshing.

    i have seen the “fireworks” post already in which fireworks take place as one moves the mouse over the screen,
    i was looking for something slightly different ,
    i was thinking about “fireworks done in flash but without the requirement of any mouse movement, going on continously in a loop with sound , and if possible that text like HAPPY NEW YEAR ” is coming out of that fireworks.”

    i know that you must be busy with several other projects and so if you didn’t entertain my request ,it would be alright . i’d understand.

    just keep doing what are you doing , i liked your site verymuch. it’s a great source of knoowledge for all the designers.

    thanks
    aashish

  10. admin Says:

    aashish, thanks for the notice. I will check out the Request page and see if there is any problem.

  11. Kilew Says:

    Awesome effect!
    Or not effect/ Or Idea:)) I love it :))

  12. Adrian Says:

    You are a god among programmers.

  13. Matt Says:

    This is really beautiful! I love the design and coloring. Totally amazing!

    I have a newbie question. I don’t know enough about actionscripting, so I’m curious, is there a way to make the fireworks start without having to click first? Maybe automatically? Or maybe on mouse movement instead of click? I’d appreciate any tips!

  14. Silverlight Colorful Fireworks | Silverlike - A Free Microsoft Silverlight 3 Directory Says:

    [...] Terence Tsang released a colorful Fireworks. When you mouse over on the application, a lot of attractive and colorful fireworks will be produced. [...]

  15. Image Advance Carousel | Silverlike - A Free Microsoft Silverlight 3 Directory Says:

    [...] Terence Tsang released advanced Carousel Effect which support various layers with additional Drill Down and Drill Up effects. [...]

  16. Silverlight Mathematical Locus | Silverlike - A Free Microsoft Silverlight 3 Directory Says:

    [...] Terence Tsang implement a general application which can show a mathematical equation like y = x^3 + x^2 + 2 + 5. This is a very difficult topic and what he have done is to illustrate the idea by a simple example. Hope this application will give you some inspirations. [...]

  17. Random Moving Rotator | Silverlike - A Free Microsoft Silverlight 3 Directory Says:

    [...] Terence Tsang implement a new Image Rotator. The effect is a simple and Random Moving Gallery.Enjoy it! [...]

  18. Sponge Image | Silverlike - A Free Microsoft Silverlight 3 Directory Says:

    [...] Terence Tsang implement a new Image Manipulation, when you click on the image, it will produce an amazing sponge effect. What’s more? Just to use your imagination! [...]

  19. WeaxDesign Says:

    Noo! Flash fireworks are running faster on my pc! Flash particles are falling really smooth, and Silverlight are choppy!

  20. LOVE_MOSS_NOT Says:

    Hmmm.. the flash one is faster on my PC.. that’s odd..

  21. free beat maker download for mac Says:

    I coulden’t have said it any better my self, the author know what he is talking about. I can tell from the comments above that most people agree to.

Leave a Reply