This content has been marked as final. Show 5 replies
use relative path instead of absolute.(relative to where main src folder is)
obviously this will work, but that's not the point. i just found out you can't use source for classes. i can't see how that makes sense?
it makes perfect sence, in OOP you can't just include a class and start using it, for that there is import functionality.
you can only include a raw A/S files (non Class Files).
import yourpackage.yourClass;// without .as at the end
i guess you are right, thinking about it for a few seconds - including classes does not make sense. i think i was under the AS2 influence (in the midst of a huge migration project, which is horrible (time consuming) and great (a. finally the compiler gives you proper information about your code, and b. you realize that without the hard typing of as2, you were lucky to have it running on the first place ;) ) and i was looking on how to create a custome mxml that is managed by a class, in the same sense we can have a MovieClip in the library that is managed by and AS2 class.
hints on that would be great