Skip navigation
hamlen
Currently Being Moderated

compc inserts unwanted Sprite script

Jun 5, 2012 9:33 AM

Tags: #compc #4.6

The compc component compiler always inserts a script named

 

"_<large hex string>_flash_display_Sprite"

 

into every project I compile---even completely blank projects with no no source files at all.  How do I stop it from inserting this script?

 

To duplicate the problem, run compc on any project (even an empty project with a minimal config file) and add the command-line options "-directory=true -output=outdir".  Read the resulting outdir/catalog.xml file and you should see an entry for the above script near the bottom.

 

I am using compc version 4.6.0 build 23201.

 
Replies
  • Currently Being Moderated
    Jun 5, 2012 9:59 AM   in reply to hamlen

    It might be put in there in case the SWC is used as an RSL.  Why does it affect you?

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 5, 2012 1:38 PM   in reply to hamlen

    Compc only builds a library.  When using MXMLC to build the final app, any classes not referenced will not be linked in, and any not actually used at runtime will not be initialized.  Check the link-report of the final app to see if those Sprites are in there and who referenced them if they are.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 5, 2012 9:39 PM   in reply to hamlen

    Do you need the catalog.xml in the SWC?  Otherwise, just use MXMLC instead of COMPC.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 7, 2012 10:26 PM   in reply to hamlen

    You can try the –includes option, or have a single class that references sthe others.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 8, 2012 8:47 AM   in reply to hamlen

    The includes option for MXMLC allows specification of a single class.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points