Adobe Dreamweaver Forums



Last 10 THreads :         Table Borders MIssing in JavaHelp (Last Post : soxmann - Replies : 3 - Views : 8 )           »          Clock .getUTC not working (Last Post : bolszo - Replies : 2 - Views : 3 )           »          cfimage error (Last Post : masoud_amen - Replies : 2 - Views : 3 )           »          Dragging components (Last Post : hsfrey - Replies : 2 - Views : 4 )           »          Is file too large? (Last Post : tweaked_eye - Replies : 0 - Views : 1 )           »          Could not find the included template (Last Post : azuro28 - Replies : 2 - Views : 3 )           »          problems linking PDFs (Last Post : Mantzi - Replies : 0 - Views : 1 )           »          flash loader reappears after movie plays (Last Post : lyshamo - Replies : 3 - Views : 4 )           »          How to turn IMAGE into MOVIECLIP??? (Last Post : Snufferson - Replies : 7 - Views : 8 )           »          Embed files in a projector (Last Post : ytlevine - Replies : 0 - Views : 1 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 11-20-2008, 04:43 PM
KitsunesGame
 
Posts: n/a
Diggs:
Default Excessively Large image loading

I have a program that is calling a large number of PNG files from a separate
source folder. A few of these images are far too big (in excess of 200KB) and
they refuse to load.
Selecting an item in a datagrid opens this function:
private function showImage(event:Event):void
{
var colName:Object = event.target.selectedItem.image;
imageBox.source = "New Folder/" + colName;
var size:int = imageBox.bytesLoaded;
imageName = colName.toString();
if(size > 200000)
{
message.text = "";
imageBox.source = "New Folder/TooBig.png";
}
else
{
message.text = "";
}
}

If the image is under 200KB (roughly), the image loads into the imagebox. If
it is higher than 200KB, the imagebox does nothing, however, clicking any image
after that, including ones that do display, sends the file size too high and my
back up picture (TooBig.png) is loaded instead. I have tried clearing the
image loaded, but I can't seem to get it to stop loading the large images.



Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 11:37 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk