Accessing classes in loaded swf


I have 2 swfs, one is main and it loads other file “skin.swf”. skin contains object of custom class SkinClass. I can access it from main swf, but when I try to cast that object, the result is null. This happens when I use absolute url, when I load skin from relative url, everything is ok. Any suggestions? thanks