View Full Version : flash embed code

02-08-2008, 05:20 PM
i have the following code. how do i save the files in my folder? i got this code off a script page and it has no instructions on how to do that.

i have folder
inside that folder
and the videos are in that folder above. heres the code

function display_flash(id, authent) {
document.write('<object width="612" height="480" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" > \
<param name="quality" value="high" /> \
<param name="bgcolor" value="#000000" /> \
<param name="movie" value="http://www.mysite.net/flash/flv_player_site_v3.swf" /> \
<param name="allowFullScreen" value="true" /> \
<param name="flashvars" value="id_video=' + id + '&key=' + authent + '" /> \
<embed src="http://www.mysite.net/flash/flv_player_site_v3.swf" \
allowScriptAccess="always" width="612" height="480" \
menu="false" quality="high" bgcolor="#000000" allowFullScreen="true" \
flashvars="id_video=' + id + '&key=' + authent + '" type="application/x-shockwave-flash" \
pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');

02-09-2008, 04:00 AM
I don't really understand what you're trying to do. The code you listed is a function for writing the html that embeds a flash player into a page. This doesn't have much to do with saving files to a folder though. If you elaborate on what you're trying to accomplish and and how you want to implement it (for example how/where you want it embedded if that's what you're trying to do), we can help you a little more.

02-09-2008, 04:51 AM
what i have is that code there but how does it read what file to play? like if i had the following code on my html page what would i save the file as?


<!-- NEW VERSION -->

<script type="text/javascript" language="JavaScript" src="display_flash.js"></script>
<script type="text/javascript" language="JavaScript">


would 3684 be the folder and c889c be the file name?

02-09-2008, 05:05 AM
3864 is the ID of the Flash movie, c889c is the security authentication. I do suppose you are not trying to steal someones hard work and make it work on your site are you?

Flash has one downfall and that is the de-compile ability. Overcoming that downfall is a hard battle, those of us that do it and can do it well enough for the just above average Flasher are happy about that. Even with Kindisoft and others there is no "perfect protection" for Flash. Which is a bummer.