How to use PHP callout flash? i want to hide my flash source url

Discussion in 'PHP' started by mailcol, Nov 14, 2007.

  1. #1
    hi, like the title mentioned. I wish to return an flash on my webpage, but i don't want them to get my flash source URL by viewing my source file.

    Is it possible?

    Thanks
     
    mailcol, Nov 14, 2007 IP
  2. commandos

    commandos Notable Member

    Messages:
    3,648
    Likes Received:
    329
    Best Answers:
    0
    Trophy Points:
    280
    #2
    whenever a flash is viewed it will be cached in the temp

    i'm not a pro in flash , but when they have ur swf they wont be able to see ur source code ... except if they use flash decoder (available)

    what you can do is encode your swf file (source code)

    for more info contact "wassim" in dp , he's the expert in flash .
     
    commandos, Nov 14, 2007 IP
  3. drunnells

    drunnells Peon

    Messages:
    79
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I bet you could have a php script read in the original source file and spit it right out, and then just change your html that calls the flash swf file to use the php script instead. Like maybe make a new php script called get_flash.php that has:

    <?php
    $inSwf = file_get_contents("myFlashFile.swf");
    print $inSwf;
    ?>
    PHP:
    And then the html that calls it might look something like:

    <html>
    <body>
    
    <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" ID=objects WIDTH=200 HEIGHT=200>
    <PARAM NAME=movie VALUE="get_flash.php">
    <EMBED src="get_flash.php" WIDTH=200 HEIGHT=200 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
    </OBJECT>
    
    </body>
    </html>
    HTML:
    And, of course, change the width/height to whatever your actual movie is.

    I didn't give this too much testing, but it seemed to work for me with mozilla.

    Hope this helps!
     
    drunnells, Nov 14, 2007 IP
  4. mailcol

    mailcol Peon

    Messages:
    105
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thanks drunnells
    i will give a try on the code now.

    Sorry commandos, i am not asking bout the source of flash but the URL of the flash file :p

    Somemore, i tried flash decoder. It can decode the source of flash, but not really the EXACT code of the original code. :)

    Thanks for the reply.
     
    mailcol, Nov 14, 2007 IP