Results 1 to 4 of 4

Thread: flash embed code

  1. #1
    Join Date
    Sep 2007
    Posts
    110
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default flash embed code

    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
    /flash
    inside that folder
    /video
    and the videos are in that folder above. heres the code

    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>');
    }
    Last edited by jscheuer1; 02-09-2008 at 04:19 AM. Reason: fix code tags

  2. #2
    Join Date
    Aug 2007
    Location
    Ohio
    Posts
    79
    Thanks
    0
    Thanked 15 Times in 15 Posts

    Default

    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.

  3. #3
    Join Date
    Sep 2007
    Posts
    110
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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?

    <!-- PLAYER FLASH -->


    <!-- NEW VERSION -->

    <script type="text/javascript" language="JavaScript" src="display_flash.js"></script>
    <script type="text/javascript" language="JavaScript">
    <!--
    display_flash(3864,'c889c');
    //-->
    </script>


    <!-- END PLAYER FLASH -->



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

  4. #4
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    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.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •