View Full Version : All this time using Actionscript 2.0
snapple
10-12-2006, 07:28 PM
... and i never (until the other day - when it tripped me up) knew that there is a character limit to class paths - or more specifically, the class ASO files have a character limit on them.
Think its 80 chars.
Regards, snapple
Flash Gordon
10-12-2006, 09:01 PM
how deep is your paths?
senocular
10-12-2006, 09:05 PM
This relates to a file system limitation (if its what Im thinking of) since the location of the ASO files combined with the package paths creates a OS system path to a file which is too large for the OS to handle. :-/
snapple
10-12-2006, 09:12 PM
Yeap - i was hoping that i could change where the ASO files were stored, or swicth the chaching of the classes of all together.
My class paths were very deep, because of the package structure i had to follow. In some cases around 100 characters.
Regards, snapple
senocular
10-12-2006, 10:13 PM
That is not possible at this time, but a feature request for this has been logged. The Flash engineers should be aware of the issue and be considering it for a future relaese of Flash.
farafiro
10-15-2006, 11:07 AM
My class paths were very deep, because of the package structure i had to follow. In some cases around 100 characters.
Regards, snapple
wow, what is this project about?? or it's a big secret
snapple
10-15-2006, 12:01 PM
Its just work stuff.
com.companyname.companyTeam.gameclasses.specificGa me.
and from there on i could have the following packages:
model
view
controller
events
or even more packages
featureGameName.model
featureGameName.view
featureGameName.controller
featureGameName.xml
featureGameName.events
featureGameName.events.XMLEvents
Also bare in mind that some game names (which are decided by the server) can be upto 15 chars.
It is imperitive that i stick to this structure as there are many games and engines being built - so you can see how a class path can end up over the ASO path limit.
Regards, snapple
farafiro
10-16-2006, 05:31 AM
wow, looks like maze to me as I hardly touched flash for the past 6 months
good luck ;)
invader
10-17-2006, 07:21 AM
hindsight is always 20:20
too bad it's probably too late to assign 3-digit ID #'s to company names, team names, game classes, etc.. (perhaps referencing a central DB/CMS)
i didn't know about this limitation, so thanks for pointing it out!
snapple
10-17-2006, 08:09 AM
The worst thing is that it failes silently.
No error messages (other than the normal error message of a class not being found). You'll just struggle along - thinking it must be an ASO caching issue or that you have just made an error in the spelling of the class path or something - wonder why the class you are instantiating isn't ehre, or wondernig why you can see the class in your editor but Flash can't see it - etc etc.
Regards, snapple
jjbilly
10-17-2006, 05:11 PM
Ah, the nostalgia... this was my very first post (http://actionscript.org/forums/showthread.php3?t=67116) (still not answered ;))
We have worked around the issue by writing a script to move the classes to a temporary folder for publishing. We do it using a local NANT build script - I didn't do it, I don't know exactly how it works, but you might want to look into that or something similar. Actually, I imagine you could do this entirely in JSFL, now that the file system stuff is there.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.