2010年4月30日

ActionScript 3 使用相对路径读入外部图片时,需注意的问题。

http://www.actionscript.org/forums/archive/index.php3/t-124859.html

loader.load(new URLRequest((root.loaderInfo.url.substring(0, (root.loaderInfo.url).lastIndexOf("/") + 1 ) ) + "trefle.png"));

没有评论: