Sep 29
Text Effect is a very common feature for many online application. Today, I am going to introduce you a simple, but also beautiful, text effect application. It’s time to decorate your application!
Vote for this sample
Flash is Better? (125 votes)
Silverlight is Better! (169 votes)
Comparison
Flash implementation: 70 minutes (Implemented First)
Silverlight implementation: 80 minutes
What’s the difference?
- String to ASCII Code: charCodeAt [AS3] vs Convert.ToInt16 [C#]
Source codes
Simple Text Effect [Flash 9, AS3] (142.4 KiB, 324 hits)
Simple Text Effect [Silverlight 2, C#] (20.6 KiB, 403 hits)
Flash
Silverlight
String to ASCII Code: charCodeAt [AS3] vs Convert.ToInt16 [C#]
When you are working with text, you shouldn’t miss out the following following codes which convert a string value and ASCII code.
// AS3 var text:String = "Testing"; // Get the ASCII code for the character "T" text.charCodeAt(0) // Get the string value of the ASCII code 80 var char:String = String.fromCharCode(10);
In C#, you can achieve the same result by using the System.Convert Class.
// C# String text = "Testing"; // Get the ASCII code for the character "T" Convert.ToInt16(text.ToCharArray()[0])); // Get the string value of the ASCII code 80 String char = Convert.ToChar(80).ToString();
October 31st, 2008 at 6:54 pm
[...] searching around the internet for inspiration, I came across Shine Draw’s Simple Text Effect page. This is one of their many Flash vs Silverlight examples. I liked it and downloaded their code to [...]