I/O Error when loading an image with Loader from unmapped network address
we have code in air application:
var name:string = "file://networkfileserver/folder/image.png"; var _loader:loader = new loader(); | ||
_loader.contentloaderinfo.addeventlistener(event.complete,completehandler); | ||
_loader.contentloaderinfo.addeventlistener(securityerrorevent.security_error, securityerrorhandler); | ||
_loader.contentloaderinfo.addeventlistener(ioerrorevent.io_error, ioerrorhandler); | ||
var loadercontext:loadercontext = new loadercontext(); | ||
loadercontext.imagedecodingpolicy = imagedecodingpolicy.on_load; | ||
_loader.load(new urlrequest(name),loadercontext); |
this causes io error message error #2035: url not found. url: file://networkfileserver/folder/image.png
opening same address in browser results in image being shown (it gets converted file://///networkfileserver/folder/image.png in firefox, still shown).
if map network folder, image loaded in air (as "file://z:/image.png" instance, gets converted "file:///z:/image.png" in firefox, not other browser, works in of them).
if due authentication issues, expect "file://networkfileserver/folder/image.png" throw security error, not i/o one, , not load in browser.
i tried adding crossdomain.xml , loadercontext.checkpolicyfile = true; in case, no avail.
any tips welcome.
thanks!
is air desktop app?
More discussions in ActionScript 3
adobe
Comments
Post a Comment