![]() |
![]() |
||||||
|
|||||||
| Tags: |
![]() |
|
|||
|
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. |
| Sponsored Links |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
- Contact Us
-|-
Adobe Dreamweaver Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise