Embedding an image works only for a few times, then I need to resize.

Hi all
I am trying to use an image and I am having the following problem:
- the image is a png, 2000x2464 pixels
- I embed the image
- Everything works OK during the first few tries
- After some debugging session, without changing anything in the image embedding, the image isn't loaded anymore, or better, it seems loaded ( in the variables I see the istance of my class and it is not null) but the bitmapdata of the image is null, width and height are 0.
- Now, I resize the image to something smaller and i start again. Everything works fine again and the cycle begins again !
Here's the code:
In the declarations of the class containing the image:
        [Embed(source = "images/italyMapZOUT.png")]
        [Bindable]
        var mapClass:Class;
        var map:Bitmap;
In the initialization method that i call after construction:
        map  = new mapClass();
        var bdata:BitmapData = map.bitmapData;
        var myRatio:Number = someNumber / map.width;
It seems to me that I am embedding the image as described in zillions of sites and it is actually working... for some times ! Then , after say 5 or 6 debugging sessions, I get an error evaluating "someNumber" because width is zero, and checking the local variable I see that bitmapData is null.
Resizing to a smaller image , saving said image and restarting solves the issue temporarily.
Any idea what's happening ?
Thank you very much !
Wentu

The backlight still seems to be working (so goes from lit to darkened), but it sounds like the LCD is not working.
If you did a Restore and the problem is not resolved, it is likely to be a hardware-related problem, unfortunately.

Similar Messages

Maybe you are looking for

  • Language Selection to print scripts

    Hi Friends, I have a custom dialog program . On the screen I have following parameters . Print Immediately : No of Copies : I want to add a language option to it . The default should be the logon language . Which table contains the logon language and

  • [ODBC Microsoft Access Driver] Syntax error (missing operator)

    Aello' - as you can see in my database table their are two records to delete based on the HISTORY_ID of 1. This was working just fine when I was using a MS SQL Server database but when I switched to the MS Access database I get this error now. Is the

  • Design issue with threads ...

    Hello, I need your thoughts in how to proper use java threads in solving this issue: * I have an application that query a database for a list of users, and for each row retrieved from the database as a result the application should process that user

  • Linking expressions to central Controller

    I'm trying to link up my expressions to one central Controller layer so that that one expression is shared across all objects in my project which require it. I have "// Controller" composition with "Expression_Source (tK-logo_anim)" text layer. Its s

  • Won't hold music

    My sisters iPod classic will not hold anything. It tells her to reset it all the time and when she does it tells her to again. No matter what it will not keep music on her iPod. Any suggestions? Thanks! My sister has iTunes 10 running windows 7.