DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: HTML to XML

Hybrid View

  1. #1
    Join Date
    Apr 2011
    Posts
    1

    HTML to XML

    I am converting an HTML website to a new flash based website. The new flash website is controlled by XML files so I can alter the text that appears. There is a style sheet that controls the fonts, an options xml that controls the layout of the main site, a menu xml that specifies the menu options, and then one xml for each menu/submenu and an associated swf for that menu /submenu. I'm trying to embed a swf within the website right now that was originally created to load in an HTML browser and has an XML that controls it in addition to the HTML loading code. Can anyone help me create an XML document I can use to load this into the website (two separate or one XML files if needed)? The menu tags typically look like this:
    headline=""
    bgimage=""
    idlecolor=""
    selectcolor=""
    submenucolor=""
    module=".swf"
    modulexml=".xml"
    moduleorientation=""
    modulewidth=""
    moduleheight=""

    Here's the HTML file that controls the swf:
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <title>Steve and Jenna Murray Wedding Video</title>
    </head>
    <body bgcolor="#000000" link="FFFFFF" vlink="FFFFFF" alink="#C0C0C0">
    <center>
    <table width="640">
    <tr><td>
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="640" height="480" id="FlashDVD" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="FlashDVD.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><embed src="FlashDVD.swf" quality="high" bgcolor="#000000" width="640" height="480" name="FlashDVD" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>
    </td></tr>
    <tr><td align="right">
    <a href="http://www.uvpvideo.com">Visit UVP Video</a>
    </td></tr>
    </table>
    </center>
    </body>
    </html>

    Here's a portion of the XML file that controls the swf:
    <?xml version='1.0' encoding='utf-8'?>
    <!-- Generated by Adobe Encore 3.0.0.268 -->
    <!-- Preset FLV NTSC 640x480+v0400-96s -->
    <AuthoredContent version='1.0'>
    <Config>
    <Application>
    <stage width='640' height='480'/>
    </Application>
    </Config>
    <FirstPlay>
    <Action type='DisplayItem' target='8'/>
    </FirstPlay>
    <TitleMenu>
    <Action type='DisplayItem' target='8'/>
    </TitleMenu>
    <!-- Dinner -->
    <DisplayItem id='1' type='title'>
    <!-- Chapter 1 -->
    It then goes on to specify media to be played and location of graphics for buttons. The file was created using Adobe Encore CS 3 if that helps at all. Thanks for your help!

  2. #2
    Join Date
    May 2011
    Posts
    3
    What exactly is not working? Video does not appear?

  3. #3
    Join Date
    Apr 2011
    Posts
    1
    The swf player appears but video does not appear in the player. I am also unable to move the player within the window. The typical commands like "center" seem to have no effect. Thanks for your help.

  4. #4
    Join Date
    May 2011
    Posts
    3

    Post

    See the user guide to your SWF player - I think you need to specify additional parameters like flashvars to set the path to video you need to load to the player.

Similar Threads

  1. Xml + xsl = html 4 email ??
    By Complete in forum XML
    Replies: 0
    Last Post: 12-12-2008, 09:18 AM
  2. HTML to XMl
    By whygh in forum XML
    Replies: 3
    Last Post: 06-13-2006, 03:56 AM
  3. transfer XML to HTML
    By Monde in forum XML
    Replies: 1
    Last Post: 06-20-2002, 05:37 AM
  4. Try XML Junction
    By Tim in forum xml.announcements
    Replies: 0
    Last Post: 10-11-2001, 04:00 PM
  5. Data Junction Announces XML Junction 7.51
    By Tim Frost in forum xml.announcements
    Replies: 0
    Last Post: 04-02-2001, 10:53 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center