如何获取swc库上的swf url
我是 ActionScript3 的初学者,
我想获取 swf 的 url。
但我开发了swc lib。 swf(Main) 开发其他开发者。
我必须从 Main loaderinfo 获取,I / F 已经修复。
你有什么好主意吗?
public function doSomething( arg1:String,arg2:String ):String
{
/* some thing */
return result;
}
I'am a beginner of ActionScript3
I wanna get swf's url.
but I develop swc lib.
swf(Main) develop other developer.
I have to get from Main loaderinfo, I / F is already fixed.
Do you have a good idea?
public function doSomething( arg1:String,arg2:String ):String
{
/* some thing */
return result;
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
让其他开发人员传入 Main 类或 Stage(实际上是任何 DisplayObject)并从中返回 loaderInfo.loaderURL。类似于:
.root
将返回根DisplayObject
,因此附加到舞台的任何DisplayObject
都将返回此根。Get the other developer to pass in the Main class or the Stage (in fact any DisplayObject) and return the loaderInfo.loaderURL from that. Something like:
the
.root
will return the rootDisplayObject
, so anyDisplayObject
that's attached to the stage will return this.