2 Replies Latest reply on Aug 30, 2006 9:41 AM by NSurveyor

    background

    jagguy99 Level 1


      If I want to load an image which takes up more than the screen, can I load part of the image somehow, eg for a case where you have a large background for a game, and you only want to load part of it or just a 64X64 pixels tile chunk at a time.
        • 1. Re: background
          kglad Adobe Community Professional & MVP
          no, you can't load less than a full file and expect any part of the file to be usable in flash.

          you must edit your image prior to loading.
          • 2. Re: background
            NSurveyor Level 2
            Is this to allow the user to see the image as it loads or something like that

            Or do you just want to be able to load your image and take a specific block of it. If so, you can try something like:

            create clip tile_mc
            create clip tile_mc.holder
            create clip tile_mc.mask
            draw a square in tile_mc.mask
            load image into tile_mc.holder
            position tile_mc.holder
            use setMast so tile_mc.mask masks tile_mc.holder