Solved

Loading TIF Images in Flex

Posted on 2008-06-25
7
2,307 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
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
free flash maker 5 206
video live streaming 1 117
Indesign Data Merge 1 182
IE11 stops playing video on a certain website 10 71
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…
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

867 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now