Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Extensions and Plugins > Components

Reply
 
Thread Tools Rate Thread Display Modes
Old 09-21-2007, 09:16 AM   #1
tbee
Registered User
 
Join Date: Sep 2007
Posts: 13
Default Loader displays image in wrong size

First: the scaleContent is set to true explicitely, so the loader does not scale with the contents.

The situation is that a PHP page generates at runtime generated images. This scaling can take a few seconds sometimes. After that the image is cached and delivered more quickly.

If the loader is fetching a not-cached image (so it takes a few secs), the loader's getBytesLoaded() returns 0 "on complete", but the image is still displayed only way larger than the loader or image actually is.

If the loader fetches a cached image, then the getBytesLoaded is showing the file size and the image is displayed correctly.

If the server is busy generated new images (it's on my development environment, so things are not that fast) and therefore a cache image takes a bit longer to fetch, then cache image is also display too large.

There seems to be some kind of timeout at work here. Some treshhold in response time. I can't seem to get my finger on what or how to handle this. I though the loader would simply wait until the image was send.
tbee is offline   Reply With Quote
Old 09-21-2007, 09:36 AM   #2
tbee
Registered User
 
Join Date: Sep 2007
Posts: 13
Default

As an additional note: if I get the properties of the cached file, it says 266x176, exactly the same size as the image loader. If I read these cache images directly, they are also displayed too wide.

The image loaders are resized instances of a symbol. Can this be of influence?
tbee is offline   Reply With Quote
Old 09-21-2007, 09:42 AM   #3
tbee
Registered User
 
Join Date: Sep 2007
Posts: 13
Default

Yes.

After changing the instance-of by individual Loaders, the images are displayed correctly.
tbee is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto resize image to movie clip size? BEANZ ActionScript 2.0 19 07-05-2007 10:54 AM
reposition image within loader component via AS mantra Components 1 06-03-2007 02:38 PM
Copying loaded image bitmap data to another image loader dgimness ActionScript 2.0 1 05-01-2007 08:21 PM
Help on image scroller: size of images? jazmin Simple Stuff (Newbies) 5 03-28-2006 01:11 PM
movie clip loader changes movie clip size kensuguro ActionScript 2.0 3 02-28-2006 12:16 PM


All times are GMT. The time now is 04:23 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.