dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: SAVE AS? How do you do this?

  1. #1
    Member
    Join Date
    Jun 2004
    Location
    land o' blah
    Posts
    50

    SAVE AS? How do you do this?

    I have a button that needs to download a .AVI. It's a QuicktimeVR and therefore needs to be opened in Quicktime. I will settle if the user is only able to dowload it from the website and open it on their own. I just need the button to download the file to their computer. I read a tutorial that told to make a .PHP file. I tested it just on the computer, not online, and it didn't work. Would this only work online.

    Hopefully someone can help me with this because it is the last thing keeping me from getting my site online.

  2. #2
    Harmony & Justice Veniogenesis's Avatar
    Join Date
    Jul 2002
    Location
    Washington D.C.
    Posts
    4,434
    If your computer isn't a server, it probably won't work. Php is a server-side scripting language. Unless you have some server software running like Apache and PHP, the script won't be executed. Try uploading it online and testing it out. Most webhosts have servers with PHP, so I'm pretty sure it'll work fine.

    Regard,
    venio
    Flash Kit Moderator . Duke University
    Thomas Jefferson High School for Science and Technology

  3. #3
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,490
    You can zip up the avi, upload it and then link the button to the zip file.

    on(release){
    getURL("http://www.mysite.com/moviefile.zip", "_self");
    }

    That will open the download and save window when you click the button.

  4. #4
    Member
    Join Date
    Jun 2004
    Location
    land o' blah
    Posts
    50
    Cool. I'll give it a try. Thank you much!

  5. #5
    Senior Member catbert303's Avatar
    Join Date
    Aug 2001
    Location
    uk
    Posts
    11,222
    in this case zipping the file is probably the easiest thing to do. however PHP is exceptionally useful in many cases, you can do a quick test to see if your server supports PHP like this.

    1) in your text editor (eg something like notepad) create a new file, in this file type the following

    <?php
    phpinfo();
    ?>

    save this as something like info.php

    2) upload this info.php file to your web server.

    3) now in your web browser navigate to the info.php file, eg http://www.yourhost.com/info.php - if a long page of settings and information about PHP appears then your host has PHP installed

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