[osflash] Length of packagename/classname in Flash MX 2004 IDE
tschneidereit at gmail.com
Thu Apr 12 13:55:08 EDT 2007
unfortunately, the length of package names is indeed limited in Flash
MX 2004 and Flash 8. As far as I know, there's nothing you can do
about it except shortening the name - or compiling with mtasc only.
In case you're interested: The reason for this limitation is that the
Flash compiler caches compiled classes in individual files (on
windows) usually located in the folder
c:\Documents And Settings\[username]\local settings\application
data\macromedia\[name of flash
version\[language]\configuration\classes\aso\[full package path as
nested folders]\[full package path and classname seperated by
As you can see, this path is quite long and gets longer the more you
nest your packages. Unfortunately, path names are limited to 256
characters under windows (well, not really, but most file APIs make
you think they are), causing the actual limitation for the package
name length to be:
256 - [length of cache path up to "classes\aso\"] - [length of package
name] / 2 - 4 (for the .aso extension)
In my case, this leaves a measly 65 characters as the maximum length :(
On 4/12/07, John Hauf <j at hauf.org> wrote:
> Hello list,
> I have some troubles with long package names when compiling a swf in the
> FlashMX 2004 IDE. When I try to compile the same class into the swf with
> mtasc everything works right.
> When I try to use the class:
> the macromedia-compiler tells me, that it could not load a class with
> that name. When I trim the classname to
> the swf compiles without an error.
> Is there a limit of package-/classname-length in FlashMX2004?
> Thank you!
> osflash mailing list
> osflash at osflash.org
More information about the osflash