?
Solved

Dynamic Images - Most Efficient

Posted on 2003-10-23
1
Medium Priority
?
161 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 2000 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

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 my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Suggested Courses
Course of the Month14 days, 8 hours left to enroll

771 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