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
Colorful Fireworks [Flash 9, AS3] (193 KiB, 3,302 hits)
Colorful Fireworks [Silverlight 2, C#] (20 KiB, 2,645 hits)
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);

September 23rd, 2008 at 12:29 am
I love your articles! The second download link titled ‘Colorful Fireworks [Flash 9, AS3]‘ is the silverlight version. Thanks for all your great posts!
September 23rd, 2008 at 1:00 am
Man you rule!! :)
Keep doing this great stuff.
September 23rd, 2008 at 2:13 am
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… :)
September 23rd, 2008 at 2:31 am
The Fireworks in flash is more colorful, has a nice effect in the beginning of each firework and produces more fireworks!
September 23rd, 2008 at 4:47 am
very long lasting & fast mouse motions generate the fireworks much slower in flash. silverlight really beats flash in this particular example.
September 23rd, 2008 at 12:47 pm
Aquaseal, thank for you point out that, I have updated the filename.
September 25th, 2008 at 12:27 pm
real fireworks that shoot from the bottom to the top(sky) and getting bigger when going up, fade and disappear at the end?
October 2nd, 2008 at 11:47 pm
[...] - Flash vs Silverlight: Colorful Fireworks saved by prepoceros2008-09-26 - Some Olympic opening Ceremony fireworks were faked saved by [...]
October 23rd, 2008 at 6:39 pm
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
October 27th, 2008 at 1:28 am
aashish, thanks for the notice. I will check out the Request page and see if there is any problem.
November 5th, 2008 at 5:01 pm
Awesome effect!
Or not effect/ Or Idea:)) I love it :))
March 30th, 2009 at 7:09 am
You are a god among programmers.
July 28th, 2009 at 5:40 pm
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!
October 12th, 2009 at 6:17 am
[...] Terence Tsang released a colorful Fireworks. When you mouse over on the application, a lot of attractive and colorful fireworks will be produced. [...]
October 14th, 2009 at 10:48 am
[...] Terence Tsang released advanced Carousel Effect which support various layers with additional Drill Down and Drill Up effects. [...]
October 19th, 2009 at 12:12 pm
[...] 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. [...]
October 26th, 2009 at 1:46 am
[...] Terence Tsang implement a new Image Rotator. The effect is a simple and Random Moving Gallery.Enjoy it! [...]
October 26th, 2009 at 11:24 pm
[...] 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! [...]
December 30th, 2009 at 9:11 am
Noo! Flash fireworks are running faster on my pc! Flash particles are falling really smooth, and Silverlight are choppy!
January 13th, 2010 at 9:41 pm
Hmmm.. the flash one is faster on my PC.. that’s odd..
March 2nd, 2010 at 6:52 pm
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.