Solved

Loading TIF Images in Flex

Posted on 2008-06-25
7
2,316 Views
Last Modified: 2013-11-11
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
0
Comment
Question by:veradist
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 9

Accepted Solution

by:
asaivan earned 168 total points
ID: 21866731
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
 
LVL 34

Assisted Solution

by:Aneesh Chopra
Aneesh Chopra earned 166 total points
ID: 21867251
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
 
LVL 1

Author Comment

by:veradist
ID: 21873277
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 9

Expert Comment

by:asaivan
ID: 21875727
That's over MY head, man.  :)
0
 
LVL 5

Assisted Solution

by:maclema
maclema earned 166 total points
ID: 22014591
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
 
LVL 1

Expert Comment

by:LGerritse
ID: 22766277
There is a freeware tool "Easy Thumbnails" at fookes.com. That would allow you to build a jpg thumbnail to view the image.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question