Jump to content

what is the best way to get values like height from a flash objects html?


shedokan

Recommended Posts

I have this html object:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="550" height="400">
<param name="menu" value="false" />
<param name="movie" value="http://www.website.com/loader.swf?url=pearldiver.swf&name=Pearl Diver&icon=%2Fimages%2Ficons%2Fpearldivermedicon.jpg&w=550&h=400" />
<param name="quality" value="high" />
<embed src="http://www.website.com/loader.swf?url=pearldiver.swf&name=Pearl Diver&icon=%2Fimages%2Ficons%2Fpearldivermedicon.jpg&w=550&h=400" menu="false" quality="high" width="550" height="400" name="miniclipGame" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

and I would like in php to translate it to values like height width and src.

what do you think I should use?

 

thanks.

yes but let's say I have a totaly different code, like

<embed src="http://games.mochiads.com/c/g/super-d/superd1.swf" type="application/x-shockwave-flash" width="440" height="320"></embed>

 

you can't use preg_replace anymore, because they are total different codes.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.