1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

About embed code

Discussion in 'PHP' started by A-Q, Aug 31, 2008.

  1. #1
    Hi everyone,

    I have a flash game site. It has a lot of flash games in my server. But i have a problem. about *.swf and *.dir games.

    When i use this code, *.swf games works fine. But *.dir games doesn't work.

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="<?php echo($objw); ?>" height="<?php echo($objh); ?>"><param name="movie" value="<?php echo($objsrc); ?>" /><param name="quality" value="high" /><embed src="<?php echo($objsrc); ?>" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="<?php echo($objw); ?>" height="<?php echo($objh); ?>"></embed></object> 
    
    PHP:
    When i use this code, *.dir games works fine. But *.swf games doesn't work.

    <object id=FlashGame classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,0,0,0" width="<?php echo($objw); ?>" height="<?php echo($objh); ?>"><param name="src" value="<?php echo($objsrc); ?>" /><param name=swStretchStyle value=fill /><embed src="<?php echo($objsrc); ?>" pluginspage="http://www.macromedia.com/shockwave/download/" width="<?php echo($objw); ?>" height="<?php echo($objh); ?>"></embed></object>
    PHP:
    How can i use together these codes on same page?

    Thanks!
     
    A-Q, Aug 31, 2008 IP
  2. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Hi,

    I think you're reusing the same variables such as $objw. You'll need to assign two seperate sets of variables, one holding .swf values and one .dir.

    Jay
     
    jayshah, Aug 31, 2008 IP