A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Geturl "Save As"

  1. #1
    Junior Member
    Join Date
    Sep 2006
    Posts
    5

    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

  2. #2
    Senior Member ilive's Avatar
    Join Date
    Aug 2006
    Location
    Philippines
    Posts
    195
    you have to use javascript for that.

  3. #3
    Junior Member
    Join Date
    Sep 2006
    Posts
    5
    Quote Originally Posted by ilive
    you have to use javascript for that.

    How?!?!?!?!?!

  4. #4
    Senior Member ilive's Avatar
    Join Date
    Aug 2006
    Location
    Philippines
    Posts
    195
    Quote 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);");
    }

  5. #5
    Senile member! :)
    Join Date
    Dec 2001
    Location
    Saunaswamp (transl)
    Posts
    2,296
    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

  6. #6
    Junior Member
    Join Date
    Sep 2006
    Posts
    5
    Quote 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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center