Can anyone tell me why you might use loadBytes()
instead开发者_C百科 of a simple load()
?
From the ActionScript 3.0 Reference (flash.system.LoaderContext):
When loading a SWF file with the
Loader.loadBytes()
method, you have the same application domain choice to make as forLoader.load()
, but it's not necessary to specify a security domain, becauseLoader.loadBytes()
always places its loaded SWF file into the security domain of the loading SWF file.
精彩评论