actionscript 3 - How to get swf's url on swc library -


i'am beginner of actionscript3

i wanna swf's url.

but develop swc lib. swf(main) develop other developer.

i have main loaderinfo, / f fixed.

do have idea?

public function dosomething( arg1:string,arg2:string ):string {     /* thing */      return result; } 

get other developer pass in main class or stage (in fact displayobject) , return loaderinfo.loaderurl that. like:

public function getswfurl( dobj:sprite ):string {     return dobj.root.loaderinfo.loaderurl; } 

the .root return root displayobject, displayobject that's attached stage return this.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -