Archive for the ‘Air’ Category

Using Base64Encoder for Basic authentication in Flex/AIR

June 29th, 2008

I've been trying to perform Basic HTTP Authentication using Flex/Air yesterday and couldn't figure out what was wrong - until I RTFM'd and found out that .encode only encodes and returns void. One needs to .flush() to get the encoded data back.

  1.  
  2. private function loadSomething():void
  3. {
  4. var strUserName:String = 'foo';
  5. var strPassword:String = 'bar';
  6.  
  7. var myLoader:URLLoader = new URLLoader();
  8. var myRequest:URLRequest = new URLRequest();
  9. var authEncoder:Base64Encoder = new Base64Encoder();
  10.  
  11. var authHeader:URLRequestHeader = new URLRequestHeader();
  12. authHeader.name = 'Authorization';
  13. authEncoder.encode(strUserName + ':' + strPassword);
  14. authHeader.value = 'Basic ' + authEncoder.flush();
  15.  
  16. myRequest.requestHeaders.push (authHeader);
  17. myRequest.url = "http://yourown.domain/your/url";
  18. myRequest.method = URLRequestMethod.GET;
  19.  
  20. myLoader.addEventListener(Event.COMPLETE, urlLoaded);
  21. myLoader.load(myRequest);
  22.  
  23. }
  24.  
  25. function urlLoaded(e:Event) {}
  26.  

Posted in Air, Flash | Comments (0)

riajobs.org

June 26th, 2008

Peter Elst just launched riajobs.org. Riajobs.org is a community-based jobboard. Amazingly enough, the site is free - even for companies that want to post jobs. There's of course the odd feature that requires a fee but even then, 20 percent of the monthly revenue will be donated to charity.

As I write this entry, jobs are being added to the site. The few jobs currently posted originate from all over the globe. Community support looks strong and will be a major success factor for riajobs.org.

The only thing this site needs is a little space for potential candidates and freelancers to leave an impression and the matchmaking site will be complete. And whaddayaknow? Peter already added that to the list of features to be added "in the near future".

Let's hope riajobs.org is not going to turn into another "enter ALL of your details including highschool friends and that female teacher you had a crush on and all the different types of pasta you've eaten in your life and all of the places you visited" setup, but, instead, a simple 1-minute setup. I've always felt that careersites asked way too much information. Just the basics and company and candidate will sort things out themselves, thank you very much.

I believe "niche" websites like this will become the ultimate future. A small company in the Netherlands has set-up a jobsite aimed solely at the creative industry and it's becoming increasingly popular as well.

Let's root for riajobs.org! From the community, for the community and, eventually, by the community.

Posted in Air, CSS, Flash, HTML, Selfish, Silverlight | Comments (0)

AIR (Flash) UI

May 28th, 2008

After twiddling around with the AIR UI, I found a few tiny bits that bothered me and as I continued using the AIR UI, they only bothered me more. The bits that bothered me are actually basic parts of the FLASH UI but they never bothered me there.

The problem is the way UI items are styled. While I can live with, and certainly appreciate, custom icons for maximising, minimising and hiding windows, I have a hard time dealing with the custom scrollbars, the dropdownboxes that simply look and feel different ...

Somehow, it never bothered me while running in a browser because my mind was set on "it's Flash, it's in a browser, it's a plug-in, it's not running on your O/S so it doesn't have to behave like it's running on your O/S".

But now, we have AIR and, from a user POV, AIR is at least making it look like the application is running on my O/S. It's a detached window, floating around on my desktop and so I expect it to look more like it belongs on my desktop and not in a browser.

The whole UI thing is also a lot less bothersome on the MacBook. On the Wintop, it seems ... out of place. It makes all AIR applications look like a gadget instead of an application. It's okay for an application like Thwirl which I consider to be a gadget, but it may actually make life just a little more difficult for full-blown AIR applications to make it onto the commercial market.

Posted in Air, Flash | Comments (2)

About something being bliss

May 22nd, 2008

In the past few months, I have met people that, for one reason or the other, wanted to share their views on Silverlight. This inevitably started out with things like "It's going to kill Flash" and always continued with me throwing a very lighthearted "oh, really".

They then started claiming that Silverlight had a lot of options and possibilities that "Flash didn't have". I'll name a few of the more humorous ones.

  • Silverlight can read XML documents
  • Silverlight can interact with databases
  • There's something new and it's called Silverlight and it'll be cool

I kid you not, those were the most serious comments I got on Silverlight. The usual "Oh, but Flash has had that since <insert random year here>" on both occasions resulted in a "Well, I must admit I don't know anything about Flash".

I don't understand people that will religiously follow any technology whatsoever. If people follow technology "M" and "M" tells its followers that their Truth is the Only Truth and the followers of "M" blatantly believe this, then I have no idea what to think of technology "M".

Technology "M" is currently holding "Dev Days" in the Netherlands. I'm almost afraid to hear the stories my colleagues will be having next week ... Probably something about Silverlight being better than AIR 😉

Posted in Air, Selfish, Silverlight | Comments (3)

Adobe Air != Microsoft Silverlight

May 16th, 2008
AIR != Silverlight

As Peter Elst points out: Adobe AIR is not the same as Microsoft Silverlight. Where he uses words, I will use technology to prove my point. Clicking the button below will answer the question in a simple way.

On to the source code »

Posted in Air, Silverlight | Comments (1)

SEO Powered by Platinum SEO from Techblissonline