Hi!
Im a very novice flashdeveloper and i have a feeling that there should be a simple solution to my problem.

I have created a component (swc) that reads some Xml and stores away some values. Just trying the component out works very good and the XML is read correctly.

The problem is that the XML-file read have the same name as the .swf that the component is loaded from. This wouldnt be a problem either if i stoped here and was using root.loaderInfo.loaderURL. And i realy need to get that name to know what XML to load and where its placed.

The problem is that the .swf also is loaded inside another main-swf. The structurce look something like this

mainSwf
#####|- Child1.swf
#############|-Component (reading Child1.xml)
#####|- Child2.swf
#############|-Component (reading Child2.xml)
#####|- ...

When using root.loaderInfo.loaderURL now i get the url to the mainSwf instead and cant find any way to get the name or path of Child1.swf

Child1.swf and Child1.xml will be in subfolder to the mainSwf folder, the folder will have the same name (Child1)

Soo my question is, is there any way of getting the Child1 path from the component? I should also say that the name Child1 can be anything since the folder and filestructure is generated from another application.

Thx in advance
/Erik