AVI in Flash website

  • Chaosphere
  • Newbie
  • Newbie
  • User avatar
  • Posts: 11

Post 3+ Months Ago

Hey all, I have a website, i want to put a link to an AVI i have created without having to load the avi into the file when you are at the splash page.... basically i want the movie to load fast, or at the same current speed, but include a page that has a link to DL the avi.... please help !!! Thanks :lol:
  • the_Maven
  • Graduate
  • Graduate
  • the_Maven
  • Posts: 196

Post 3+ Months Ago

i guess you could try this ...
If you have a button in the flash movie, use this actionscript in the code window (make sure the button is selected):

on (release) {
getURL ("filelocationofAVI.avi");
}

I hope that answered your question. I'm a beginner at actionscript, but I think that will work.

- The Maven
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

If you want it downloadable you will have to .zip it or something so it won't open in the browser or other default program.
  • Sulfin
  • Graduate
  • Graduate
  • User avatar
  • Posts: 129
  • Loc: canada

Post 3+ Months Ago

Feb 6??? Doesn't matter if no-one ever reads this. I think I have a solution to the problem! You can try this script on your button and it might work:
Code: [ Select ]
on (release) {
  getURL("javascript:newin=window.open('about:blank', '_blank', 'width=500, height=500');newin.document.write('<embed SRC=\"movie.avi\" width=100% height=100%></embed>');", "_self");
}
  1. on (release) {
  2.   getURL("javascript:newin=window.open('about:blank', '_blank', 'width=500, height=500');newin.document.write('<embed SRC=\"movie.avi\" width=100% height=100%></embed>');", "_self");
  3. }
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

That would be to stream the movie, not download the movie.
  • Sulfin
  • Graduate
  • Graduate
  • User avatar
  • Posts: 129
  • Loc: canada

Post 3+ Months Ago

Sorry, I didn't know... :oops:
  • hastyle
  • Born
  • Born
  • hastyle
  • Posts: 1

Post 3+ Months Ago

hey wassup, im tryin to make an interacted cd for my demoreel. Do you guys know the command to load a Avi or mov file?
  • krismeister
  • Graduate
  • Graduate
  • krismeister
  • Posts: 202

Post 3+ Months Ago

the server needs to tell the browser to treat the file as a download

this is done in the response header(not the HTML kind but the basic communication between server and browser)

here is a description / code on how to do it in PHP

http://elouai.com/force-download.php
  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

using Media player .... :D
you cant load a avi or mov file from flash. only .swf and .flv.
So you might consider first converting the avi into one of those file and then use them.

Post Information

  • Total Posts in this topic: 9 posts
  • Users browsing this forum: No registered users and 7 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.