Solved

Dynamic Images - Most Efficient

Posted on 2003-10-23
1
158 Views
Last Modified: 2010-04-03
What's the best way to load images dynamically into a swf and control the dimensions so an image will always take up the same space on the scene.  What happens when you dynamically load a landscape image, in a portrait space?  Will it streatch and squish into the space or will it keep the proportions and cut off the sides?
0
Comment
Question by:madasczik
1 Comment
 
LVL 27

Accepted Solution

by:
negatyve earned 500 total points
ID: 9610558
>Will it streatch and squish into the space or will it keep the proportions and cut off the sides?

you cannot create a space where your image does shrink, it always occupies it's original size. if you want to make it fit a fixed area, you have to resize it with actionscript. at this link you can find an example of an external images loader, which automatically resize loaded images:

http://www.wheelmaker.org/downloads.html
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Flash being Disabled - help! 20 343
Flash player plugin 13 7 339
Youtube video error 30 807
Adobe Flash Player ActionScript error 6 66
I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
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 set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

856 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