Domanda

For almost all of my projects I export visual assets from Flash Pro to SWC to then import them in Flash Builder. Today I stumbled across a really bothersome problem.

Some of my assets are not being imported. I've tried clearing my projects multiple times, restarting my Flash Builder IDE, re-exporting my SWC.

Clearly there's a problem when importing it, because when I decompiled my SWC/library.swf, I saw that all of my assets are exported just fine. When I decompile my output SWF I see that instead of some assets there is a red rectangle, and some of them are just invisible.

I don't know what to think and can't figure it out. The only thing that might be a case is the file size of the SWC (approximately 2.5 MB), and there are almost 160 linkages in there.

I wasn't able to find anything on the internet regarding the file size limit or anything like that.

I'm using Flash Pro CC and Flash Builder 4.7 Standard on a Mac OS X 10.8.4

These are the red boxes I'm talking about (there should be other bitmaps instead of them):

SWC Import problem

È stato utile?

Soluzione

Take a look at the bitmap properties you have set for the missing Bitmaps. - Photo (JPEG) - Lossless (PNG/GIF) If you have JPEG selected this might be the problem

Altri suggerimenti

Almost the same happened to me with exporting SWC from Adobe Flash CS5.5 and using this SWC in Flash Builder 4.7. In my case some pictures are not being shown in resulting SWF file. The solution is one of the following:

  1. Use JPEGs instead of PNGs.
  2. Use no compression (lossless PNGs.)
  3. Use compression not by default, which may be the same as the default setting.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top