Solved

Loading TIF Images in Flex

Posted on 2008-06-25
7
2,311 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
Independent Software Vendors: 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Stop Ads in Browser Google Chrome 3 551
Some Flash in IE doesn't display properly, but does in Chrome 4 636
free flash maker 5 221
Google Chrome pepflashplayer.dll 8 208
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…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

740 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