image - How to make UIloader work? -
i have project @ school, supposed make image recognizer not importing photos flash. here's error i´m getting:
error #2044: unhandled ioerror:. text=error #2035: url not found. url: file
anyway, file (p.s. it's norwegian. , yeah, i'm noob, know.)
http://www.megafileupload.com/en/file/507257/recognizer-fla.html
i have tried similar methods, nothing seems work - again, i'm noob. have been coding 2 months.
not importing photos flash
it's easy load external image. need loader class, image represented instance of bitmap class. if ioerror, assume url isn't correct.
example:
var loader: loader = new loader(); loader.contentloaderinfo.addeventlistener(event.complete, oncomplete); loader.load(new urlrequest("http://www.billboard.com/files/styles/promo_650/public/stylus/1235529-taylor-swift-woman-of-the-year-617-409.jpg")); function oncomplete(e:event):void{ var bitmap: bitmap = loaderinfo(e.currenttarget).content bitmap; addchild(bitmap); //do whatever want image }
Comments
Post a Comment