why file can not be read in adobe flash , air or actionscript on server -
i used function load text file
public function load_ways(zoom) { finish_working = false; _zoom = zoom; var data:urlloader = new urlloader(); data.addeventlistener(event.complete, onloaded_kv); data.load(new urlrequest("zoom\\" + _zoom + ".txt")); }
that worked correctly when ran application on computer. when moved file server, file won't load.
actually, onloaded_kv function called empty data.
you can't have backslash in url change to:
public function load_ways(zoom) { finish_working = false; _zoom = zoom; var data:urlloader = new urlloader(); data.addeventlistener(event.complete, onloaded_kv); data.load(new urlrequest("zoom/" + _zoom + ".txt")); }
Comments
Post a Comment