18th April 2007

Obligatory Silverlight Post

posted in Flash, General |

First let me say that it's not my intent to bash Silverlight, or defend my beloved Flash platform. In fact, it looks like I may very well have to be doing some work with Silverlight at my job, so it's something I'm going to need to learn and get used to. This is why I decided to give it a look over today. I have to say, it wasn't quite what I expected

Secondly, let me say that I've only given it a quick look over, and I may be missing a lot.

The first thing I realized is that the way Silverlight apps are created is with XAML and JavaScript. XAML I knew, but the JS surprised me. I'm not sure what I thought the apps would be coded in, and I guess JavaScript makes sense, but again it just surprised me.

[edit] So, after reading the comments here, and some other stuff, it does seem that you'll be able to code in some more powerful languages, such as C#, eventually. This is not ready for the current CTP release, only the JavaScript engine.[/edit]

You could make an analogy to Flash/Flex by saying that XAML is Silverlight's MXML and JavaScript is its ActionScript. XAML is the XML based layout language that defines the assets, graphics, etc., and JavaScript supplies the application logic and behavior. But the way it is all deployed is quite different.

In Flash and Flex, the whole package is compiled into a neatly packaged SWF, which is embedded in the page. The end user can never see the MXML or the ActionScript, unless you decide to publish it along with the app.

In Silverlight, the XAML and JavaScript is right there in its raw form. You embed an instance of the Silverlight plugin, pass in the path to the XAML file that it will consume, and make the JavaScript available to the page. The Silverlight plugin then consumes the XAML and JS and renders the app. So there is no concept of 'compiling' a Silverlight app, anymore than you would compile an HTML/Ajax application. This obviously makes dynamic applications fairly simple. You can have PHP, ASP, Java, or whatever you use on the server to generate your XAML on the fly.

The one thing that really concerns me though is the use of JavaScript as a language for "the next generation of RIAs" (which, by the way, means Rich Interactive Applications now, according to Microsoft :) ). If you are an ActionScript 3.0 or even 2.0 programmer who wants to dive into Silverlight programming, you are going to have to take a 5-year step backwards to prototype-based classes. Welcome back ActionScript 1.0, circa 2002! Here's a quick sample:

JavaScript:
  1. function root_Loaded(sender, args) {
  2.     new tileText(sender);
  3. }
  4.  
  5. function tileEntry(value, offset) {
  6.     this.value = value;
  7.     this.offset = offset;
  8. }
  9.  
  10. function tileText(rootCanvas) {
  11.  
  12.     // Hook up the button event handlers
  13.     var button = rootCanvas.findName("button");
  14.  
  15.    // omitted a bunch of code here...
  16. }
  17.  
  18. tileText.prototype.handleMouseEnter = function(sender, eventArgs) {
  19.     var buttonBG = sender.findName("buttonBG");
  20.     buttonBG.fill = "#FFa0a0a0";
  21. }

Ugh. I was so happy to get away from that stuff when AS2 came out. I really can't imagine coding the kind of huge dozens-or-hundreds-of-classes type of application that you see being done in Flash and Flex these days, using prototypes. I guess this is what Ajax developers do every day, and heck, we all did it back when, but I'm not really excited to go back to it.

Now, the one big thing I do see Silverlight has going for it is the video, particularly with the DRM. I know that a lot of our customers at Brightcove are going to be scrambling for that, which is why I say I'll probably have my hands in it soon. Then again, I have no doubt that Adobe has an answer to this. I can only hope they bring it to market in time to be a viable competitor to Silverlight - so that I don't have to get my hands TOO dirty. :)

On a less technical note, I gotta say, I HATE the name. I can't ever get it right. I'm stumbling over Sparklelight, Sprinklelight, Silverfish, etc. before I spit it out. John Grden suggested "Steely Dan", but we won't go there...

And last but not least, did you see the Silverlight wallpapers??? Come on Microsoft!!! You get pissed off when people accuse you of copying Apple, and then you put out this?

Silverlight Wallpaper:
silverlight wallpaper

Default OSX Wallpaper:
panther wallpaper

Post to Twitter

This entry was posted on Wednesday, April 18th, 2007 at 3:14 pm and is filed under Flash, General. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

There are currently 24 responses to “Obligatory Silverlight Post”

  1. 1 On April 18th, 2007, John Grden said:

    I must say dozen’s of things to you on a weekly basis, and that’s the one that gets quoted. Beautiful. IT’S ON!

  2. 2 On April 18th, 2007, Brian Deitte said:

    I must have read Ted’s post on Silverlight too quickly, as I didn’t noticed before that it’s using the browser’s Javascript. That’s really… not good.

  3. 3 On April 18th, 2007, Sven said:

    Hi,

    as i understood, as an alternative to javascript you can also build your stuff with .net languages like c# or visual basic and precompile them. I saw this note , for example.

  4. 4 On April 18th, 2007, superabe said:

    Seems quite probable that Silverlight may support C# in a later version which should be more appealing to AS3 folks

  5. 5 On April 18th, 2007, kp said:

    John, I just quoted you on the most memorable thing you said. :)

    Sven. That may be. It’s not mentioned anywhere in the SDK or samples. They all use JS.

  6. 6 On April 18th, 2007, kp said:

    Superabe. Yeah. Well, that would be a LOT more appealing. :)

  7. 7 On April 18th, 2007, Michael said:

    Well – I think it’s got to point to the idea that Microsoft’s target developer isn’t an ActionScripter! Someone at the top would realise that it can’t compete just yet so they’re appealing to the masses that already know Javascript and looking to build a new army, instead of converting the existing one.

    Even Director has adopted Javascript over Lingo… which almost made the platform credible.

  8. 8 On April 18th, 2007, Keehun said:

    Microsoft is a SOB which intends to be biased until they crash and burn.
    Sorry for such exaggeration, but come on M$. I am still angry for them because they took down Kol’s cool vista theme

  9. 9 On April 18th, 2007, Ralph Hauwert said:

    I had a long good look at the current developer examples on Silverlight. Generally I am not very impressed. The fact that Silverlight falls back on JS for scripting is one downer. The fact that it actually falls back for the browser’s JS runtime engine is far worse. I mean, if they’d had written a VM in about 100Kbyte that would run for Silverlight would already made it better. But now you have to rely on different execution speeds and implementations based on which browser it’s running in. That’s exactly the problem you have in ‘ajax’ development coming back at you; make sure it runs on all browsers at an acceptable speed.

    I’m generally not very impressed with the player. Compared to the Flash Player it’s bloated, and the feature set it offers is less. I mean, have you seen things like messaging in there ? Furthermore, it’s killer feature, DRM isn’t in the current update, it will come in Fall 2007. The WM support it has goes as far as 1 codec, VC1. This codec is to be considered an alternative to MP4/H.264, just as you might consider ON2/VP6 an alternative to it. Philo, Adobe’s mediaplayer, could be considered a first sign of DRM to the Flash Player platform. On the Adobe Labs page it doesn’t mention the exact word DRM though. Widevine’s support for FLV DRM in their Cypher product might become an alternative.

    For now it’s a typical MS version 1 release…I’m not really scared for the Flash Platform at present time. I’m guessing Apollo is up for a way bigger battle when put up against WPF. I’m keeping a close eye on the Silverlight player anyway….

  10. 10 On April 18th, 2007, Ralph Hauwert said:

    adding : but I’m still a dedicated Flasher ;-)

  11. 11 On April 18th, 2007, polyGeek.com » Blog Archive » Silver…something or another. Silverfish. That’s it. said:

    [...] The name that they ended up with – no, I’m not going to use it – just slides off the memory cells somehow. Kieth Peters noticed the same thing. On a less technical note, I gotta say, I HATE the name. I can’t ever get it right. I’m stumbling over Sparklelight, Sprinklelight, Silverfish, etc. before I spit it out. John Grden suggested “Steely Dan”, but we won’t go there… [...]

  12. 12 On April 18th, 2007, Ryan Taylor said:

    My initial reaction was exactly the same when I first checked that stuff out. Way back when talks of “Sparkle” and Microsoft’s plans to compete with Adobe first emerged, there were talks of 3D support and C# for programming and how it was going to be the “Flash killer”.

    In regards to Adobe and DRM, it is my understanding that the DRM stuff that has been demonstrated in the “Adobe Media Player” will be packaged with Apollo initially, then eventually the Flash Player as well.

  13. 13 On April 19th, 2007, Chuck Freedman said:

    And now the Silverlight theme song… to the tune of “Cool Night” by Paul Davis….

    ‘Oh. Oh. On a cool night, just let me hold you by the Silverlight, if it don’t feel right, you can go. Oh. Oh.’

  14. 14 On April 19th, 2007, Webdevotion said:

    Flash & DRM stories:

    Widevine offers Flash DRM:
    http://newteevee.com/2007/04/09/widevine-to-offer-flash-drm-holy-grail/

    and related:

    Adobe to release Adobe Media Player:
    http://newteevee.com/2007/04/15/adobe-media-player/

  15. 15 On April 19th, 2007, Mike J said:

    There’s also the issue of it not functioning in all environments. Microsoft is already notorious for problems in this area, and when I tried to go check out their demos in Opera, it told me that my browser was not supported.

    I guess I view it as a bit of a mixed blessing to be honest. I was bothered by it initially, but now I’m kind of glad that I don’t have to worry about their “RIA solution” creating problems for my browser or system. Not to be excessively harsh, but they don’t really have the best track record when it comes to security.

    Thanks for shedding additional light on it!

  16. 16 On April 19th, 2007, Estadística de inserción de Flash Player « Nessy said:

    [...] http://www.bit-101.com/blog/?p=997 [...]

  17. 17 On April 20th, 2007, Freddy said:

    just do your homework as developer and guide the ones without the knowledge to the right tool:) don’t let them go with the the 5 years too late way hehe

  18. 18 On April 20th, 2007, stefan said:

    It would be healthy for Flash to have (real) competition but Silverlight is not it. Remember when Adobe came out with LiveMotion? Well, it failed due to limited, archaic scripting. So they got smarter and bought Macromedia. If Micro$oft wants to compete they should buy Adobe (God forbid). I think I’d rather buy a Bud Light.

  19. 19 On April 22nd, 2007, Fregas said:

    I think the main appeal of Silverlight will be to existing .NET developers. The ability to write a “desktop-like” client application with the full movie and 2D Graphics support, PLUS the full .NET framework (data access, windows forms controls, web services, xml, CLI, C#, VB.NET), plus being able to use Visual Studio and its designer, is all very compelling. I too was very disappointed when i saw the example apps using javascript. Once they have full C#/Visual Studio support, i will definitely be on board. Someone mentioned lack of “messaging” support and i’m not sure what htey were talking about? Web services? Xml? Silverlight will have all that because its all part of .NET.

    I get the impression that most of the people on this blog are Adobe/Flash designers (i could be totally wrong though). Whether or not Microsoft will be able to compete in the design market using Silverlight and its Expression line of design tools is still up for grabs. But for the programming, i’d rather use Silverlight, C# and Visual Studio any day over Flex. But then, much of this is because this is what i’m familiar with already…

  20. 20 On April 23rd, 2007, Hebi Flash Blog » Silverlight versus Flash/Flex/Apollo et Adobe Media Player said:

    [...] http://www.bit-101.com/blog/?p=997 [...]

  21. 21 On April 26th, 2007, JLM said:

    ER – in ref to prototypes.. maybe HaXe could be adapted to output Silverlight?

  22. 22 On September 26th, 2007, Silverlight Vs Flash: Trying to collect different opinions | MCSE Blogs said:

    [...] BIT 101 : Obligatory Silverlight Post 18-04-07 [...]

  23. 23 On July 18th, 2008, Rajes R. Nair Hyderabad said:

    Great to read your article and comments from all folks, m user experience deisgner, love to do lot of visual language in my communications. From my point of view microsoft should make this in one direction, its good that SL supports lot of things [This is what they says].. but for any user product should be understandable. Very simple example: if we do survey and ask 100 people what is silver light?… m very sure ..70% people will say its software like Flash, which gives output [wouldnt be able to tell in what format] like swf. First thing for people its not clear what exactly silverlight… have tried to do some design with expression.. overall interface is very dark and tools are very completed.. worst part..if u do something very heavy.. application ll get stuck.

    Still i love to see how silverlight is going to give competition to Flash[water in the world of web... which started long back for designers[for small linear animation]… now became RIA giant]

  24. 24 On July 14th, 2009, Estadastica de insercion de Flash Player | Nessy said:

    [...] http://www.bit-101.com/blog/?p=997 Share and Enjoy: [...]

Leave a Reply

Who is reading BIT-101?

Copyright ©2009 by Keith Peters. All rights reserved. This means that you may not reprint or repost the contents of this site without express written permission of the author.


  • Calendar

  • February 2010
    M T W T F S S
    « Jan    
    1234567
    891011121314
    15161718192021
    22232425262728
hoodia order buy Levitra Plus betablockers weight loss information buy pills without a prescription arthritis menopause ambien doses cat's eye health information on cholesterol cialis online order valtrex cheapest phentermine onlin e increase breast size lower blood sugar immediately terramycin which is better cialis or viagra buy cheap cialis reduce cholesterol naturally new blood pressure treatment products for back pain cheapest cialis index will levitra help piroxicam 20 mg order viagra online in germany buy tadalafil online buy levitra onlines how to naturally lower cholesterol buy generic viagra where to buy soma anti allergic drug levothyroxine dogs new hair loss treatmen buy levitra pain meds buy cheap malaria therapy weight loss after baby asthma medications chronic snoring viagra gel prostate cancer cures order viagra cialis alprazolam men health natural cure arthritis immune system support diet medicine cialis approval lipitor effects where can i buy arthritis drugs overactive bladder in men self help weight loss natural cholesterol control ativan medication cialis approval best cure for snoring breast enhancing pills order prozac celebrex pharmacy buy levitra onlines premature ejaculation cure confidence hypnotherapy free stop smoking bust enhance diet weight loss supplements skin fungal infection valium with no prescription viagra with out prescription breast enhancement products alpha blocker medications azithromycin 250mg skin disease chronic heart failure medicines dog care products buying cialis online gerd in children antibiotics to buy my drug store muscle building diet drugs affecting levitra anti anxiety medications really large breast enhancement help for constipation ulcers stomach drugs for high blood pressure selling pet products buy pain medicine viagra online overnight fucidin ointment generic zyrtec prices soft tab cialis smoking treatment dog products online weight loss solution cialis on line blue pills weight loss diet pill nitroglycerin sublingual floxin prevention of heart attack imuran order gasex vermox treatment of depression Viagra On Line buy generic cialis professional tooth whitening kits to buy valium 2mg treatment for hypertension ultram cheapest online stores hair loss products cheap weight loss diovan prescription malaria preventative taurine treating prostate cancer immune system support natural constipation cure phentermine no prescription fast delivery purchase meds without prescription buy plendil diet drug taking viagra after cialis protonix cheapest generic cialis online viagra levitra cialis yohimbe benefits muscle mass gain diet and health products medical treatment for insomnia buy blood pressure meds buy celexa levaquin interactions blood pressure drug skin disorder where can i buy arthritis drugs natural breast enhancer acute pain control online diazepam natural acne remedy antifungal strategies triphala pravachol online how can i stop smoking breast enhancement natural nautral breast enhancement beta blocker medications wellbutrin dosages order viagra cialis lower high blood pressure mass muscle phentermine from canada how to loss weight osteoporosis bone health lipitor use dog medication drug allergies buy diazepam buyviagra cialis phentermine 37.5 mg zestril medication parkinsons treatment generic revatio free nexium cosmetic dentistry tooth whitening avalide generic buy cheap tadalafil uk simvastatin tablets buy cialis online in usa breast pain cat care ovulating clomid medical skin care lines viagra to canada viagra or cialis cheap cialis tramadole buy azulfidine drugs used for cancer ear pain oral ketoconazole raloxifene evista taurine sex with levitra stop smoking today heart failure natural cholesterol control protonix dose oxybutynin 5mg irritable bowel syndrome treatments new treatment for hepatitis c cheap prescription drugs viagra online prescription depression therapy buy sumycin menopause treatment hair loss treatments medication pletal what is a natural antibiotic viagra purchase synthroid tablets generic prilosec lipitor cat health info discount vitamin cholesterol and health bacterial diarrhea weight loss medicine new treatment for depression removing retention fluids diuretic medicines soma 250mg cat anxiety loss weight online pharmacy viagra buy phentermine without a prescription herbs for breast growth cymbalta dosage fast weight loss supplement arthritis menopause levitra online order cheapest place to buy phentermine cold flu medications for nausea buy ultram where pills for acne free weight loss programs help with anxiety improve skin valium 2mg urinary tract health cat urinary tract disease crestor dosage drug zofran calan zyrtec buy nirdosh dosage digoxin buy pain patch acomplia alendronate cialis best price cheap wellbutrin small dog products depression medicine sildenafil dosage dog health depression and anxiety lamictal withdrawal viagra, levitra and cialis online drug buy bone maker strontium cures for hair loss nitroglycerin tablets natural arthritis treatment arimidex buy buy energy patch how to treat a yeast infection viagra herb alternative viagra cialis levitra order sublingual cialis cialis comparison breast lift augmentation seroquel for depression carisoprodol mg new treatment for depression cialis soft tabs safe sleep aid severe leg muscle pain natural weight loss gabapentin medication what is ambien clozapine medication viagra online ordering cures for hair loss free weight loss help buy viagra levitra pet treats order plan b diabetes type 2 phentermine risk ultram er side effects treatment for hepatitis b constipation cures drugs used in treating depression leg pain buy cheap generic cialis anti anxiety meds hypnotherapy for weight loss motilium body building fitness dog skin relieve upper back pain cures for high blood pressure cardura celecoxib Viagra Online Cheap cheap bactrim ambien online lamisil cost infertility meds progesterone clomid osteoporosis hormon urinary tract infection symptoms hypnotherapy for health how to buy viagra online joint pain cure online allegra buy generic cialis uk generic abilify cures for lung cancer new treatments for lung diseases pain meds buy cheap treatment for dry skin disease of the skin nexium drug free stop smoking buy tooth whitening products viagra tablet naprosyn dosage women's fertility male sexual power carisoprodol purchase asthma attack treatment estradiol pills phentermine from canada pet health care hair loss products online astelin generic cheap estrace free weight loss program buy rimonabant relieve lower back pain lexapro prescription new breast cancer drug buying ambien best online viagra scams home scabies treatment hair loss in woman buy generic cialis uk eye drop gabapentin medication amitriptyline uses ultram no prescription natural pain cures buy cla products back pain lowest price generic viagra pain meds buy cheap mg buy phentermine acne skin care cialis rx weight loss and fitness nitrofurantoin buy phentermine without a prescription high blood pressure medicines stop hair loss viagra china use levitra female health coreg dosage carisoprodol price pain relief product breast enlargement depression pills buy how to treat flu home neck pain relief order imitrex online vitamin b-6 cialis soft tabs pharmacy software description of soma buy isoniazid cheap prevacid help ear infections on dog fat burning stop smoking remedies rhinitis treatment chronic pain relief birth control online meds without prescriptions buy lovastatin drug stores penis enlargement without pill cancer medicine buy deltasone cure for throat infection thyroid dogs dosage cipro viagra from uk cheap alcoholism treatment natural cure for constipation paxil cialis 5mg tablets amitriptyline uses topamax drugs lower heart rate drug discount codes dog medicines body fat loss joint pain recurring urinary tract infections ativan information buy drugs online cheap fast valium body building ambien maximum dosage information on valium how to sperm more chlamydia medication dosage buy cialis online viagra chest pain heart fluconazole interaction calcium channel blocker side effects zolpidem dosage online drug stores zelnorm muscle strength fluconazole buy stress gum free weight loss products information on gout low immune system online viagra cialis 20 buy cefixime phentermine from canada gain muscle mass fast lasix side effects buy singulair penis enlargement free natural muscle and joint health viagra online overnight cialis online aceon allergies and asthma diamox side effects weight loss software generic compazine price for tramadol high blood pressure symtoms osteoporosis help treatment severe constipation drug new smoking stop pain relief product xanax online dog health info clonazepam .5mg buy tribulus pregnancy prevention methods allergy hives