-
Geturl "Save As"
Hi Guys,
I am kind of a newb to flash. I was wandering if there is a way to use the getrul command or a different command to link to file that will pop up the windows dialog for "open" or "save as".
Thanks a lot.
I.Z
-
Senior Member
you have to use javascript for that.
-
Originally Posted by ilive
you have to use javascript for that.
How?!?!?!?!?!
-
Senior Member
Originally Posted by the6thplague
How?!?!?!?!?!
here's the javascript code for window save:
on (release) {
url="name.htm"; ------>>>name of your file
target_winName = "_blank"; ----->>>target window
w = 350; ---->>> specifies the width of the window when opened in pixels
h = 300; ----->>> specifies the height of the window when opened in pixels
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 0;
resizable = 0;
getURL ("javascript:var myWin; if(!myWin || myWin.closed){myWin = window.open('" + url + "','" + winName + "','" + "width=" + w + ",height=" + h + ",toolbar=" + toolbar + ",location=" + location + ",directories=" + directories + ",status=" + status + ",menubar=" + menubar + ",scrollbars=" + scrollbars + ",resizable=" + resizable + ",top='+((screen.height/2)-(" + h/2 + "))+',left='+((screen.width/2)-(" + w/2 + "))+'" + "')}else{myWin.focus();};void(0);");
}
-
If you wan't to open the file requesters that wont work. The esiest way to do this is to use the FileReference object. However that object is only supported by Flash player 8.
In earlier versions you can get the "save as..." requester by linking to a page using serverside scripting to embed the file in it's header.
/Mirandir
-
Originally Posted by Mirandir
If you wan't to open the file requesters that wont work. The esiest way to do this is to use the FileReference object. However that object is only supported by Flash player 8.
In earlier versions you can get the "save as..." requester by linking to a page using serverside scripting to embed the file in it's header.
/Mirandir
I am a newbie,
how do I do any of these things?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|