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.

Vote for this sample

Flash is Better! (370 votes)
Silverlight is Better? (283 votes)

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);

Random Posts

12 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.

Leave a Reply