Frequently Asked SDK Questions
See also Frequently Asked Questions for non-SDK questions.
Why do I get compile errors regarding autoSize?
A: Upgrade to Flash v7.2.
There are some bugs in Flash v7.0 and v7.1 that cause compile errors for valid code. Macromedia fixed many of those bugs in Flash v7.2. As of this writing, that update is a free download from http://www.macromedia.com/support/flash/downloads.html
Why do I seem to get old versions of the player when I recompile?
A: Try clearing Flash's compiler cache.
The Flash compiler has a nasty bug that it over-aggressively caches object files. If you are working on two copies of a particular Actionscript class (for example, a main version in one folder and a test version in a different folder) Flash does not accurately test which version you are trying to compile and will use the last version, which may be wrong. The workaround is to manually clear the compiler cache when switching versions of a project.
Generally, the steps are:
- Open the Macromedia/Flash MX 2004/en/Configuration/Classes folder
- Delete all of the *.aso files
- Recompile your SWF
On MacOS, that folder is usually located here:
On Windows, that folder is usually located here:
C:\Documents and Settings\<username>\Application Data\Macromedia
On MacOS, you can clear the cache with this command that you can copy-and-paste into the Terminal:
find $HOME/Library/Application\ Support/Macromedia/Flash\ MX\ 2004/en/Configuration/Classes \ -name '*.aso' | xargs /bin/rm
Copyright 2007 Clotho Advanced Media Inc.