Solved

Loading TIF Images in Flex

Posted on 2008-06-25
7
2,306 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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…

760 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

19 Experts available now in Live!

Get 1:1 Help Now