Solved

Dynamic Images - Most Efficient

Posted on 2003-10-23
1
159 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
[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
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

Industry Leaders: 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!

Question has a verified solution.

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

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
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.

726 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