Loading TIF Images in Flex

Hai,
      How to load the TIF images in Flex. When i try to load the TIF image by directly specifying the source in the <mx:Image> tag blank image is showing with X symbol.

      Also I want it to load through ActionScript.

Thanks
LVL 1
veradistAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
asaivanConnect With a Mentor Commented:
As far as I know, the Flash player does not support TIFF files.  Your best bet is to convert to a JPG or PNG.
0
 
Aneesh ChopraConnect With a Mentor Commented:
Yes,
I agree with asaivan response, and confirm that TIFF format is not directly support by Flash Player.
whether it is Flash or Flex, both generates SWF output and SWF runs in Flash Player.

Only follwoing image formats  can be dynamically loaded using actionscript:

JPG, PNG, GIF (If GIF is an animated GIF, then only first frame will be visible in Flash)
0
 
veradistAuthor Commented:
Then
 is possible to  convert TIF image as ByteStream by decoding it and load in Image control

if so can i get any samples in that
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
asaivanCommented:
That's over MY head, man.  :)
0
 
maclemaConnect With a Mentor Commented:
Yes, you could load the TIFF into a ByteArray and decode it. However. I have not found a decoder for TIFF that is written in actionscript. I would not also not recommend doing this because actionscript would be quite slow to decode the TIFF.

For a project I was working on one of the requirements was the ability to load TIFF's. Unfortunately, I had to fore the users to first upload the TIFF to the server, when I then converted it to a JPEG using Java, then downloaded the JPEG into the flex application.

Hopefully one day Adobe will provide support for TIFF's. :)
0
 
LGerritseCommented:
There is a freeware tool "Easy Thumbnails" at fookes.com. That would allow you to build a jpg thumbnail to view the image.
0
All Courses

From novice to tech pro — start learning today.