Solved

Dynamic Images - Most Efficient

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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

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…
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
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.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

729 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