A Flash Developer Resource Site

Results 1 to 20 of 25

Thread: PHP to Flash

Threaded View

  1. #12
    Senior Member
    Join Date
    Jan 2006
    Location
    USA
    Posts
    383
    Quote Originally Posted by TheLostGuru
    Yes, let me post my full code
    PHP Code:
    <?
    echo '<table width="242" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td align="center">
        
            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="242" height="242">
            <param name="movie" value="http://tlgames.siteburg.com/welcome.swf?oid =' . $_oid . '&vid=' . $_vid . '" >
            <param name=quality value=high >
             <embed src="http://tlgames.siteburg.com/welcome.swf?oid=' . $_oid . '&vid=' . $_vid . '"
              quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="242" height="242"></embed>
            </object>
        
            </td>
              </tr>
            </table>'; 
    ?>
    What's oid and vid?

    Alright, for a second.. l let me pretend that oid is supposed to be the first name and vid is some variable in PHP...

    rather than having all that in PHP tags.. try this

    PHP Code:

    <table width="242" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td align="center">
        
            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="242" height="242">
            <param name="movie" value="http://tlgames.siteburg.com/welcome.swf?oid=<(FIRSTNAME)>&vid=<?php echo $_vid?>" >
            <param name=quality value=high >
             <embed src="http://tlgames.siteburg.com/welcome.swf?oid=<(FIRSTNAME)>&vid=<?php echo $_vid?>"
              quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="242" height="242"></embed>
            </object>
        
            </td>
              </tr>
            </table>
    Edit: And just so you know, what you posted should work if you need it in PHP tags. And, I'm guessing the FIRSTNAME function could still work if you just leave it in the string. No clue. Would have to test it.
    Last edited by AfternoonDelite; 06-08-2007 at 03:47 PM.

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