How to serialize an object to XML with dynamic element's attribute?

Please explain me the object and param element ? xhtml?

  • I tried my best but it doesn't work no matter what i do , i really am confused , and the concept of param element i really don't get it , i mean the attributes , I can't find how many possible values of NAME and VALUE are these , i mean some codes have MOVIE for name and PLAY.FLV for value , but anybody please tell me how many possible values are these for the name attribute ? Please please you can inbox me too , I can't just give up because of some single thing , and i know the use of audio and video elements as alternatives , i also know the swfobject(javascript method) use , but i just want to freakin get this object work , I just want to do it the object way , I've successfully used it the object element for image mapping but can't get it work for the video and audio one ,The browser just doesn't show the player/movie ,youtube streaming works for me so em sure flash is installed , heres a code that won't work ______________________________________… <?xml version="1.1" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "//dtd//xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-… <html dir="ltr" xmlns="www.w3.org/1999/xhtml"> <head> <title>Using flash onject</title> </head> <body> <h1> A FLASH MOVIE(.flv)</h1> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-4… codebase="http://download.macromedia.com… swflash.cab" type="application/x-shockwave-flash" data="flash/os_flv_player.swf?movie=lora… <param name="movie" value="flash/os_flv_player.swf?movie=lor… <param name="play" value="true"></param> <param name="allowscriptaccess" value="always"></param> <param name="allowfullscreen" value="true"></param> <param name="loop" value="false"></param> <embed src="file:///D:/webdevelopment/flash experiment/lora.flv" allowscriptaccess="always" play="true" allowfullscreen="true" loop="false" pluginspage="http://www.macromedia.com/s… type="application/x-shockwave-flash"></e… </body> </html> ______________________________________…

  • Answer:

    Embedding Flash content in a website has never been a simple fare. It's ridiculous. The only simple and elegant way I ever got mine to work (without huge amounts of tags and make it compatible with PHP) was with: <iframe type="application/x-shockwave-flash" src="/path/file.ext" height="534"></iframe> You can interchange height and width so that one is dynamic, but one has to be set exactly. I very much doubt that that will validate as XHTML, but if you give up then that's there for you. Sorry I couldn't be of more help.

Soulja Buoy at Yahoo! Answers Visit the source

Was this solution helpful to you?

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.