Wednesday, September 24, 2008

Problem: Flex 3.0 doesn't support image type .ico

I use mx:Image class to load favicon.ico of a website, but I can't. Image class only supports for JPEG, GIF, PNG, SVG, SWF, TTF, and MP3 files.

Then, I use IconLoader of flexlib (from http://code.google.com/p/flexlib/wiki/ComponentList) like :
..
[Bindable]
[Embed( source="assets/favicon.ico", mimeType="application/octet-stream")]
public var FAVICON_ICO: Class;
...
flexlib:IconLoader source="{FAVICON_ICO}" width="16" height="16"

But I still see nothing.

Any ideas to help me ?

2 comments:

Unknown said...

Dang,

I hear your call..I have implemented IconLoader with favicon support. There is a demo app in this post:

http://ccgi.arutherford.plus.com/blog/wordpress/?p=174

and it was integrated into this:

http://ccgi.arutherford.plus.com/blog/wordpress/?p=175

All the best
Alistair.

binhdocco said...

Thanks guy for your help.
Regards,
Binh.