Tuesday, October 19, 2010

Flash and Silverlight Comparison of multi-domain measurement



COMSHARP CMS writes: Since the Silverlight 1.0 has been released, Web developers and designers who select the Flash and Silverlight on the controversy began, in front of a mature Flash, Silverlight is facing challenges of how to win the market. Silverlight, however, contains a number of developing Flash designers have been hoping to have the features such as SEO, Flash and Silverlight article on the technical details of a detailed comparison.






Animated feature

Flash Frame-based animation model, frame by frame animation mode, we create the object for each frame and generated animation sequences. For example, you want an object across the screen in 3 seconds, 3 seconds to calculate the total number of frames, then the matrix needs of each and every frame. However, the actual playing of Flash does not truly set the frame rates in accordance with, unless you insert a blank in the animation tracks.






Silverlight animation model based on WPF, WPF is based on the time line, not the frame, you define a good start at the end of the state, WPF to help you calculate how to do the middle, like Flash did not deal with the matrix, do not have to calculate the object in different frames position.






File size

Flash using compressed format, text and images embedded in the file, so Flash file size is very small.






Silverlight uses XAML as description language, not compressed, so Silverlight's file size is usually larger.






Script

Flash using ActionScript, ActionScript object-oriented, user interface design has full control, but also with other back-end languages such as PHP, ASP, Ruby On Rails to integrate the exchange, with a strong development of libraries.






Silverlight script can choose a variety of development language, Visual C #. Net and Visual Basic.Net, also include client-side language JavaScript. C # and VB.net can be used to write managed code, and can be fully used. Net framework library.






Video and Audio

Flash supports multiple audio formats, the latest audio decoder quality is very high, bandwidth is also very good. It's video decoder, Sorenson H.263 is a special variant of H.263 compression is close, but some features removed.






Silverlight uses the industry standard VC-1 video decoding, and support for WMV and WMA, Windows Movie Maker can easily produce both formats, while Microsoft offers a free WMV, WMA encoder.

Sound Processing

ActionScript provides a sound library that can be used to generate or control the animation the sound, you can play the animation from the resource library by adding voice during the same time, Flash animation and some methods to control the entire sound.






Silverlight does not control the underlying sound API, or even can not play a WAV file, because. NET in the audio player on the weak.

Accessibility

Those with visual or hearing impaired persons, Flash provides a rich accessibility features, video, subtitles can help hearing impaired, visually impaired and those who need to control the sound playback via the keyboard, people can use the keyboard shortcut keys to control video playback .
















The first time Silverlight 3 color support on all systems, those people with visual impairments can be adjusted to the high contrast color scheme, in terms accessibility Silverligth much worse than Flash.

Platform Compatibility

Flash support for Windows Vista/XP/2000, Windows Server 2003/2008, Mac OS 10.1/10.5 (PowerPC), Mac OS 10.1/10.5 (Intel), Linux 5, openSUSE 11, Ubuntu 7.10 or later and Solaris 10.

Silverlight only supports Windows Vista/XP/2000, Windows Server 2003/2008, Windows Mobile 6, Mac OS 10.1/10.5 (PowerPC) and Mac OS 10.1/10.5 (Intel). Because they do not support Linux and Solaris, so users of these platforms can not experience Silverlight. (However. NET in the third party open source Linux platform project, MONO framework MoonLight support Linux - Translator)

Text display and SEO

Flash text is based on graphics, Flash Player does not understand the TTF, we are unable to separate from the Flash animation text. Usually, Flash on the SEO is unfriendly, but Adobe has made some efforts to Flash text can be indexed, but search engines have started to index Flash has. Currently, Google is the only support for Flash search engine index, they are with Adobe to design the corresponding Flash content can be understood Google crawler. Yahoo is in progress, given Microsoft's Silverlight is a Flash competitor, they could not discuss in MSN index Flash.

Silverlight is based on XAML's, Silverlight text content is stored independently and can be any search engine index, and therefore more friendly to search engines.

Supported image formats

Flash supports almost all image formats. Silverlight only supports PNG and JPEG, other formats provide limited support.

Network Programming

Flash and the server communicate using XMLSocket.






Silverlight through the System.Net.Sockets namespace provides comprehensive support for network programming, Silverlight can be from 4502 to 4534 port asynchronous transfer of data, also support cross-domain communication.

Camera support

Flash support for web camera and microphone, can be easily manipulated using ActionScript camera or microphone. Silverlight does not support the camera and microphone.

Deploy

Flash contains only the deployment of a separate SWF file, the file already contains all the images, text, animation. Silverlight deployment to complex, all the independent components to be deployed alone, the typical Silverlight request typically includes the following:

鈼?XML documents,

鈼?DLL files (if any)

鈼?Silverlight.js,

鈼?other JavaScript files

鈼?resource files (images, video, audio)






Windows executable

Flash animation can be compiled into a stand-alone Windows executable program, the desktop player.






Silverligth does not support.

Streaming Media Services

Flash does not support streaming media services (although the control of almost all FLV video sites, but that is another story - the translator).

Microsoft Windows Live, Silverlight-based streaming media service allows developers to design and distribute rich media, combined with Microsoft's Expression Studio, developers and designers can create interactive Web program.






Conclusion

Rich Internet applications, there are many technology options has always been controversial, in Silverlight and Flash in the choice will depend on your needs, if your users, including Linux and Solaris platforms, Flash is the best choice, if you want your site can be index, Silverlight better.

Another point of note is that the user plug-ins installed Silverligth still in the minority, while most of the user's browser to install the Flash plug-in all, Also, SWF, FLA, FLV almost become a standard format developed, but still 100% Silverligth proprietary format (though Silverlight is already clear, and also talk about opening up does not open - the translator).

Quick Comparison

FeaturesFlashSilverlight

Animation.better

File sizebetter.

Scripting.better

Video / Audio.better

Sound processingbetter.

Accessibilitybetter.

Platform compatibilitybetter.

Text representation / SEO.better

Supported image formatsbetter.

Socket programmingbetter.

Webcam supportbetter.

Deploymentbetter.

Windows applicationbetter.

Media streaming.better







相关链接:



Approach new AND successful



Specialist Food And Drink



Beautiful Call, XP Mac OS Perfect Clone



51.com rap Tencent Tencent responded incredible pressure



CG City WIZARD - Wizard is the beginning (1)



With a good wind power, send me Albatron



cell Phones248



ASF to AVI



Ashes of modern CAE



Matroska to MP4



3G2 to MPEG



Articles about Audio Players



MBS 2007 Fiscal Year Have Something To Say



Comment Games Arcade



No comments:

Post a Comment