out to be rather elusive. I have it working great on my comp in ie,
however on my comp with firefox, or with any browser on my father's
computer we get the file browser popup and when we hit ''save''
everything SEEMS to go OK but the file doesnt get downloaded. Weve
checked and re-installed all the browsers / flash plugins, and
nothing has changed. No error handelers get tripped, and Ive
checked the scope issue. The following is the code Im using,
published to flash 8 AS 2.
import flash.net.FileReference;
_root.vars.fileRef = new FileReference();
_root.functions.getit = function(){
_root.vars.fileRef.download(''
http://www.myURL.com/myList.csv'',
''myList.csv'')
}
Thanks for your help.filereference download issue on some...
do you have a cross-domain security file and are you loading
it?filereference download issue on some...
Thanks for the reply, but nope, swf, html, and the
''myList.csv'' are all in the same dir of the same domain. Also, if
it where a sandbox issue it wouldnt have worked on my ie.
your last sentence isn't necessarily correct. but that's
another issue.
try a relative path instead of absolute.
WOW, bang on. Not sure why that is, but you got it. Relative
link works great on all. If you dont mind, could you elaborate on
why sandbox issues would be browser specific?
sandbox issues shouldn't be browser specific, but they are
flash player version specific.
ok,
for us extreme newbies here, of which I am one, can you
explain the difference between your relative and absolute path in
the .download file reference
thanks
Jim
an absolute path would be something like:
www.yourdomain.com/subdirectory/yourfile.ext
(looking at the op's original message, i see he used an
http:// prefix which isn't going to work in any
case.)
a relative path from yourdomain's main directory would be:
subdirectory/yourfile.ext
No comments:
Post a Comment