Solved

Dynamic Images - Most Efficient

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
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 use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

760 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now